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

Recent

Welcome to TinyPortal. Please login or sign up.

May 23, 2024, 03:21:36 PM

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

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

Quote from: HaxXxoR on April 13, 2006, 05:19:43 AM
for some reason i cant get this to work on the Black 22 theme..... anyone have any ideas?

just had a quick look at your site. do you have the Googlebot & Spiders MOD Installed?

HaxXxoR

yeah you can see it when you click on the forums button

Gargoyle

This should be in the base code... Maybe an option for the googlebot mod or something..

Thaks for the code. It works great!!

deadpoeticstar

i cant seem to find this file in my sources index

tportalblocks.template.php

G6Cad

The template files you find in the themes directorys

If it is a source file it's just called "filename.php"

deadpoeticstar

#15
Need Help Fast!

Parse error: parse error, unexpected '<' in .../Themes/default/TPortalBlocks.template.php on line 501


<div style="width: 100%; height: 23ex; overflow: auto;">';

that was highlighted as a parse error in the TPblocks


Found the error

but now where to add buddies into the code

$online = ssi_whosOnline('array');
   echo $bullet.$txt['tp-users'].': '.$online['num_users'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
       echo '<br />'.$bullet.$txt['Spiders'].': '.$online['num_spiders'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />

G6Cad

Just add this in right after

echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];

echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];

So it looks like this

echo '<br />'.$bullet.$txt['tp-hidden'].': '.$online['hidden'];
echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];

deadpoeticstar

ok one last thing if i were to make it echo so in the online list it showed the staff as seperate from users how would that happen?

like this?:

echo $bullet.$txt['tp-staff'].': '.$online['num_staff'];

HaxXxoR

I tried to install the Spiders mod and got it to work but for some reason the Spiders part is Blank. Screen shot below. Anyone got any ideas? And yes i did check the code over again a few times. Please help  :tickedoff: :tickedoff:

Nokonium

Depending on what you have here

   $online = ssi_whosOnline('array');
   echo $bullet.$txt['tp-users'].': '.$online['num_users'];
   echo '<br />'.$bullet.$txt['tp-buddies'].': '.$online['buddies'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-spiders'].': '.$online['num_spiders'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />  ';


You need this in TPortal.english.php

//spiders and buddies
$txt['tp-spiders'] = 'Spiders';
$txt['tp-buddies'] = 'Buddies';