Status
Not open for further replies.

Madhatterr

Customer
Hi there :) We're really excited to get VbAvatars up and running on our site. It's a feature we've been looking for, for quite some time :D

I'd like to request that there be a template hook or other means of being able to display the avatar in other places on vbulletin such as custom pages (created via this method: [HOW TO - vB4] Create your own vBulletin page - vBulletin.org Forum)

Also, the ability to use larger sized original .pngs for the dolls when creating and displaying that once saved, VbAvatars takes a snapshot and crops the top bust/head portion to square and resizes it to the max avatar dimension for the boards. (Similar to what the Meez site does.)
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
I'd like to request that there be a template hook or other means of being able to display the avatar in other places on vbulletin such as custom pages (created via this method: [HOW TO - vB4] Create your own vBulletin page - vBulletin.org Forum)
This already exists, if you allow users to use vBAvatars as their forum avatar, you can use the normal method(s) of grabbing forum avatars. It's a bit complex, so I can't give a full tutorial, but fetch_userinfo() in /includes/functions.php will have the code you need :)

If you don't, you can simply refer to /dbtech/avatars/images/avatars/{vb:raw bbuserinfo.userid}.png - but this will be a blank image if the user has no avatar configuration.

This is the contents of the postbit_display_complete hook for vBAvatars that works around this issue:
PHP:
$vbavatar = (array)@unserialize($this->post['dbtech_avatars_configuration']);
if ($this->registry->options['dbtech_avatars_postbit_block'] AND file_exists(DIR . '/dbtech/avatars/images/avatars/' . $this->post['userid'] . '.png') AND $vbavatar[0])
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<div class="avatarpostbit"><img src="' . $this->registry->options['bburl'] . '/dbtech/avatars/images/avatars/' . $this->post['userid'] . '.png?d=' . $this->post['dbtech_avatars_dateline'] . '" alt="" /></div>';
}

Adjust as needed :)

Also, the ability to use larger sized original .pngs for the dolls when creating and displaying that once saved, VbAvatars takes a snapshot and crops the top bust/head portion to square and resizes it to the max avatar dimension for the boards. (Similar to what the Meez site does.)
That sounds terribly complex xP

We might add it still :)
 
Status
Not open for further replies.
Back
Top