TinyPortal

Development => Support => Topic started by: KamelArg on January 07, 2009, 09:44:40 AM

Title: Tiny Portal problem on Profiles
Post by: KamelArg on January 07, 2009, 09:44:40 AM
Hi people. I need help. When any user of my site want to see any profile, a long problem appears at the top of my SMF site, just before the header. This is the text what is show there:
// Tinyportal function tpsummary($memID) { global $txt, $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; loadtemplate('TPprofile');
$context['page_title'] = $txt['shoutboxprofile']; TP_profile_shoutbox($memID); } function tpgallery($memID) { global $txt, $user_profile, $db_prefix, $context, $db_prefix; loadtemplate('TPprofile');
$context['page_title'] = $txt['galleryprofile']; TP_profile_gallery($memID); } function tplinks($memID) { global $txt, $user_profile, $db_prefix, $context, $db_prefix; loadtemplate('TPprofile');
$context['page_title'] = $txt['linksprofile']; TP_profile_links($memID); }               


SMF 1.1.7
TP 0.9.8
Site URL: http://juegosplay2.com.ar/

Thanks for the help and sorry if this post is on the wrong place (move it if it's wrong posted)
Title: Re: Tiny Portal problem on Profiles
Post by: G6Cad on January 07, 2009, 09:52:05 AM
Check your modifications.english.php file and see what language strings at the end are outside the closing php tag.  Eather remove the closing tag or move the code inside the tag.
Title: Re: Tiny Portal problem on Profiles
Post by: KamelArg on January 08, 2009, 09:20:41 PM
Quote from: G6 on January 07, 2009, 09:52:05 AM
Check your modifications.english.php file and see what language strings at the end are outside the closing php tag.  Eather remove the closing tag or move the code inside the tag.
It's all inside the PHP tags.
Title: Re: Tiny Portal problem on Profiles
Post by: G6Cad on January 08, 2009, 09:43:19 PM
And the other language files ?
Title: Re: Tiny Portal problem on Profiles
Post by: IchBin on January 08, 2009, 10:48:28 PM
What other mods do you have installed? This is most likely caused from another mod that installed improperly. Start by looking at the Profile.php file in the Sources directory, and then looking at the language files in the default/languages folder. Make sure there is no code before the <?php and after the ending ?> tags.
Title: Re: Tiny Portal problem on Profiles
Post by: KamelArg on January 09, 2009, 08:15:16 AM
Problem solved. A "?>" tag  was missing on the Profiles.php on sources dir and the text showed on the top was duplicated after the closing tag.
Thanks for the help.