The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Getting user avatar URL?
I try to use the official avatarurl because it has the dateline built in (so stuff doesn't get stuck in cache when people update their avatar), but it's not in a lot of templates. So I've tried making a plugin to make it work manually, but I'm having some trouble.
Example with MEMBERINFO: Code:
require_once('./includes/functions_user.php'); $avatarurl = fetch_avatar_url($vbulletin->userinfo['userid']); vB_Template::preRegister('MEMBERINFO', array('avatarurl' => $avatarurl[0])); Code:
{vb:raw avatarurl} What I need is for the user ID to match the user ID of the profile I'm viewing. So if I'm user 1, and I view user 5's profile, I should see user 5's avatar, not my own. Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|