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

Recent

Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 06:12:56 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,158
  • Total Topics: 21,219
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 94
  • Total: 94

Hidden Users & Buddies

Started by ontap, April 06, 2006, 12:21:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ontap

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:
languages/TPortal.english.php

Find:
$txt['tp-users'] = 'Users';

Add After:

$txt['tp-hidden'] = 'Hidden';
$txt['tp-buddies'] = 'Buddies';


Open:
default/TPortalBlocks.template.php

Find:
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />


Replace With:

           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 />


G6Cad

Thank you OnTap :)
Fun future and it works like a charm :)

Mitchâ„¢

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

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

could you add spiders, too? and how?

G6Cad

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

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

Quote from: resurgence on April 12, 2006, 07:07:50 AM
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:
$txt['tp-buddies'] = 'Buddies';

Add After:
$txt['tp-spiders'] = 'Spiders';

Open TPortalBlocks.template.php
Find
echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];

After Add:
echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];

resurgence

xD i was playing around with that, i kept typing in

$online['spiders'];

that's why it didn't work lol thanks!

HaxXxoR

for some reason i cant get this to work on the Black 22 theme..... anyone have any ideas?