» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 64
0 members and 64 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
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 electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on problems with block-Top_Posters.php within the Purged Topics forums, part of the NM Staff category; I downloaded the block-Top_Posters.php and installed it .. it was working fine and then I changed my avatar to ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2003, 11:50 AM
Junior Member
 
Join Date: Mar 2003
Posts: 18
problems with block-Top_Posters.php
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
  #2 (permalink)  
Old 03-17-2003, 04:00 PM
Junior Member
 
Join Date: Dec 2002
Location: Leesburg, VA
Posts: 16
Change the code here...
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
  #3 (permalink)  
Old 03-17-2003, 04:36 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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
  #4 (permalink)  
Old 03-17-2003, 04:47 PM
Junior Member
 
Join Date: Dec 2002
Location: Leesburg, VA
Posts: 16
use $user_id NOT $uid
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
  #5 (permalink)  
Old 03-17-2003, 07:28 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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 07:52 AM
F1 (block-fisubsilversh-Forums.php) problems SlashDot Theme packs 0 11-27-2004 01:29 PM
Advanced Downloads Block Nuke6.5 problems cosclan Nuke 6.5 to 6.9 - Blocks 1 04-20-2003 11:11 AM
Block Problems Dan Purged Topics 7 01-09-2003 03:04 AM
Block/Module Problems w00fie Purged Topics 5 12-15-2002 01:47 PM


All times are GMT -5. The time now is 09:59 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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