The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Avatar Not Appearing For Users
In the User Info Box template mod [link], rootnick has a modification that includes the user's avatar (see page 2 post #3 [link]).
I applied his modification and it works just perfectly for my account, but it doesn't work for any other user. After a bit of research into the problem, I've narrowed it down, but still have no real solution. The modification relies on a url for the image location. Code:
<img width="75" height="75" src="avatar.php?userid=$bbuserinfo[userid]"> It's not a problem with the mod, it's something to do with the URL itself. The only difference I've found between my account and everyone else's is that I use a custom avatar and the other users use an avatars that I've uploaded for them to use. So, for some reason, the avatar.php page is not pulling up those. Anyone have any clue how I could fix this? |
#2
|
|||
|
|||
Using the above, you would have to have an avatar "pre-made" for each user with each ID, otherwise it will not auto-***ign and avatar to them (which honestly, would be a pain if you have more than a few members ).
I would suggest just letting them choose their own avatar is they want, but if you want them all to have an avatar, I think there is a small "one-line" hack that will show a default one (of your choice) until they choose their own. |
#3
|
||||
|
||||
I understand that if the user doesn't have an Avatar ***igned it won't display. However, I've ***igned avatars to these members, since they are test accounts.
The only difference is that the avatar has already been uploaded and made available for them to use. Mine is a custom avatar that I uploaded to my account. So, all accounts have an avatar ***igned. |
#4
|
||||
|
||||
bump...
|
#5
|
||||
|
||||
Thanks to some help from xiphoid in the #vBorg chat channel, I've made some progress with this. It seems that the code I was using will only work with Admins and SuperUsers. If the user is a normal "user," then it won't work.
I found that I can query the user table and get the id of the icon they are using, but I can't actually get the avatar to pull up, just it's id. I'm also starting to see why the welcome panel is a hack and not a template mod But, I'm not giving up just yet. Does anyone know how I can pull up a user's avatar on the forum home? |
#6
|
||||
|
||||
Ok, after playing with this some more, I came across another bit of code in the getinfo template.
Code:
$userinfo[avatarurl] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|