The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

07.09.10 at 21:45:16, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 2 3 ... 11
Recent User List for YaBB2 (V1.0) (Read 5591 times)
Xonder
Hacker God
*****
Offline

Spittal, Kärnten, Austria
Posts: 599



17.02.06 at 07:32:21  
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
 
IP Logged
 

Let#s talk about  SMS-MOD (YaBB 2)
  • YaBB-Server 1.3.2 by XTC
    ...
  • multikon
    Fulltime Hacker
    ***
    Offline

    Posts: 240



    Reply #1 - 17.02.06 at 07:40:36  
    big thx  Smiley
     
    IP Logged
     

    beware ... yabb goes wbb ^^
    Outumuro
    Hacker God
    *****
    Offline

    Los Angeles, California, USA
    Posts: 569



    Reply #2 - 17.02.06 at 08:29:15  
    Nice to see RUL go final.  Go team! Grin
     
    IP Logged
     

    ...
    ... ... ... ... ...
    Jeff
    Moderator
    *****
    Offline

    , Netherlands
    Posts: 2531



    Reply #3 - 17.02.06 at 09:15:35  
    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?
     
    IP Logged
     

    greetings
    Jeff
    Xonder
    Hacker God
    *****
    Offline

    Spittal, Kärnten, Austria
    Posts: 599



    Reply #4 - 17.02.06 at 10:11:34  
    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:
    		if ($last_username) { 
    
    


    And replace with this code:

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


    lg XTC
     
    IP Logged
     

    Let#s talk about  SMS-MOD (YaBB 2)
  • YaBB-Server 1.3.2 by XTC
    ...
  • Jeff
    Moderator
    *****
    Offline

    , Netherlands
    Posts: 2531



    Reply #5 - 17.02.06 at 10:21:19  
    Hi
    thnx, works great now. About User today i have posted there too.  Wink
     
    IP Logged
     

    greetings
    Jeff
    JMB
    Bloody Novice
    *
    Offline

    , England
    Posts: 20



    Reply #6 - 17.02.06 at 11:59:58  
    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:
    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:
    if (userpic_width != 0) { imgEle.height = userpic_width; }
    if (userpic_height != 0) { imgEle.width = userpic_height; }


    That fixes it.
    « Last Edit: 17.02.06 at 15:27:04 by JMB »  
    IP Logged
     
    TRoN
    Hacker Wannabe
    **
    Offline

    Posts: 56



    Reply #7 - 17.02.06 at 15:28:56  
    Thank you Xonder and congratulations to the final version!
    « Last Edit: 17.02.06 at 15:56:03 by TRoN »  
    IP Logged
     

    .-== Sapere Aude! ==-.
    |_TRoN_| @ digital-joker.de/forum
    Xonder
    Hacker God
    *****
    Offline

    Spittal, Kärnten, Austria
    Posts: 599



    Reply #8 - 17.02.06 at 16:52:16  
    Hi

    JMB wrote on 17.02.06 at 11:59:58:
    EDIT: I've managed to fix the problem by removing some lines from the javascript function.

    I've changed this:
    Code:
    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:
    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
     
    IP Logged
     

    Let#s talk about  SMS-MOD (YaBB 2)
  • YaBB-Server 1.3.2 by XTC
    ...
  • TRoN
    Hacker Wannabe
    **
    Offline

    Posts: 56



    Reply #9 - 17.02.06 at 17:05:25  
    You may change the code from
    Code:
    	var userpic_width = $rul_avatar_width;
    var userpic_height = $rul_avatar_height;

    Code:
    	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
     
    IP Logged
     

    .-== Sapere Aude! ==-.
    |_TRoN_| @ digital-joker.de/forum
    JMB
    Bloody Novice
    *
    Offline

    , England
    Posts: 20



    Reply #10 - 17.02.06 at 18:34:36  
    OK, so I've changed those lines to:
    Code:
    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...
     
    IP Logged
     
    Larian
    Hacker Expert
    ****
    Offline

    Leipzig, Germany
    Posts: 310



    Reply #11 - 17.02.06 at 19:00:09  
    Great work Xonder, now all colors are right! Smiley
     
    IP Logged
     
    Xonder
    Hacker God
    *****
    Offline

    Spittal, Kärnten, Austria
    Posts: 599



    Reply #12 - 17.02.06 at 19:17:05  
    Hello

    @JMB

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

    lg XTC
     
    IP Logged
     

    Let#s talk about  SMS-MOD (YaBB 2)
  • YaBB-Server 1.3.2 by XTC
    ...
  • JMB
    Bloody Novice
    *
    Offline

    , England
    Posts: 20



    Reply #13 - 17.02.06 at 19:20:22  
    Xonder wrote on 17.02.06 at 19:17:05:
    If you want ... you can also test out my attach fix ...

    Thanks Xonder! I'll try it out and report back later...
     
    IP Logged
     
    JMB
    Bloody Novice
    *
    Offline

    , England
    Posts: 20



    Reply #14 - 17.02.06 at 20:55:56  
    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...
     
    IP Logged
     
    Pages: 1 2 3 ... 11
    © 2000-2009 by - All rights reserved.

    SourceForge.net Logo
     The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum