Quote:
Originally Posted by twista46
Hello
How can I remove the drop down menu in the Postbit, the user name should be only as a link
|
This will disable the memberaction dropdown in postbit_legacy
but retain the link to user profile, and the online status for
the user. Create the plugin and alter the template "postbit_legacy"
Create the following plugin.
Code:
//Product: vBulletin
//Hook: Postbit_display_complete
//Title: Disable_member_dropdown_on_legacy_postbit
//ExOrder: 5
if(THIS_SCRIPT == 'showthread')
{
$memberinfo = &$post;
vB_Template::preRegister('postbit_legacy',array('memberinfo' => $memberinfo));
}
Template:
postbit_legacy
Search:
HTML Code:
{vb:raw memberaction_dropdown}
Replace:
HTML Code:
<vb:comment>{vb:raw memberaction_dropdown}</vb:comment>
<a class="username {vb:raw memberinfo.online}"
href="{vb:link member, {vb:raw memberinfo}}"
title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}">
<strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
I hope this helps