how do i add num_spiders to the stats block.
In SMF2.0 RC3 they now list spiders seperatly.
I have in place the more spiders mod and its now listing the spiders in the TP stats block. but its not displaying num_spiders. so the values listed there in don't add up to the total online
Hard to say for us as we dont use that mod here, i think you can get better answers on that question from the modauthor :)
Its actually quite easy to do this, open up TPsubs.template.php
find:
'.$txt['tp-guests'].': '.$online['guests'].'<br />
after add:
'.$txt['tp-spiders'].': '.$online['num_spiders'].'<br />
you will need to enter a new text string tp-spiders to your language file, open languages/TPortal.english
Find:
$txt['tp-guests'] = 'Guests';
after add:
$txt['tp-spiders']='Spiders';
TPsubs.template.php has been replaced with TPBlocks.template.php now, you will find that in the default folder
Whatchoo talking about Les? TPBlocks.template.php is now empty. TPSubs is most likely the replacement.
QuoteTPBlocks.template.php
find:
'.$txt['tp-guests'].': '.$online['guests'].'<br />
after add:
'.$txt['tp-spiders'].': '.$online['num_spiders'].'<br />
what I am saying is that the above code is now in TPBlocks.template.php and not TPsubs.template.php
huh? lol I didn't word mine right either so I guess we're both on a roll. haha
I was testing to see if you spotted the deliberate mistake lol
/me hides
Quote from: Maxâ„¢ on April 06, 2010, 06:05:00 PM
open up TPsubs.template.php
Quote from: Lesmondâ„¢ on April 06, 2010, 07:02:00 PM
what I am saying is that the above code is now in TPsubs.template.php and not TPBlocks.template.php
You've confused things now. ;D
lol I corrected that.. what a :idiot2: I am!!!
/me thinks I shouldn't have wrote that
Thanks ;) i too was looking in the wrong files