• Support will be limited until May 8th, as I will be out of the office travelling. Thank you for your patience and understanding.
Status
Not open for further replies.

s3ponline

Customer
I need to move the postbit one around and was wondering if there is a vb:raw I can use.

Fillip H. David @Jesus ?
 
No, but, you can create the following plugin to give yourself some:

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}

Turn off the original Postbit Integration plugin from USM when ready, or swap between them. Should be safe from upgrades as well :)
 
and Darkwaltz4 wins.

Nothing BUT win. Win Everywhere. WIN ALL THE TIME.

Good job man. Thank you! This should be default!

Now I can move it wherever I want! Sweeeeeet!
 
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