Page Index Toggle Pages: [1] 2 3 4 Send TopicPrint
Very Hot Topic (More than 25 Replies) Print Who is Online (Read 19097 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Print Who is Online
Apr 9th, 2003 at 11:26pm
Print Post  


This mod puts information about how many guests and members are currently online on your homepage via SSI, Iframes or JavaScript. This mod is a convertion of the old "Print Who Is Online" mod, made compatible with SP1.3/1.3.1/1.3.2/1.4.

-----------------------------------------------------
If your host supports SSI, follow these instructions:
-----------------------------------------------------
1. Rename the page where you want this information to be displayed to *.shtml
2. Open your *.shtml file and add one or more of the following tags where you want the information to be displayed:

To display the number of guests online add:
<!--#include virtual="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline;group=guestcount" -->

To display the number of registred members online add:
<!--#include virtual="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline;group=membercount" -->

To display the complete list of members online add:
<!--#include virtual="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline;group=members" -->

To display all these information at once use:
<!--#include virtual="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline" -->

You may have to replace "./cgi-bin/yabb/YaBB.pl" by your board path!!!

-----------------------------
If you want to use an Iframe:
-----------------------------
Add the following to your html page:

<iframe xtcolor=000000;linkcolor=0000FF" width="100%" height="50" marginheight="0" marginwidth="0" frameborder="0" name="who_is_online"><p>Your browser doesn't support Iframes!</p></iframe>

If you want to change the colors, simply edit bgcolor, textcolor and linkcolor in that tag.
You may have to replace "./cgi-bin/yabb/YaBB.pl" by your board path!!!

------------------------------
If you want to use JavaScript:
------------------------------
Note that JavaScript must be enabled on clients, otherwise they won't see anything!!!
Add the following to your html page:

To display the number of guests online add:
<script </script>

To display the number of registred members online add:
<script ></script>

To display the complete list of members online add:
<script cript>

To display all these information at once use:
<script src="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline;type=java"></script>

You may have to replace "./cgi-bin/yabb/YaBB.pl" by your board path!!!


version 1.1:
- added ability to change background-, text- and linkcolors for Iframes
« Last Edit: Dec 19th, 2004 at 12:01am by Administrator »  

print_who_is_online_sp13.mod (Attachment deleted)

The Administrator.
Back to top
WWW  
IP Logged
 
ms_ukyankee
Senior Member
****
Offline


fka whisper68

Posts: 365
Location: England
Joined: Apr 18th, 2002
Gender: Female
Re: Print Who is Online
Reply #1 - Apr 11th, 2003 at 11:09am
Print Post  
If you want to use php:

1. Rename the page where you want this information to be displayed to *.php
2. Open your *.php file and add one or more of the following tags where you want the information to be displayed:

To display the number of guests online add:
Code
Select All
<?php readfile( "http://www.yourdomain.com/cgi-bin/test/YaBB.pl?action=printwhoisonline;group=guestcount"); ?> 



To display the number of registred members online add:
Code
Select All
<?php readfile( "http://www.yourdomain.com/cgi-bin/test/YaBB.pl?action=printwhoisonline;group=membercount"); ?> 




To display the complete list of members online add:
Code
Select All
<?php readfile( "http://www.yourdomain.com/cgi-bin/test/YaBB.pl?action=printwhoisonline;group=members"); ?> 



To display all these information at once use:
Code
Select All
<?php readfile( "http://www.yourdomain.com/cgi-bin/test/YaBB.pl?action=printwhoisonline"); ?> 



Be sure to edit your path to yabb. Hope that's useful to someone. Smiley

Thanks Michael.  Works on my test board. :2thumbsup:
  

No longer active on Boardmod, migrated to another forum system.
Back to top
ICQ  
IP Logged
 
smith.james0
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 118
Joined: Feb 9th, 2003
Gender: Male
Re: Print Who is Online
Reply #2 - Apr 11th, 2003 at 2:00pm
Print Post  
Can this be used if you have the board at one web site address and the print who is online page at other address ie The board at http://www.kirstymorris.org/cgi-bin/yabb/YaBB.pl

and the web page at

http://mk2fiesta.8bit.co.uk/test%20xr2messageboard.shtml

Thanks
  

Back to top
WWW  
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Print Who is Online
Reply #3 - Apr 12th, 2003 at 10:53am
Print Post  
with my knowledge of SSI, you can't do it, unless it is on the same physical server. (which most likely, it is not)
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
James Bone
Junior Member
**
Offline


Mod breaker/tester!

Posts: 78
Location: Stonehenge, England
Joined: Jan 27th, 2003
Gender: Male
Re: Print Who is Online
Reply #4 - Apr 12th, 2003 at 11:45am
Print Post  
smith.james0 wrote on Apr 11th, 2003 at 2:00pm:
Can this be used if you have the board at one web site address and the print who is online page at other address ie The board at http://www.kirstymorris.org/cgi-bin/yabb/YaBB.pl

and the web page at

http://mk2fiesta.8bit.co.uk/test%20xr2messageboard.shtml

Thanks


Should be able to do it with Javascript just change this:
Code
Select All
<script src="./cgi-bin/yabb/YaBB.pl?action=printwhoisonline;type=java"></script> 


to this:
Code
Select All
<script src="http://www.YOURURL.here/cgi-bin/yabb/YaBB.pl?action=printwhoisonline;type=java"></script> 



James Smiley
  

I am a Mod breaker/tester! (hopefully more a tester than a breaker Wink)
YaBB Support Specialist - Level 1
Back to top
WWW  
IP Logged
 
smith.james0
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 118
Joined: Feb 9th, 2003
Gender: Male
Re: Print Who is Online
Reply #5 - Apr 18th, 2003 at 4:31pm
Print Post  
I have just tried that
Code
Select All
<script src="http://www.kirstymorris.org/cgi-bin/yabb/YaBB.pl?action=printwhoisonline;type=java"></script>  


on this web address http://mk2fiesta.8bit.co.uk/whoisonline.html

The boards at http://www.kirstymorris.org/cgi-bin/yabb/YaBB.pl

I have the print users on line mod installed at that works ok http://www.kirstymorris.org/test.shtml

When i use the Java script it say Syntax error line 2 char 1?
  

Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Print Who is Online
Reply #6 - Apr 18th, 2003 at 4:54pm
Print Post  
That's because http://www.kirstymorris.org/cgi-bin/yabb/YaBB.pl?action=printwhoisonline;type=ja... does not return the whoisonline information. You didn't upload all modified files. I also noticed that your board is SP1.1. This mod is for SP1.3. There is a version of this mod for SP1.1 in the mod database. I suggest you to try that one instead.
  

The Administrator.
Back to top
WWW  
IP Logged
 
smith.james0
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 118
Joined: Feb 9th, 2003
Gender: Male
Re: Print Who is Online
Reply #7 - Apr 18th, 2003 at 6:08pm
Print Post  
Thanks i have changed it now.
  

Back to top
WWW  
IP Logged
 
DethWraith
New Member
*
Offline



Posts: 44
Joined: Jan 4th, 2002
Gender: Male
Re: Print Who is Online
Reply #8 - Jun 10th, 2003 at 5:18am
Print Post  
Whenever more than one user is on the board, I get a JavaScript error on the main page and the mod is not displayed.  This had happened to me before with SP1 and a newer version of the mod fixed the problem.  Now I'm having the same problem with SP1.3.1... any idea what it is?  Since it's a similar problem that was fixed before, it must be a simple fix.
  
Back to top
WWW  
IP Logged
 
DethWraith
New Member
*
Offline



Posts: 44
Joined: Jan 4th, 2002
Gender: Male
Re: Print Who is Online
Reply #9 - Jun 11th, 2003 at 1:54am
Print Post  
IE says the JavaScript error is on line 2, character 134.  Any idea why?
  
Back to top
WWW  
IP Logged
 
Joe
Guest


Re: Print Who is Online
Reply #10 - Sep 18th, 2003 at 1:01am
Print Post  
ok i got the idea how to place the register.pl
in a iframe.
works ok but how can i set it up with just the register info and not with my banner and home,help,search?

just the register form?

please help :/
  
Back to top
 
IP Logged
 
Joe
Guest


Re: Print Who is Online
Reply #11 - Sep 18th, 2003 at 1:05am
Print Post  
ok i got the idea how to place the register.pl
in a iframe.
works ok but how can i set it up with just the register info and not with my banner and home,help,search?

just the register form?
-------------------------------------------------
and real quick another ?
How can i place on the start side of my website a tabelle that welcomes a member(with cookie)
when he shows up.

Like:
Welcome Joe11
here are the newest postings since you have been gone.(with link)
you have 0 new private messsages. 
you have 10 messages  and 2 of them unread..


please help :/
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Print Who is Online
Reply #12 - Sep 18th, 2003 at 1:29am
Print Post  
Sorry but your questions have nothing todo with this mod, please start a seperat topic for this.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: Print Who is Online
Reply #13 - Sep 29th, 2003 at 9:37pm
Print Post  
Well, doesn't seem to work. That's what the mod prints on the .shtml document (my server supports SSI):

Quote:
60 Gäste, 294 Mitglied(er)
BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, newdawonder, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, BrAiNdEaTh, NudelNaddel26, BrAiNdEaTh, NudelNaddel26, NudelNaddel26, NudelNaddel26, alleswirdgut, alleswirdgut, alleswirdgut, alleswirdgut, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, BrAiNdEaTh, BrAiNdEaTh, SAmm64Y, BrAiNdEaTh, SAmm64Y, SAmm64Y, BrAiNdEaTh, SAmm64Y, SAmm64Y, SAmm64Y, BrAiNdEaTh, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, SAmm64Y, BrAiNdEaTh, SAmm64Y, BrAiNdEaTh, BrAiNdEaTh, SAmm64Y, SAmm64Y, SAmm64Y, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, NudelNaddel26, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, alleswirdgut, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, AngelWingsW74, BrAiNdEaTh, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, AngelWingsW74, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, newdawonder, MagstaBanane, MagstaBanane, MagstaBanane, MagstaBanane, MagstaBanane, MagstaBanane, BrAiNdEaTh, BrAiNdEaTh, BrAiNdEaTh
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Print Who is Online
Reply #14 - Sep 30th, 2003 at 12:54pm
Print Post  
The output shouldn't differ in any way from the information which is displayed on the boardindex. If not, something is wrong with your board or the code you applied.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
Send TopicPrint