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)
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.
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.
And the other language files ?
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.
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.