Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic usersonlineSSI (Read 1133 times)
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 137
Joined: Apr 25th, 2012
usersonlineSSI
Jan 19th, 2019 at 12:43am
Print Post  
This puts a simplified copy of 'Users online' into an shtml page.

Put the 'usersonlineSSI.pl' into the cgi-bin/yabb2 folder and CHMOD it to 755.

place:
Code
Select All
<!--#include virtual="cgi-bin/yabb2/usersonlineSSI.pl" --> 

at the place on the SSI enabled webpage that you want the Users online to be shown. (If necessary, adjust the insert code to reflect the actual path to the file.)

Note: The file has English text in it. If you want some other explanatory text or to change how it looks you will need to edit this section in the file:
Code
Select All
print
qq{<p>Guests online: $guests<br />Members online: $numusers<br />Members: $users<br />Bots online: $numbots<br />Bots: $botlist</p>}
  or croak 'cannot print recent'; 



Edited:
Updated for *nix line ends.
« Last Edit: Jan 31st, 2019 at 12:38pm by Dandello »  

usersonlineSSI_2.zip ( 1 KB | 116 Downloads )
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint