The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UADisplay Details »» | |||||||||||||||||||||||||
UADisplay is an abbreviation of User Agent Display. This is my modification (or update if you will) of Fighter1405's original plugin:
https://vborg.vbsupport.ru/showthread.php?t=219687 Because he hasn't made a post since 2009, I decided to update his useful plugin with the latest operating systems and browsers in mind (which were lacking in his version), and also I've added a lot of other operating systems (Windows 7, Android, iOS, various Linux distributions, *BSDs, etc.) and other obscure and rarely used browsers, among other user agents. I also redid the icons completely, this time with a height of 24 pixels (previously it was 18 pixels). If you've been using Fighter's old version, I'd recommend to uninstall his plugin before you install my version, since it's not possible to have them both installed. I intend to add OS and browser version numbering too, kind of like you can see here: http://www.emulab.it/forum/index.php?topic=422 This one is a bit complicated though, as it requires a lot of code and I'm not sure if this is even supported by vBulletin 3. I know it works in vBulletin 4 however. If you want to give me a helping hand and suggestions with the code, I could add this faster, as I'm newbie programmer and still learning. What this plugin does is to add two icons in the postbit of operating system and browser. An example of what it looks like, using Android 4 Ice Cream Sandwich: Install steps: 1. Upload the icon folder to images/useragent 2. Import the XML file through Manage Products in admincp Show Your Support
|
Comments |
#12
|
|||
|
|||
Maybe your missing a needed hook.
|
#13
|
||||
|
||||
Here's a good site for you to check your user agent string (for the more unusual browsers and operating systems) and give it to me so I can add it:
http://id.furud.net/ Also, I could need some help from a skilled developer in adding the version number next to the icons. All help is appreciated. |
#14
|
||||
|
||||
I've tested it with vBulletin 4.2 now, and it works just as good as on 3.8.7. I'll upload the 1.1 version soon.
|
#15
|
|||
|
|||
It's working for me on all new posts. Doesn't seem to affect posts made previous to install.
However... I would like to change the alignment of the icons. See my screen shot.... How can I align them to the left? D. |
#16
|
||||
|
||||
Quote:
Next thing I'm going to work on (aside from adding new user agents and icons) is adding version number and operating system/browser name as descriptive text. Once that is done, I'll try to add icon positioning. I'm also going to release a vB4 version. |
#17
|
|||
|
|||
Just wanted to say that my users love this addition to our forum.
Nice work! D. |
#18
|
|||
|
|||
If I could make a suggestion.....
If people use TapaTalk - Nothing displayed or Forum Runner - two question marks. Not sure how hard it would be to identify users that use these programs but it would be neat. D. |
#19
|
||||
|
||||
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' />"; } } That's all. Feel free to use this addition anyway you like. |
#20
|
||||
|
||||
On vBulletin 4.2 there is a problem with the feature that prevents doubleposting.
When posting in the same thread twice within the time the administrator has set to merge the posts, you get a database error on the second post. The postid already exists in the browerosinfo table. I've corrected this problem by adding some code to the "save on new post" plugin of this product (new code is bold and red): Code:
global $db; $useragent = $_SERVER ? $_SERVER['HTTP_USER_AGENT'] : $HTTP_SERVER_VARS['HTTP_USER_AGENT']; $ua = strtolower($useragent); $ua_browser = 'unknown'; $ua_os = 'unknown'; // Browser detection: if (strpos($ua, 'epiphany') !== false) $ua_browser = 'epiphany'; else if (strpos($ua, 'galeon') !== false) $ua_browser = 'galeon'; code deleted just to make this post readable. Do not delete this code in the plugin!!! else if (strpos($ua, 'macintosh') !== false || strpos($ua, 'mac') !== false) $ua_os = 'macos'; $browser = $ua_browser; $os = $ua_os; $double = $db->query_first(" SELECT postid FROM " . TABLE_PREFIX . "browserosinfo WHERE postid =" . $post['postid'] ); if (empty($double)) { $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "browserosinfo (postid, OS, browser) VALUES (" . $post['postid'] . ",'$os' ,'$browser')"); } |
#21
|
||||
|
||||
^^ Excellent additions S@NL - BlackBiker, I'll include this code of yours into the plugin if you don't mind.
By the way, is it possible that I release this plugin under the GNU GPL v3? Fighter1405 based his plugin on this phpBB plugin, and that plugin doesn't have a license, but it says: "I used pieces of code and icons I found somewhere by Google... hopefully I didn't break any copirights." |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|