![]() |
I can't seem to get this operating.
When i try to find the original navbar code for replacement, I'm not seeing it. |
I don't want to add a default avatar to all users but I would like to display a default avatar in the navbar when the user is missing one.
could that be done with something like? Quote:
Another question: The avatars display just fine but when a person without avatar logs in the text "Your avatar" is missing and all there is is a blank space. |
I'm trying to place the avatar right next to my "Welcome _____, you have X PMs and notifications" part of the navbar.
Here's my code I'm using, with the avatar part highlighted red: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> Code:
<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> |
if a user doesn't have an avatar though it doesn't show the noavatar pic... matter of fact in the code i also can't see anything saying it should pick out a noavatar pic.
and if a user isn't logged in it shows this image: https://vborg.vbsupport.ru/image.php?u=0 https://vborg.vbsupport.ru/external/2008/11/1.php?u=0 |
Quote:
edit: After taking a look, it seems that the codes given in this thread are calling whatever the url of the current page is as the image. Since a webpage is obviously not an image, that is why the avatar won't show up. My question is, how did everyone else get theirs to work. I've tried using "$avatarurl" and "$user[avatarurl]" as the image source and still haven't had any luck. |
It works on my test site which have vBadvanced and vbulletin files in the same folder(root), but It won't work on my live site where I have vBa inte the root and the forum in /forum
Any idea why? |
Quote:
|
Quote:
|
I'd like to update by saying that even after moving my compss to inside my forum's directory, I still have no avatar showing up.
|
Quote:
Code:
<a href="http://www.yourdomain/forumsdir/profile.php?$session[sessionurl]do=editavatar"><img src="http://www.yourdomain/forumsdir/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /></a> |
All times are GMT. The time now is 12:56 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:
|