![]() |
Show Avatar Anywhere
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: Code:
require_once('./includes/init.php'); 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. |
[high]* nexialys 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![/high]
|
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. |
Quote:
|
|
Quote:
|
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]&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: Code:
<!-- breadcrumb, login, pm info --> 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!!! |
Quote:
|
Works like a champ in vb 3.0.9
|
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? |
All times are GMT. The time now is 08:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|