TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

September 08, 2024, 04:38:59 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,368
  • Total Topics: 21,241
  • Online today: 61
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 43
  • Total: 43

[TP1.0 Beta 5] num_spiders in stats block

Started by BlueSteel, April 06, 2010, 03:47:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blue Steel

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

G6Cad

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 :)

Max


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';

Lesmond

TPsubs.template.php has been replaced with TPBlocks.template.php now, you will find that in the default folder

IchBin

#4
Whatchoo talking about Les? TPBlocks.template.php is now empty. TPSubs is most likely the replacement.

Lesmond

#5
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

IchBin

huh? lol I didn't word mine right either so I guess we're both on a roll. haha


Lesmond

I was testing to see if you spotted the deliberate mistake lol

* Lesmondâ„¢ hides 

Max

#8
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

Lesmond

lol I corrected that.. what a  :idiot2: I am!!!

* Lesmondâ„¢ thinks I shouldn't have wrote that

Blue Steel

Thanks ;) i too was looking in the wrong files