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....
.............
First read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581.0) and then come back with a more detailed question.
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
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.
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
OK Let us know how it goes.
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
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.
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
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.
So I just search for the things you listed in the modinstructions regarding the profiles.php and change to what is written in those?
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.
Ok, done all the mod instructions and still not working.
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
Don't forget to use the search. Your duplicate code error has been covered many times.
I followed the error message and changed all the code til it was functioning.
Thanx all :)