» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 46
0 members and 46 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
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Display Avatar User Menu Block for PHP-Nuke 6.5 within the Nuke 6.5 to 6.9 - Blocks forums, part of the PHP-Nuke 6.5 to 6.9 category; Hi , I just uploaded the user menu I got from your site , it is for nuke 6.5 , my question ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2003, 05:34 PM
Junior Member
 
Join Date: Oct 2002
Location: Page Ranking
Posts: 19
Display Avatar User Menu Block for PHP-Nuke 6.5
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
  #2 (permalink)  
Old 03-25-2003, 04:09 PM
Junior Member
 
Join Date: Feb 2003
Posts: 21
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
  #3 (permalink)  
Old 03-25-2003, 04:16 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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
  #4 (permalink)  
Old 03-25-2003, 04:24 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #5 (permalink)  
Old 03-25-2003, 04:31 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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
  #6 (permalink)  
Old 03-25-2003, 04:37 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #7 (permalink)  
Old 03-25-2003, 04:51 PM
Junior Member
 
Join Date: Feb 2003
Posts: 21
Thanks again guys - works like a charm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-03-2003, 07:39 PM
Junior Member
 
Join Date: Nov 2002
Posts: 23
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
  #9 (permalink)  
Old 04-03-2003, 07:56 PM
Junior Member
 
Join Date: Nov 2002
Posts: 23
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
  #10 (permalink)  
Old 04-03-2003, 08:17 PM
Member
 
Join Date: Nov 2002
Location: Michigan, USA
Posts: 359
Send a message via AIM to ReNeGaDe
slapping yourself silly truly is a proven cure for stupidity.

believe me, i know 8)
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 03:02 PM
Block User Menu (at here) Jimmys444 Nuke 7.x - Blocks 1 03-12-2005 12:37 AM
User Info Block doesnt display users registered today or Yes Banzai Nuke 6.5 to 6.9 - Blocks 7 06-22-2003 05:21 PM
Nukemod User Menu avatar Black_Mage nukemods.com 2 06-02-2003 11:03 PM
User Menu Block oneof1121 Purged Topics 4 02-21-2003 11:03 PM


All times are GMT -5. The time now is 11:44 PM.


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