TinyPortal

Development => Support => Topic started by: Blue Steel on April 06, 2010, 03:47:13 PM

Title: [TP1.0 Beta 5] num_spiders in stats block
Post by: Blue Steel on April 06, 2010, 03:47:13 PM
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
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: G6Cad on April 06, 2010, 05:28:23 PM
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 :)
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Max on April 06, 2010, 06:05:00 PM

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';
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Lesmond on April 06, 2010, 06:45:37 PM
TPsubs.template.php has been replaced with TPBlocks.template.php now, you will find that in the default folder
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: IchBin on April 06, 2010, 06:49:30 PM
Whatchoo talking about Les? TPBlocks.template.php is now empty. TPSubs is most likely the replacement.
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Lesmond on April 06, 2010, 07:02:00 PM
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
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: IchBin on April 06, 2010, 07:06:18 PM
huh? lol I didn't word mine right either so I guess we're both on a roll. haha

Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Lesmond on April 06, 2010, 07:11:20 PM
I was testing to see if you spotted the deliberate mistake lol

/me hides 
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Max on April 06, 2010, 07:13:37 PM
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
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Lesmond on April 06, 2010, 07:16:05 PM
lol I corrected that.. what a  :idiot2: I am!!!

/me thinks I shouldn't have wrote that
Title: Re: [TP1.0 Beta 5] num_spiders in stats block
Post by: Blue Steel on April 07, 2010, 02:37:56 AM
Thanks ;) i too was looking in the wrong files