TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 687
  • Total: 687

SOLVED: Profiles not working

Started by marionkoontz, January 18, 2008, 04:50:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marionkoontz

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....

Dragooon

.............
First read the Posting Guidelines and then come back with a more detailed question.

marionkoontz

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


Dragooon

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.

marionkoontz

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

Dragooon


marionkoontz

#6
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

G6Cad

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.

marionkoontz

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

G6Cad

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.