The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Place Avatar in VB and Non-VB Pages Details »» | |||||||||||||||||||||||||||
Place Avatar in VB and Non-VB Pages
Developer Last Online: Apr 2010
The following is a bit of code I came up with to continue to use the Avatar in Navbar mod by fraghappy. After searching for many hours I decided just to figure it out myself.
On the bright side, none of the plugins and db queries from the old mod are used. I'll try to support this as much as possible, but I don't foresee anyone having any real issues. It's pretty straight forward. Don't forget to click the INSTALL Features in progress
You just need to become familiar with the following bit of code: This will display a users avatar: Code:
<img src="$vboptions[bbdir]/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /> In navbar template replace: Code:
<table cellpadding="0" cellspacing="0" align="left" style="margin-top:5px;"> <tr> <td><a href="profile.php?$session[sessionurl]do=editavatar"><img src="$navbar_ava[0]" alt="Your avatar" border="0" /></a> </td> Code:
<table cellpadding="0" cellspacing="0" align="left" style="margin-top:5px;"> <tr> <td><a href="$vboptions[bbdir]/profile.php?$session[sessionurl]do=editavatar"><img src="$vboptions[bbdir]/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /></a> </td> Code:
<table cellpadding="0" cellspacing="0" align="left" style="margin-top:5px;"> <tr> <td><a href="$vbpoptions[bbdir]/profile.php?$session[sessionurl]do=editavatar"><img src="$vbpoptions[bbdir]/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /></a> </td> Personally I don't use the no avatar image as the default. I created a custom default avatar for each usergroup. As for the plugin for the original Avatar on Navbar mod, I don't even use it. With this bit of code it's simple and not needed. or if you want to call it directly using an http: use this method: Code:
<table cellpadding="0" cellspacing="0" align="left" style="margin-top:5px;"> <tr> <td><a href="http://www.yourwebsite/pathtoforums/profile.php?$session[sessionurl]do=editavatar"><img src="http://www.yourwebsite/pathtoforums/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /></a> </td> Enjoy! 07/28/2008 - Added simple screenshot. Show Your Support
|
Comments |
#32
|
||||
|
||||
I have 3.7.4
I tried everything u guys said It just gives blank |
#33
|
||||
|
||||
I'm running 3.8.0 on a test site and only wanted to display a small version of the member's avatar so I streamlined the code to this.
Code:
<img width="50" src="$vboptions[bburl]/image.php?u=$bbuserinfo[userid]" alt="Your Avatar" border="0" />
|
#34
|
|||
|
|||
Can someone come up with a fix. I cant manage to install this avatar thingy into my navbar.
unless, the instructions are just confusing. Can anyone help me ? Thanks |
#35
|
|||
|
|||
there is one thing missing...
what if the user is using a avatar from a different site, for example, from google images or is using gallery avatars from the images/avatars directory |
#36
|
||||
|
||||
A simple tweak.
If you dont want the goofy vbulletin image to come up for guests, simply add: <if condition="$show['member']"> to the beginning of the code and a </if> to the end of the code. Then the avatar will only show for logged in users. |
#37
|
|||
|
|||
This also doesn't seem to work if you store custom avatars in the filesystem as opposed to the database... anyone know a workaround?
|
#38
|
|||
|
|||
Quote:
If not, I have no idea why it won't work.. |
#39
|
|||
|
|||
isnt the "&dateline=date" missing?
|
#40
|
|||
|
|||
if the member not have avatar how i put "noavater.gif" ?
|
#41
|
||||
|
||||
Quote:
Yes it happens the same for me, the avatar does not update, but it does change in the postbit! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|