The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
I am trying to create a script that will draw the user's avatar, using: Code:
if( a certain user has NO avatar)
{
echo "<img src='forum/images/avatars/default_avatar.gif";
}
else
{
echo "<img src='http://www.^^^^^^^^^^.com/forum/image.php?u=$userid[userid]'>";
}
Any clue how I would go about doing this? |
|
#2
|
||||
|
||||
|
|
|
#3
|
|||
|
|||
|
No because $avatarurl isn't a global variable..
|
|
#4
|
|||
|
|||
|
Quote:
Code:
<if condition="$show['avatar']"> <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> <else /> <img src="images/avatars/baghead.gif" alt="No Avatar" border="0" /> </if> |
|
#5
|
|||
|
|||
|
Where is $avatarurl stored in mySQL? and how can I call the user's avatar of a certain user id?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|