Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 06:17:18 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 58
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 47
Total: 48

Author Topic: Hidden Users & Buddies  (Read 16321 times)

0 Members and 1 Guest are viewing this topic.

ontap

  • Guest
Hidden Users & Buddies
« on: April 06, 2006, 05:21:19 AM »
being messing about with the Forum Stats block where it shows 'Users Online',
i wanted to add both hidden users and buddies...

The total dosent count hidden users or maybe its counted in 'users' itsself.. not sure
see the image below.

this is how to add Hidden users & buddies to the Stats Block.

allways backup!!  ;)

Open:
Code: [Select]
languages/TPortal.english.php
Find:
Code: [Select]
$txt['tp-users'] = 'Users';
Add After:
Code: [Select]
$txt['tp-hidden'] = 'Hidden';
$txt['tp-buddies'] = 'Buddies';

Open:
Code: [Select]
default/TPortalBlocks.template.php
Find:
Code: [Select]
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />

Replace With:
Code: [Select]
           echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
   echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />
« Last Edit: April 06, 2006, 05:33:32 AM by OnTap© »

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Hidden Users & Buddies
« Reply #1 on: April 06, 2006, 06:40:16 AM »
Thank you OnTap :)
Fun future and it works like a charm :)

Mitchâ„¢

  • Guest
Re: Hidden Users & Buddies
« Reply #2 on: April 11, 2006, 05:02:34 PM »
Thanks so much for this!
I did what you said and it worked like a charm.

* Mitchâ„¢ apologizes to G6 and says, "I did not realize you said the same thing."

rbh

  • Guest
Re: Hidden Users & Buddies
« Reply #3 on: April 11, 2006, 11:01:25 PM »
if we have it set on our boards not to allow people to hide their online status will this still work, just leaving out the lines of code for hidden user?

resurgence

  • Guest
Re: Hidden Users & Buddies
« Reply #4 on: April 12, 2006, 12:07:50 AM »
could you add spiders, too? and how?

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Hidden Users & Buddies
« Reply #5 on: April 12, 2006, 02:06:49 AM »
That need a whole engine to show up.
You can find a mod for googlebot and spiders on the SMF forums in the modsection

resurgence

  • Guest
Re: Hidden Users & Buddies
« Reply #6 on: April 12, 2006, 10:03:10 PM »
yup. i know. i have it. which is why i wanted to know if i could add spiders and stuff :) since mine doesn't show it at all.

ontap

  • Guest
Re: Hidden Users & Buddies
« Reply #7 on: April 12, 2006, 10:15:07 PM »
could you add spiders, too? and how?

Easily  ;)... are you talking about the Googlebot & Spiders MOD?

this is how you would do it.

Open TPortal.english.php
Find:
Code: [Select]
$txt['tp-buddies'] = 'Buddies';
Add After:
Code: [Select]
$txt['tp-spiders'] = 'Spiders';
Open TPortalBlocks.template.php
Find
Code: [Select]
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
After Add:
Code: [Select]
echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];

resurgence

  • Guest
Re: Hidden Users & Buddies
« Reply #8 on: April 12, 2006, 10:17:14 PM »
xD i was playing around with that, i kept typing in

Code: [Select]
$online['spiders'];
that's why it didn't work lol thanks!

HaxXxoR

  • Guest
Re: Hidden Users & Buddies
« Reply #9 on: April 12, 2006, 10:19:43 PM »
for some reason i cant get this to work on the Black 22 theme..... anyone have any ideas?