Thanks for this mod. I've installed without problems.
But... as you would guess, there are users that don't like all the information in the postbit. They like their forums lean and mean.
So I've made the showing of the OS and browser icons optional.
This is how I did it.
- First I've created a new single-selection radio buttons userfield (see attachment)
- Then I've changed the plugin “Display the information on postbit”. The code in red are my additions:
Code:
global $vbulletin;
$os = $post['OS'];
$browser = $post['browser'];
if ($vbulletin->userinfo['field29'] != "No") {
if($os != "" && $browser != "") {
$template_hook['postbit_userinfo_right'] .= "<img src='images/useragent/icon_$os.png' alt='$os' /><img src='images/useragent/icon_$browser.png' alt='$browser' />";
}
}
"
field29" should be replaced by the number of the userfield you've created.
That's all. Feel free to use this addition anyway you like.