Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Recent Users List 1.2.4 SP1.2 (Read 9248 times)
Ronnie
Senior Member
****
Offline


And on that bombshell

Posts: 336
Location: Manchester
Joined: Dec 15th, 2001
Gender: Male
Recent Users List 1.2.4 SP1.2
Mar 19th, 2003 at 7:17pm
Print Post  
This mod has been through the beta board and people seem to be using it without problems. It adds a list of the x most recent visitors, optionally with their avatars, to the info centre on the board index. It is intended to add a little colour and sense of community to your board - it is best suited to smaller boards where most members know each other and who are interested who is online.

[url=http://www.badpoo.co.uk/ronnie/scripts/download.pl?action=download&file=recent_users_list.mod]Get the mod here[/url]

Un-resized output:
[img]http://www.badpoo.co.uk/ronnie/images/examples/rul_full.gif[/img]

Output resized to maximum width of 32:
[img]http://www.badpoo.co.uk/ronnie/images/examples/rul_resized.gif[/img]

No avatars:
[img]http://www.badpoo.co.uk/ronnie/images/examples/rul_no_avatars.gif[/img]
« Last Edit: Apr 26th, 2003 at 12:52pm by Ronnie »  
Back to top
WWWICQ  
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #1 - Mar 19th, 2003 at 9:01pm
Print Post  
i installed it and everything went well.

but now on my main page this line displays at the very top of the page.  this line only shows up on the main page:

Status: 200 OK Cache-Control: no-cache, must-revalidate Pragma: no-cache Content-Type: text/html; charset=$yycharset

any ideas??

edit: if i don't click the 'show avatars' box it works fine without that odd line at the top of the page.  Undecided
  
Back to top
 
IP Logged
 
Ronnie
Senior Member
****
Offline


And on that bombshell

Posts: 336
Location: Manchester
Joined: Dec 15th, 2001
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #2 - Mar 19th, 2003 at 10:06pm
Print Post  
Argh, I hate it when you leave a mod as beta for ages then people find problems as soon as you make it final...

Seriously though, thanks for pointing this out, there was a little bug caused by my laziness in converting the code from Release to SP1.2 - I left in a "print" instead of "$yymain .=". Redownload from the link above, it should work now.
  
Back to top
WWWICQ  
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #3 - Mar 19th, 2003 at 10:13pm
Print Post  
thanks!!
  
Back to top
 
IP Logged
 
Ronnie
Senior Member
****
Offline


And on that bombshell

Posts: 336
Location: Manchester
Joined: Dec 15th, 2001
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #4 - Mar 20th, 2003 at 2:03pm
Print Post  
Glad to see you have it working on your forum. Smiley (Just a thought here) how about reducing the rowspan of the cell so it cuts off before the "upcoming events" row? Or increasing the number of users to fill the space? I think that would look cool.
  
Back to top
WWWICQ  
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #5 - Mar 20th, 2003 at 4:50pm
Print Post  
it should look right now.  i 'tweaked' the rowspan once i reinstalled the mod.

and thanks again.
  
Back to top
 
IP Logged
 
Matt Andrews
Full Member
***
Offline


Smells Like Teen Spirit....

Posts: 239
Location: Notts
Joined: Jul 18th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #6 - Mar 22nd, 2003 at 4:32pm
Print Post  
WOOHOO! This mod works when I use image resizing now! yay!
  

Projects:
YaBB Template Editor - 10%
YaBB Newbie Guide - 80%
Back to top
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #7 - Mar 22nd, 2003 at 5:23pm
Print Post  
one more small problem.  when someone clicks on a users name in the Recent Users List they are taken to a 500 Internal Error Screen.  is that just me or is anybody else having this problem.

i've checked all the permissions but maybe i'm missing something.
  
Back to top
 
IP Logged
 
The Gong
Guest


Re: Recent Users List 1.0 SP1.2
Reply #8 - Mar 22nd, 2003 at 9:09pm
Print Post  
Hi Ronnie !

This is really a fine mod and works fine so far.

I would like to suggest a change, to support the calendar mod:

Quote:
File: Sources/BoardIndex.pl

Search for:

$rul_rowspan = ($username eq 'Guest') ? 6 : 4;

Add after:

if ($calindex == 1) {
         $rul_rowspan = ($username eq 'Guest') ? 8 : 6;
}




I have a question concerning your resize function.

Why you have decided to implement a javascript function to resize the
image instead of using the width & heigth values in the <img> tag directly ?

Example:

Quote:
$avatars_cell = qq~<td><img src="$avatar" width="$rul_avatar_width" height="$rul_avatar_height" alt="$memberinfo[1]" border="0" hspace="3"></td>~;                  


I am sure that there is a reason, but i can't understand it at the moment!


However, thx for this great mod !!!

-Gong-
  
Back to top
 
IP Logged
 
Matt Andrews
Full Member
***
Offline


Smells Like Teen Spirit....

Posts: 239
Location: Notts
Joined: Jul 18th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #9 - Mar 23rd, 2003 at 6:32pm
Print Post  
I get the 500 error too..
  

Projects:
YaBB Template Editor - 10%
YaBB Newbie Guide - 80%
Back to top
IP Logged
 
Ronnie
Senior Member
****
Offline


And on that bombshell

Posts: 336
Location: Manchester
Joined: Dec 15th, 2001
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #10 - Mar 25th, 2003 at 2:25pm
Print Post  
Rouen - thanks for highlighting this. This is another bug left in when I converted the mod to SP1.2 from Release. If you look at the link to their profiles, there's a & in there when it should be a ; You can fix this by hand if you like, but I'll be uploading a fixed mod in about 5 hours when I get home.

The Gong - I'd been thinking about doing that, but couldn't be bothered looking at the Calendar mod to work out how to do it. Wink Thanks, I'll add that to the new version tonight too.

Re: the resizing code. This is based on BHRA Webmaster's image resizing code. It's used so images can be resized to a size you specify, but kept at the right aspect ratio. Even after being resized, the width and height of the image remain at the correct proportions, so the image looks right.

If I used the example code you suggested, all the avatars would be forced to the width and height you set in the admin centre, which would result in them being mis-shaped.

I hope that explains it. Smiley
  
Back to top
WWWICQ  
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #11 - Mar 25th, 2003 at 3:58pm
Print Post  
Quote:
Rouen - thanks for highlighting this. This is another bug left in when I converted the mod to SP1.2 from Release. If you look at the link to their profiles, there's a & in there when it should be a ; You can fix this by hand if you like, but I'll be uploading a fixed mod in about 5 hours when I get home.

thanks again.  i'll do it by hand since its just one little change.  where do i change the & to ; ?  Undecided
  
Back to top
 
IP Logged
 
Ronnie
Senior Member
****
Offline


And on that bombshell

Posts: 336
Location: Manchester
Joined: Dec 15th, 2001
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #12 - Mar 25th, 2003 at 4:10pm
Print Post  
In BoardIndex.pl, search for the line

Code
Select All
$yymain .= qq~<tr>$avatars_cell<td><font size="1"><a href="$cgi&action=viewprofile;username=$last_username">$memberinfo[1]</a><br>$last_userwhen$online_now</font></td></tr>~; 



and replace it with

Code
Select All
$yymain .= qq~<tr>$avatars_cell<td><font size="1"><a href="$cgi;action=viewprofile;username=$last_username">$memberinfo[1]</a><br>$last_userwhen$online_now</font></td></tr>~; 



The mod has been updated to v1.1 to include this fix and the calendar compatability. Download from the link in the first post... uninstall old versions then install this one.
  
Back to top
WWWICQ  
IP Logged
 
Rouen
Junior Member
**
Offline


My PRECIOUSSSSSS!!

Posts: 52
Location: Portsmouth
Joined: May 29th, 2002
Gender: Male
Re: Recent Users List 1.0 SP1.2
Reply #13 - Mar 25th, 2003 at 4:19pm
Print Post  
thanks yet agian!!  i should be done with questions and problems now.  Grin
  
Back to top
 
IP Logged
 
The Gong
Guest


Re: Recent Users List 1.0 SP1.2
Reply #14 - Mar 25th, 2003 at 10:33pm
Print Post  
Thank you for the answer, Rouen.

I had some problems with that dynamic resizing on my board, since some avatars did not allways apear after the page has loaded.

As far as i know, if you just set the "width" in the <img> tag the heigth will be calculated by the browser itself.
So i have tried the following code, which replaces the resizing javascript completely.
For internet Explorer this works fine and faster, since there is no javascipt call anymore. But i don't know how it looks like for other browsers. But since this is standard HTML this may be ok.


BoardIndex.pl
Quote:
#is resizing enabled or shall we just show a plain image tag?
if ($rul_avatar_width || $rul_avatar_height)
{
if ($rul_avatar_heigth==0){
   if ($rul_avatar_width==0){
               $avatars_cell = qq~<td><img src="$avatar" alt="$memberinfo[1]" border="0" hspace="3"></td>~;                  
   }else{
               $avatars_cell = qq~<td><img src="$avatar" width="$rul_avatar_width" alt="$memberinfo[1]" border="0" hspace="3"></td>~;                                                   
   }
}else{
   if ($rul_avatar_height==0){
               $avatars_cell = qq~<td><img src="$avatar" width="$rul_avatar_width" alt="$memberinfo[1]" border="0" hspace="3"></td>~;                                                
   }else{
               $avatars_cell = qq~<td><img src="$avatar" width="$rul_avatar_width" height="$rul_avatar_height" alt="$memberinfo[1]" border="0" hspace="3"></td>~;                                                
   }
}
}


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