Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 53
1 members and 52 guests
health46ev26
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Blocks

Reply
 
LinkBack Thread Tools Display Modes
Display Avatar User Menu Block for PHP-Nuke 6.5
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 19
Join Date: Oct 2002
Location: PR
Display Avatar User Menu Block for PHP-Nuke 6.5 - 03-22-2003, 04:34 PM

Hi ,

I just uploaded the user menu I got from your site , it is for nuke 6.5 , my question is: " How can I make it display the users avatar , like in this site?"
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Feb 2003
03-25-2003, 03:09 PM

I tried inserting the following line:

$content .= "<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";

But $userinfo[user_avatar] always returns a blank whether the user has an icon or not. Anyone else have success with this?

Regards,
Bill
   
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-25-2003, 03:16 PM

You would first need to get the value for the avatar something like:

Code:
    $result=sql_query("SELECT user_avatar FROM ".$user_prefix."_users where username=$username", $dbi);
    while(list($user_avatar) = sql_fetch_row($result, $dbi)) {
    $content .= "<center><img src=\"modules/Forums/images/avatars/$user_avatar\" alt=\"\"></center>
\n";
}
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-25-2003, 03:24 PM

OR, you can simply insert this line towards the top of the block file just below the global statement
Quote:
getusrinfo($user);
that will generate the user ifo for the user's avatar.

I'll upload the block we are using here that I added the Avatar to as a separate download since users complain it does not show a users OFFSITE avatar.

mikem
   
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-25-2003, 03:31 PM

There's always an easy solution, i often choose the other path :roll:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-25-2003, 03:37 PM

Quote:
Originally Posted by chatserv
There's always an easy solution, i often choose the other path :roll:
yeah you and your long sql queries..hehe :?

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Feb 2003
03-25-2003, 03:51 PM

Thanks again guys - works like a charm
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 23
Join Date: Nov 2002
04-03-2003, 06:39 PM

For the life of me I can't get this to work for some reason

this line is in the code:

Code:
getusrinfo($user);
And something "close" to what chatserv posted:

Code:
  // Info for users which is logged in
    if ($userinfo[user_avatar]) {
		$content .= "
<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";
	}
is there something else I'm missing?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 23
Join Date: Nov 2002
04-03-2003, 06:56 PM

nevermind figured it out.

I was using the user info block instead...d'oh

/goes to slap self silly ops:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Member
 
Status: Offline
Posts: 359
Join Date: Nov 2002
Location: Michigan, USA
04-03-2003, 07:17 PM

slapping yourself silly truly is a proven cure for stupidity.

believe me, i know 8)
  Send a message via AIM to ReNeGaDe  
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
Nuke Mods User Menu ultimitetinafan Open topics 19 07-13-2006 02:02 PM
Block User Menu (at here) Jimmys444 Nuke 7.x - Blocks 1 03-11-2005 11:37 PM
User Info Block doesnt display users registered today or Yes Banzai Nuke 6.5 to 6.9 - Blocks 7 06-22-2003 04:21 PM
Nukemod User Menu avatar Black_Mage nukemods.com 2 06-02-2003 10:03 PM
User Menu Block oneof1121 Purged Topics 4 02-21-2003 10:03 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