Hi all,
After testing TP on a testsite and saw no problems, i decided to install TP096 to my live site today.
Also there (exept the felblog) i didn't had any problems at first, untill i wanted to add 'Spiders' to the users online box. I had it like this with previous versions of SMF and TP but now it's giving me an fatal error:
Fatal error: Call to undefined function: tportal_sidebar() in /******/******/******/Sources/Load.php(1711) : eval()'d code on line 322
Anyone with a solution for this?
Yes, you have to add the code for the Googlebot and Spider mod manually, The code are changed in thet very spot so if you look right below, you can add the code manually there.
If you are unsure how to, look at the GoogleBot and spiders mod board on SMF, Omar fixed it up pretty fast :)
http://www.simplemachines.org/community/index.php?topic=38003.0;topicseen
Thanks G6,
I've been trying to go SMF site but it seems to be offline for last 2 hrs for me and i thought i ask here then :)
To make sure, do i need to uninstall the mod first and then install again manually? Because when i try to uninstall i get lots of failed tests...
I uninstalled my google mod and noted what files i got the errors from. Then i checked them manually for the code and they were missing the google code in them, thats why the installer gave me errors when it looked for the code and couldent find it. Then i went with the manual way and it worked just fine :)
This is the code for the whole of the TP Stats block which includes users online (the TP Online block is an SSI). It has Buddies and Spiders added.
This is from my customised TPortalBlocks.template
The code for the TP Stats block starts at about line 533
// TPortal stats box with buddies and spiders.
function TPortal_statsbox()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
$bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
echo'<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';
echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';
if(isset($context['TPortal']['userbox']['stats']))
// members stats
echo '
<img src="'.$settings['images_url'].'/icons/members.gif" style="margin: 0;" align="bottom" alt="" />
<a href="'.$scripturl.'?action=mlist"><b>'.$txt[19].'</b></a>
<br />'.$bullet.$txt[488].': ' , isset($modSettings['memberCount']) ? $modSettings['memberCount'] : $modSettings['totalMembers'] , '
<br />'.$bullet.$txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';
if(isset($context['TPortal']['userbox']['stats_all']))
// more stats
echo '
<hr /><img src="'.$settings['images_url'].'/icons/info.gif" style="margin: 0;" align="bottom" alt="" />
<a href="'.$scripturl.'?action=stats"><b>'.$txt['tp-stats'].'</b></a>
<br />'.$bullet.$txt[489].': '.$modSettings['totalMessages']. '
<br />'.$bullet. $txt[490].': '.$modSettings['totalTopics']. '
<br />'.$bullet.$txt['tp-mostonline-today'].': '.$modSettings['mostOnlineToday'].'
<br />'.$bullet.$txt['tp-mostonline'].': '.$modSettings['mostOnline'].'<br />
('.timeformat($modSettings['mostDate']).')
';
if(isset($context['TPortal']['userbox']['online'])){
// add online users
echo '<hr /><img src="'.$settings['images_url'].'/icons/online.gif" style="margin: 0;" align="bottom" alt="" />
<a href="'.$scripturl.'?action=who"><b>'.$txt[158].'</b></a><br />';
$online = ssi_whosOnline('array');
echo $bullet.$txt['tp-users'].': '.$online['num_users'];
echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];
echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />
<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';
foreach($online['users'] as $user){
echo $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br />';
}
echo '</div>';
}
echo '<br /></td></tr></table>';
}
And add this to the TPortal.english file
//spiders and buddies
$txt['tp-spiders'] = 'Spiders';
$txt['tp-buddies'] = 'Buddies';
Hmm, i see i have more problems then i thought... ???
All the text in the files i need to modify show up in 1 line, i opend them with wordpad, notepad, context. That makes it pretty hard for me.
I also noticed that i can't uninstall any mod without failed test, even TP. I guess something must be very wrong here.
Isn't it better to just upload and install SMF, run upgrade.php again and then install TP, Arcade and Googlebot after? So i have a clean install of everyting again? Or is that not an option?
If you want a clean install thats a good way to go :)
Ok thanks G6, i'll see what i can do :)
I have a test site (Cat and Fiddler) with the following working very happily
TinyPortal 0.96
SMF Arcade 1.3.0-MOD-E1.3
Googlebot & Spiders Mod 1.0.5
Users Online Today Mod 1.3.1
Karma Blocks Package V.03 0.3