Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 30
0 members and 30 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas Electric Choice

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
problems with block-Top_Posters.php
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Mar 2003
problems with block-Top_Posters.php - 03-05-2003, 10:50 AM

I downloaded the block-Top_Posters.php and installed it .. it was working fine and then I changed my avatar to an avatar off site ... So now my image in the block is an X because of the way the block is coded ..does anyone know how to fix the code so it will work with off site avatars... I could just add the avatar on the site but then ever time it happens I would have to move around avatars sounds like extra work to me ..
thanks for any help you can give me ...
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Change the code here...
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 16
Join Date: Dec 2002
Location: Leesburg, VA
Change the code here... - 03-17-2003, 03:00 PM

replace this code:
Code:
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
With:
Code:
if (eregi("http://", $user_avatar)) {
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
You may have to set the borders to 0 to make it look right.. Hope this helps!


Webmaster of ControlBooth.com
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
03-17-2003, 03:36 PM

The block has been updated, at first it did not include this option as FB had plans to only leave gallery avatars, if using nuke 6.0 the code as posted
above would change to

Code:
if (eregi("http://", $user_avatar)) { 
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>"; 
} 
else 
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
use $user_id NOT $uid
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 16
Join Date: Dec 2002
Location: Leesburg, VA
use $user_id NOT $uid - 03-17-2003, 03:47 PM

No, my code is correct. The reason that you still use the $user_id instead of $uid is because of how the block calls the information from the DB. It is calling the $uid and setting $user_id equal to it.


Webmaster of ControlBooth.com
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
03-17-2003, 06:28 PM

zips updated, no sense in posting the code as it gets messed up as shown in the following reply.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
user-info block problems tones Nuke 7.x - Blocks 1 04-26-2005 06:52 AM
F1 (block-fisubsilversh-Forums.php) problems SlashDot Theme packs 0 11-27-2004 12:29 PM
Advanced Downloads Block Nuke6.5 problems cosclan Nuke 6.5 to 6.9 - Blocks 1 04-20-2003 10:11 AM
Block Problems Dan Purged Topics 7 01-09-2003 02:04 AM
Block/Module Problems w00fie Purged Topics 5 12-15-2002 12:47 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31