TinyPortal

Development => Support => Installation => Topic started by: marionkoontz on January 18, 2008, 04:50:09 AM

Title: SOLVED: Profiles not working
Post by: marionkoontz on January 18, 2008, 04:50:09 AM
I installed Tiny Portal on my SMF and so far it worked wonders... but my profiles are not working and half of the functions in tiny is not working either.
I use the latest dl of SMF and the Amber theme....

Help, please....
Title: Re: Profiles not working
Post by: Dragooon on January 18, 2008, 05:27:35 AM
.............
First read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581.0) and then come back with a more detailed question.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 05:35:21 AM
I use Tiny Portal 0.983 DL from here

------------------------

Error message when clicking a profile:
Fatal error: Cannot redeclare tpsummary() (previously declared in /home/public_html/smf/Sources/Profile.php:2945) in /home/public_html/smf/Sources/Profile.php on line 3002

------------------------

I use theme amber11final dl from SMF

-------------------------

No mods installed

Title: Re: Profiles not working
Post by: Dragooon on January 18, 2008, 05:40:47 AM
Open Profile.php in Sources directory,
and there will be 4 functions which will be redeclared(Prefixed with tp_), remove them as such, only 1 occurrence of each is left.

Make sure to backup Profile.php before tho.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 07:46:53 AM
Who, I'll give it a shot :D This is the first time I ever installed and hosted SMF so this is all new to me. TY
Title: Re: Profiles not working
Post by: Dragooon on January 18, 2008, 08:00:06 AM
OK Let us know how it goes.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 08:06:25 AM
Quote from: Dragooon on January 18, 2008, 05:40:47 AM
Open Profile.php in Sources directory,
and there will be 4 functions which will be redeclared(Prefixed with tp_), remove them as such, only 1 occurrence of each is left.

Make sure to backup Profile.php before tho.

Oh, trying to find it.. I got several things that starts with a tp_
Which ones are to be removed and which ones to stay?
What should I remove? (what code?)

As I said I am green as a brusselsprout here. I just alter the php in .txt editor...

I got this twice... what code should I remove? I dont know where it starts and ends....

$user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['tpsummary'];
   TP_profile_summary($memID);
}
function tparticles($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['articlesprofile'];
   TP_profile_articles($memID);
}
function tpdownload($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['downloadprofile'];
   TP_profile_download($memID);
}
function tpshoutbox($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   lo
Title: Re: Profiles not working
Post by: G6Cad on January 18, 2008, 08:23:56 AM
First off, is there a reason for you to use an older version of TP then TP V098 ?

In our docsection we have a tutorial called Modinstruction.
If you look at that page you will see what code the SMF files MUST have for TP.
You have duplicate code in your files, and you need to remove them manually.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 08:29:06 AM
Quote from: G6 on January 18, 2008, 08:23:56 AM
First off, is there a reason for you to use an older version of TP then TP V098 ?

I DL the latest one I found here on site. That is the 098, but when installed it says 983
Title: Re: Profiles not working
Post by: G6Cad on January 18, 2008, 08:32:05 AM
Thats because the older version is still in your files.
Follow the description i gave you and read the modinstruction and i think you will be fine after that.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 08:45:19 AM
So I just search for the things you listed in the modinstructions regarding the profiles.php and change to what is written in those?
Title: Re: Profiles not working
Post by: G6Cad on January 18, 2008, 08:46:48 AM
You have to go through all the code showed by the modinstructions.
Often all of them get to have duplicated codestrings if one have it.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 12:47:55 PM
Ok, done all the mod instructions and still not working.
Title: Re: Profiles not working
Post by: marionkoontz on January 18, 2008, 12:59:32 PM
Quote from: Dragooon on January 18, 2008, 05:40:47 AM
Open Profile.php in Sources directory,
and there will be 4 functions which will be redeclared(Prefixed with tp_), remove them as such, only 1 occurrence of each is left.

Make sure to backup Profile.php before tho.

Finally found it and also what you meant... as far as I can see its working right now, but Im gonna get a few ppl to test it thuroughly.
TY! :D
Title: Re: Profiles not working
Post by: IchBin on January 18, 2008, 04:25:26 PM
Don't forget to use the search. Your duplicate code error has been covered many times.
Title: Re: Profiles not working
Post by: marionkoontz on January 21, 2008, 04:29:56 PM
I followed the error message and changed all the code til it was functioning.

Thanx all :)