Status
Not open for further replies.

Bianca

Customer
Hi,

how i can move the status and mood under the avatar?
Right now both over the avatar and it looks not really nice for me.
 
Actually their is a way but you shoild have some experience with vb in order to do this.

AdminCP > Plugins & Product > Add New Plugin

Product: vBulletin
Hook Location: postbit_display_complete
Title: Manual USM Postbit Integration
Execution Order: 5
Plugin is Active: Yes
Plugin PHP Code:
PHP:
$opts =& $this->registry->options;
$backup = array($template_hook['postbit_userinfo_left'], $opts['dbtech_status_enabled'], $opts['dbtech_status_moodenabled']);

foreach (array('status', 'mood') AS $i => $which)
{    //for both types separately
    if ($backup[$i + 1])
    {    //only enabled individually
        $opts['dbtech_status_enabled'] = !$i;
        $opts['dbtech_status_moodenabled'] = $i;
        $template_hook['postbit_userinfo_left'] = '';
        require(DIR . '/dbtech/status/hooks/postbit_display_complete.php');
        $template_hook['dbtech_' . $which] = $template_hook['postbit_userinfo_left'];
    }
}

list($template_hook['postbit_userinfo_left'], $opts['dbtech_status_enabled'], $opts['dbtech_status_moodenabled']) = $backup;
unset($opts, $backup);

That will give you access to these variables for use in your postbit/_legacy templates:
HTML:
{vb:raw template_hook.dbtech_status} and {vb:raw template_hook.dbtech_mood}

You can put those two variables anywhere in Your postbit_legacy or postbit template which ever you use. Bes is to test out the locations by adding them to various areas in the template till you get them where you want.

Turn off the original Postbit Integration plugin from USM when ready, or swap between them. Should be safe from upgrades as well :)
 
Now that is sexy..

The original mood and status were hooked into this: {vb:raw template_hook.postbit_userinfo_left}

I just moved it under my postuseravatar class.

Thanks for that ^^
 
Can someone help me and tell me where I need to put the code if I want to have the status and mood below the avatar?
mood.jpg
 
Hi,

I did what you instructed and created the manual plug-in, but when I disable the original postbit integration the user status cannot be edited anymore. When I click to edit it, nothing happens. The mood works, but the status doesn't. The text box does not appear.

Thank you in advance!
 
This thread is over 6 months old, please start your own thread if you're having an issue :)
 
Status
Not open for further replies.

Legacy User Status & Moods

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
63
Customer rating
0.00 star(s) 0 ratings
Back
Top