Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Show Avatar Anywhere Details »
Show Avatar Anywhere
Mod Version: 1.00, by dsboyce8624 (Member) dsboyce8624 is offline
Developer Last Online: Dec 2006 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 9
Released: 16 Jun 2005 Last Update: Never Downloads: 0
Not Supported Template Edits  

Okay, I searched all over for this and finally found something that works for 3.0.7 in a post, to help those who don't look outside the Mod Forums for answers I am going to post it here.

I did not code it or figure it out, all credit goes to Gellpak in this post. Gellpak, if you want to post this as your hack, PM me and I'll pull it.

Place this at the end of phpinclude_start:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then place the $welcome_avatar variable anywhere you want the avatar to show up.

I corrected his code a bit for people who do not have avatars.

Check the URL and file name for whatever image you use for those without an avatar.

Also, if you use vBadvanced and want this on the main page somewhere add welcome_avatar to the variable list in vBa CMPS Default Settings in the AdminCP.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show "No Avatar" Image If No Avatar is Selected MW[MWGN] vBulletin 2.x Full Releases 55 16 Sep 2004 02:59

Comments
  #2  
Old 16 Jun 2005, 21:07
nexialys
 
/me never understand why people are happy to see their own avatar anywhere... but i'm not everyone, so maybe this kind of hack is good.. ... yes it's good... no kidding, it's working correctly and is useful!
Reply With Quote
  #3  
Old 16 Jun 2005, 21:09
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Real name: Dennis
I wanted to have the avatar in the navbar because it adds a little color.

Guess it's all about how you want things to look.
Reply With Quote
  #4  
Old 16 Jun 2005, 21:10
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Real name: Dennis
Originally Posted by nexialys
... yes it's good... no kidding, it's working correctly and is useful!
Then click install please.
Reply With Quote
  #5  
Old 16 Jun 2005, 21:12
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
http://www.vbulletin.org/forum/showthread.php?t=83053
http://www.vbulletin.org/forum/showt...threadid=83150

__________________
Chamber of Secrets - The Ultimate Harry Potter Community!
Reply With Quote
  #6  
Old 16 Jun 2005, 21:14
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Real name: Dennis
Didn't mean to step on yours, just was in a hurry to get what I wanted done and I don't know enough to port yours like you did.
Reply With Quote
  #7  
Old 13 Jul 2005, 15:25
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Nov 2001
I can't get this working on my vbadvanced page. I've added the necessary info to php_includestart but the path is wrong for vbadvanced...the link for vbadvanced is http://www.tek-wiz.com/image.php?u=1...ine=1120950416


It needs to be forums/images.php?u........etc etc for vbadvanced

I have full paths in my settings for vbadvanced so I can't understand what's not working exactly...I have the $welcome_avatar variable as part of the welcome hack and it works when the navbar is showing the forums but it seems $avatarurl is not getting populated with the info. Any ideas?

Nevermind, I fixed it by grabbing this code from the show avatar in any template hack:

<a href="profile.php?do=editavatar"><img src="http://www.fullurltosite.com/forums/image.php?u=$bbuserinfo[userid]&amp;dateline=$avatar[dateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" /></a>

Instead of $welcome_avatar as it would only work on the forums page. THANK YOU!


EDIT: Ok I spoke too soon, the avatars work for me and guest. But if you are registered it only shows an avatar on the forum page...it seems the dateline info isn't getting to vbadvanced. Any help is greatly appreciated with this, this is my suspect navbar template because it seems to be conditional:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Like I say the funny thing is that the first conditional seems to work but for me as admin only, any other registered users don't even see a red x empty pic block, it just doesn't even populate the table....I'm stumped..my permissions are ok as far as I can tell.

So guest avatars IE no avatar and not logged in = OK
Admin avatar = ok
Logged in but no avatar selected = OK on forum only
Logged in avatar selected = OK on forum only. :ermm:


FIXED: I had the code that's supposed to be in php includes start in global.php from the welcome panel hack, removing it from global.php let it work all nicey nicey!! THANKS AGAIN!!!
__________________
JTMON

The Ticket Doctor
NY Traffic Tickets handled from the comfort of your home for as little as 99!!

Last edited by JTMON; 15 Jul 2005 at 05:42.
Reply With Quote
  #8  
Old 11 Aug 2005, 08:19
SilentNoise's Avatar
SilentNoise SilentNoise is offline
 
Join Date: Jan 2003
Real name: Steve
Originally Posted by dsboyce8624
I wanted to have the avatar in the navbar because it adds a little color.
That's why I just hunted this thing down. Thanks.
__________________
STEVE
Wolf Pack Car Club - Domestic V8 performance club based out of Edmonton, Alberta, Canada
Reply With Quote
  #9  
Old 21 Sep 2005, 06:32
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Real name: Mike
Works like a champ in vb 3.0.9
Reply With Quote
  #10  
Old 20 Sep 2006, 14:10
UnmodNick's Avatar
UnmodNick UnmodNick is offline
 
Join Date: Apr 2003
I know I am way late on this... I am using this on 3.0.8 and it works fine.
My question, is there a way to resize the avatar from it's set size only when specifying $welcome_avatar? This way that avatar can be made smaller and still leave the avatar in the postbit it's regular size.

Yes?
Reply With Quote
  #11  
Old 11 Dec 2006, 21:38
CustomizeVB CustomizeVB is offline
 
Join Date: Aug 2006
I'm using vB 3.6.3, can anyone update this and tell me where I can find phpinclude_start?

Thanks.
Reply With Quote
  #12  
Old 06 Jan 2008, 00:52
HunteRRosE HunteRRosE is offline
 
Join Date: Dec 2007
This is a cool idea... BUT... it might be useful to me if I could output a users avatar next to their comments in Wordpress. I've already integrated WP/vBulletin Bridge and all of my comments are now linked to the forums as well as show below my articles.

Unfortunately I haven't found a way to script pulling the users vBulletin avatar to an external page. Any suggestions?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 00:43.

Layout Options | Width: Wide Color: