The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Check if user has custom avatar
I hook into the member_build_blocks_start hook with a plugin.
I want to check if the current (logged-in) user has a custom avatar. I already inspected the $vbulletin->userinfo object. The only sign that I could find is "avatarid = 0" in the userinfo for my account (with a custom avatar). So I can check if a user has a generic avatar, I suppose. But how do I check if a user has a custom avatar? I don't want to just add another query, btw. --------------- Added [DATE]1302977327[/DATE] at [TIME]1302977327[/TIME] --------------- Hmmm.... when snooping around on other profiles, I found Code:
$vbulletin->userinfo['hascustomavatar'] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|