The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Show Avatars on custom vB page? Do I need to query the db?
I built a custom vB page that has a query to get user data from the db. If I wanted to include avatars on that page, would I have to modify the query to include avatar data? This is for 3.8.
Here's the existing query: Code:
$users=$db->query("SELECT * FROM " . TABLE_PREFIX . "user AS user, " . TABLE_PREFIX . "userfield AS userfield WHERE user.userid = userfield.userid ORDER BY $orderby $direction LIMIT $pos,$perpage"); Code:
<if condition="$show['avatar']"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /><br></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|