Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Print Who Is Online - YaBB 2/2.1 (Read 21647 times)
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Print Who Is Online - YaBB 2/2.1
Nov 20th, 2005 at 7:57pm
Print Post  
Hello

THX @Michael Prager which allows me bring back this nice Mod for YaBB 2.x  Cheesy

-------------------------------------------------
P r i n t   W h o   I s   O n l i n e
-------------------------------------------------


Descrition:

This extended version put information about how many guests and members are currently online on your homepage via Iframes, SSI or JavaScript.
The HTML-Codes can be indicated in the Admin Center.

Admin can set the "ForumOnline Code"  in  ...
'Admin Center' >> 'BoardMod Mods' >> 'ForumOnline Code'

Screenshot:



History:

- Changed code from YaBB Gold1 xxoriginal mod to Yabb2
- Added a nice code-administration-tool

lg XTC
« Last Edit: Apr 4th, 2015 at 6:51pm by ..:X.T.C:.. »  

Print_Who_Is_Online.zip ( 7 KB | Downloads )

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #1 - Nov 20th, 2005 at 7:58pm
Print Post  
Hi Xonder
thnx  8)
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #2 - Nov 21st, 2005 at 7:35am
Print Post  
Hi Xonder
can you change this in next version?  Grin

Display - complete list of members online (Usernamen)(Java)

Code
Select All
action=printwhoisonline 



should be

action=print_whoisonline

Display all information about members online (IFrame)

action=prin_twhoisonline;type=frame

should

action=print_whoisonline;type=frame

Display - complete list of members online (Usernamen)(SSI)

.cgi-bin/yabb2/YaBB.pl?action=printwhoisonline

should

.cgi-bin/yabb2/YaBB.pl?action=print_whoisonline

Roll Eyes Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #3 - Nov 21st, 2005 at 7:46am
Print Post  
Hello

thx for report @JetLi

New download zip on first post ....

lg XTC
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #4 - Nov 21st, 2005 at 7:48am
Print Post  
Hi
merci and no problem.


@mlava
if you read this, you can start with validation Forumonline Code in admin center. There are 38 errors / 62 warnings
  Shocked  Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #5 - Nov 21st, 2005 at 11:14am
Print Post  
nice mod Smiley
only a small remark to your terminology.
you state in the admin center "..per Javascript" and are adding on the bottom in brackets "(Java)". Well since Javascript!=Java (and even doesnt have much in common except the first 4 letters) you should either say (Javascript) or (JS)... Wink
yeah thats nit picking Tongue
  
Back to top
WWW  
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #6 - Nov 21st, 2005 at 11:43am
Print Post  
Hi T-Master

I have waiting for this replay  Grin

I know that Javascript!=Java .... it was more thinking as ID .... but changes it on next version  Wink

lg XTC
  

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


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #7 - Nov 21st, 2005 at 3:11pm
Print Post  
Hi Xonder
i have make little changes for XHTML Validation  Grin

in Sources/ForumOnline.pl

Code
Select All
<html>
<body bgcolor="#$bgcolor" text="#$textcolor" link="#$linkcolor">
$guests $hpwhoison{'19'}, $numusers $hpwhoison{'20'}<br />$users
</body>
</html> 



changes to

Code
Select All
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>User Online</title>
</head>
<body bgcolor="#$bgcolor" text="#$textcolor" link="#$linkcolor">
$guests $hpwhoison{'19'}, $numusers $hpwhoison{'20'}<br />$users
</body>
</html> 



do you like it?  Tongue
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #8 - Nov 25th, 2005 at 4:41am
Print Post  
The version of whosonline for Y1.3 allowed you to be able to use iframes (as in this Y2 ver) BUT with the "guests allowed viewing" switched off. The condition of this mod is to have guests able to view the forum without logging on.

Is there to be an option where this mod can be used, with guest viewing switched off ??

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Chrisb59
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 7
Joined: Nov 27th, 2005
Re: Print Who Is Online - YaBB 2/2.1
Reply #9 - Nov 29th, 2005 at 1:52am
Print Post  
Here is a minor issue, the output on my webpage always shows 1 guest online.  If there are more than 1 guest then it works right, but if there are no guests online it will display 1 guest online on the webpage.  Is there something I missed?

Thanks
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #10 - Nov 29th, 2005 at 8:24am
Print Post  
Hi
this issue I have too. But this 1 Guest are you.  Grin and stay always on your webpage, the same if i stay logged on my forum, but i am not in my forum after 5 min cleared user online log, that i have set it, but i am on print who is online on my webpage.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #11 - Dec 1st, 2005 at 6:38pm
Print Post  
Hi Xonder
can you include feature, that hidden user not showing in Print who is online?

I know, but I want on all site to be hidden.  Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #12 - Dec 1st, 2005 at 8:12pm
Print Post  
Jeff wrote on Dec 1st, 2005 at 6:38pm:
Hi Xonder
can you include feature, that hidden user not showing in Print who is online?

I know, but I want on all site to be hidden.  Grin

That's easily solvable.  In the ForumOnline.pl file in the sources directory, look for this code:
Code
Select All
		if($name) {
			if(!$yyUDLoaded{$name}) { &LoadUser($name); }
			if(exists ${$uid.$name}{'password'}) { 


To keep the hidden users off, try substituting it with this:
Code
Select All
		if($name) {
			if(!$yyUDLoaded{$name}) { &LoadUser($name); }
			if(exists ${$uid.$name}{'password'} && ${$uid.$name}{'hide_me'} ne "on") { 


If it works, let me know.  If not, I'll actually have to physically install it.  I'm pretty sure that should work, though.
« Last Edit: Dec 1st, 2005 at 10:42pm by Mongo »  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #13 - Dec 1st, 2005 at 9:01pm
Print Post  
I get error

test here

http://www.grafix-world.nl
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Print Who Is Online - YaBB 2/2.1
Reply #14 - Dec 1st, 2005 at 10:43pm
Print Post  
Jeff wrote on Dec 1st, 2005 at 9:01pm:
I get error

test here

http://www.grafix-world.nl

Oops, my apologies.  The corrected code is in my last post.  I had one too many )'s in that code.  That's because I pasted it from my BoardIndex.pl file.

Try it minus the one ).
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint