Page Index Toggle Pages: [1] 2 3 ... 11 Send TopicPrint
Very Hot Topic (More than 25 Replies) Recent User List for YaBB2 (V1.0) (Read 51192 times)
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Recent User List for YaBB2 (V1.0)
Feb 17th, 2006 at 7:32am
Print Post  
Hello

Here the 'Final-Version' of 'Ronnies Recent User List' mod.  Cheesy

Mod Credits:

Original Version (YaBB Gold 1.x): Ronnie
Adapted for YaBB 2:  r@be
Modified: Ron@Spikecity , Xonder (XTC)

Included language packs:

English (original)
German by Jet Li
Nederlands by jans

Mod Description:

This mod adds a list of the x most recent visitors, optionally with their avatars, to the right of the Info Center on the BoardIndex.

Screenshot:



Mod History: (17. Feb, 2006)
  • Recent User List for YaBB2 (V1.0)

    • The new code been based at Rons "UserCheck" suggestion
    • Now the Profile-link will be show with "group-colors"
    • Also changes <font size="1"> to CSS style <span class="small">
    • Now it is compatibly with Rons Skype / VoIP 1.0b Mod
    • Fix for Displayed User-Link (Color, Realname)
    • Added language 'Nederlands'
    • Delete redundant code at BoardIndex.pl
lg XTC
  

recent_user_list_yabb2_V1.0.zip ( 19 KB | Downloads )

Back to top
WWW  
IP Logged
 
multikon
Full Member
***
Offline


Hakuna Matata

Posts: 240
Joined: May 14th, 2003
Re: Recent User List for YaBB2 (V1.0)
Reply #1 - Feb 17th, 2006 at 7:40am
Print Post  
big thx  Smiley
  

beware ... yabb goes wbb ^^
Back to top
ICQ  
IP Logged
 
Outumuro
God Member
*****
Offline


Publisher - YaBB Toolbar

Posts: 569
Location: Los Angeles
Joined: Apr 14th, 2004
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #2 - Feb 17th, 2006 at 8:29am
Print Post  
Nice to see RUL go final.  Go team! Grin
  


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: Recent User List for YaBB2 (V1.0)
Reply #3 - Feb 17th, 2006 at 9:15am
Print Post  
Hi
thnx too.  Grin

One Question, Xonder. If a User is deleted, this user is still in the RUL.  Tongue Should I removed manualy per ftp?
  

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: Recent User List for YaBB2 (V1.0)
Reply #4 - Feb 17th, 2006 at 10:11am
Print Post  
Hi

Quote:
One Question, Xonder. If a User is deleted, this user is still in the RUL.  Tongue Should I removed manualy per ftp?

I think that is not real a problem .... the deleted User go's out of list ... when he move back by other Members online (x recent visitors)

The deleted user would be also display in the list of "user todays mod" .....

But if you want to not display a deleted User ... change this code in BoardIndex.pl

Search for:

Code
Select All
		if ($last_username) { 



And replace with this code:

Code
Select All
		if (-f "$memberdir/$last_username.vars") { 



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: Recent User List for YaBB2 (V1.0)
Reply #5 - Feb 17th, 2006 at 10:21am
Print Post  
Hi
thnx, works great now. About User today i have posted there too.  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
JMB
New Member
*
Offline



Posts: 20
Joined: Oct 7th, 2005
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #6 - Feb 17th, 2006 at 11:59am
Print Post  
Just installed this. Works great. Thanks!

Quite a few of my forum members use Safari on Mac OS X. The avatar resizing doesn't work properly in Safari... I have the width set to 50 and height set to 0 and the avatars are not resized at all! If I set both to 50, only the width is resized, the height not. With width set to 0 and height set to 50 the avatars shrink to tiny little boxes about 1px square!

Any ideas??!?

EDIT: I've managed to fix the problem by removing some lines from the javascript function.

I've changed this:
Code
Select All
if (userpic_width != 0) { imgEle.height = userpic_width * imgEle.height / imgEle.width; }
if (userpic_height != 0) { imgEle.width = userpic_height * imgEle.width /imgEle.height; } 



To this:
Code
Select All
if (userpic_width != 0) { imgEle.height = userpic_width; }
if (userpic_height != 0) { imgEle.width = userpic_height; } 



That fixes it.
« Last Edit: Feb 17th, 2006 at 3:27pm by JMB »  
Back to top
 
IP Logged
 
TRoN
Junior Member
**
Offline


...against the MCP!

Posts: 58
Location: Bad Iburg
Joined: Aug 8th, 2003
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #7 - Feb 17th, 2006 at 3:28pm
Print Post  
Thank you Xonder and congratulations to the final version!
  

.-== Sapere Aude! ==-.
|_TRoN_| @ digital-joker.de/forum
Back to top
WWWICQ  
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #8 - Feb 17th, 2006 at 4:52pm
Print Post  
Hi

JMB wrote on Feb 17th, 2006 at 11:59am:
EDIT: I've managed to fix the problem by removing some lines from the javascript function.

I've changed this:
Code
Select All
if (userpic_width != 0) { imgEle.height = userpic_width * imgEle.height / imgEle.width; }
if (userpic_height != 0) { imgEle.width = userpic_height * imgEle.width /imgEle.height; } 



To this:
Code
Select All
if (userpic_width != 0) { imgEle.height = userpic_width; }
if (userpic_height != 0) { imgEle.width = userpic_height; } 



That fixes it.

At this time i want post also a fix for Browser Safari ... but my code-fix would have meant much larger changes like yours  Shocked

Can you give me some feedback ... if your fix realy solve the problem .... and makes no problems with other browser .... so i can change the download zip.

lg XTC
  

Back to top
WWW  
IP Logged
 
TRoN
Junior Member
**
Offline


...against the MCP!

Posts: 58
Location: Bad Iburg
Joined: Aug 8th, 2003
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #9 - Feb 17th, 2006 at 5:05pm
Print Post  
You may change the code from
Code
Select All
	var userpic_width = $rul_avatar_width;
	var userpic_height = $rul_avatar_height; 


Code
Select All
	var userpic_width = $rul_avatar_height;
	var userpic_height = $rul_avatar_width; 



so the input from the admin-settings is correct. Otherwise you will set the maximum height in the admin field "maximum width".

Oh, I sadly have to say that with Opera the Avatars are MUCH smaller than with IE now Sad
  

.-== Sapere Aude! ==-.
|_TRoN_| @ digital-joker.de/forum
Back to top
WWWICQ  
IP Logged
 
JMB
New Member
*
Offline



Posts: 20
Joined: Oct 7th, 2005
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #10 - Feb 17th, 2006 at 6:34pm
Print Post  
OK, so I've changed those lines to:
Code
Select All
if (userpic_width != 0) { imgEle.width = userpic_width; }
if (userpic_height != 0) { imgEle.height = userpic_height; } 


Makes more sense!

It seems to work fine in all browsers I've tested in. The smart resizing to keep the proportions by just using the width option is broken now of course...

I noticed the problem in OmniWeb too, so it looks like a problem with anything that uses Apple's WebKit...
  
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #11 - Feb 17th, 2006 at 7:00pm
Print Post  
Great work Xonder, now all colors are right! Smiley
  
Back to top
 
IP Logged
 
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #12 - Feb 17th, 2006 at 7:17pm
Print Post  
Hello

@JMB

If you want ... you can also test out my attach fix ...

lg XTC
  

Back to top
WWW  
IP Logged
 
JMB
New Member
*
Offline



Posts: 20
Joined: Oct 7th, 2005
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #13 - Feb 17th, 2006 at 7:20pm
Print Post  
..:X.T.C:.. wrote on Feb 17th, 2006 at 7:17pm:
If you want ... you can also test out my attach fix ...

Thanks Xonder! I'll try it out and report back later...
  
Back to top
 
IP Logged
 
JMB
New Member
*
Offline



Posts: 20
Joined: Oct 7th, 2005
Gender: Male
Re: Recent User List for YaBB2 (V1.0)
Reply #14 - Feb 17th, 2006 at 8:55pm
Print Post  
Hi Xonder.

OK, I've been testing the Safari Fix! Here are my findings:

Width set to 0 & height set to 0: No resizing.
Width set to 60 & height set to 0: avatar resized to 60x60.
Width set to 0 & height set to 60: avatar resized to 60x60.
Width set to 60 & height set to 60: avatar resized to 60x60.

So, it fixed the problem of not resizing at all, but the smart proportions still don't work. This isn't a major problem for me, but it would be nice to have it working properly. I tested the code in Firefox and Camino too and it works fine. Just Safari is broken...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 11
Send TopicPrint