Another option...
If you're going the conditional route then I would do the following:
1. Create a new template called "postbit_pm".
2. Copy contents of postbit template to postbit_pm.
3. Add postbit_pm to cache_templates hook in plugin:
Product: vBulletin
Hook: cache_templates
Name: Postbit PM Cache Templates
Execution Order: 5
Plugin PHP code:
Code:
if (THIS_SCRIPT == "showthread")
{
global $globaltemplates;
$globaltemplates[] = 'postbit_pm';
}
Plugin Active: Yes
Save
4. Add postbit_pm to postbit_display_complete hook in plugin:
Product: vBulletin
Hook: postbit_display_complete
Name: Postbit PM Postbit Display Complete
Execution Order: 5
Plugin PHP code:
Code:
eval('$postbit_pm = "' . fetch_template('postbit_pm') . '";');
Plugin Active: Yes
Save
5. In template postbit at the top add after "$template_hook[postbit_start]"
Code:
<if condition="THIS_SCRIPT == 'private'">
$postbit_pm
<else />
6. In same template at the bottom but just above "$template_hook[postbit_end]" add:
Six steps here but you'll have your own postbit template for private messages.
Edited: Some corrections.