vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - UADisplay (https://vborg.vbsupport.ru/showthread.php?t=295667)

EliasAlucard 03-01-2013 11:00 PM

UADisplay
 
1 Attachment(s)
This plugin is a superior fork based on nhawk's plugin:

https://vborg.vbsupport.ru/showthread.php?t=280899

Various issues led to me releasing this fork, in any case, if you're using nhawk's older plugin, you must uninstall it before you install UADisplay 1.1; I am not responsible for whatever it might screw up with your vBulletin database if you install UADisplay on top of his older plugin; they are not compatible with each other as far as I know.

I welcome code input, improvement and additional features requested by vBulletin.org members. However, if you want to help out, since this is a copyleft open source plugin, you must agree to release your code under the GNU GPL v3.

If you want me to add your browser/OS, you need to give me your unsupported user agent string. Go here:

http://id.furud.net/

^^ Copy/paste the full user agent string and post it in this thread, so that I can study the code, like this:

Mozilla/5.0 (Linux; Android 4.0.4; GT-I9300 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19

And you'll get this:

https://vborg.vbsupport.ru/external/2014/12/7.png

Features:

Display members' operating system and/or browser in postbit profile, threads and other areas.
Hover over logos for more detailed information.
Forbid usergroups from seeing a member's operating system/browser type.
Select the use of CSS Sprites or regular PNG logos.
Settings in Admin Control Panel

* INSTALLATION & UPGRADE*
----------------------------------
1) Upload the content of the 'upload' folder to your forum's root.
(If your forum's location is http://www.example.com/forums/, the root is /forums/)

2) Import the product XML file (product-uadisplay.xml) into the Product Manager in AdminCP.

3) Go to ACP->Settings->Options->EliasAlucard - User Agent Display Settings and make your selections for the add-on.

* History (Changelog) *
------------------------------
UADisplay changelog:

* v1.1.1 (06 March 2013)
- Yandex Browser
- GNU Hurd (better, more thorough GNU detection will be added in later releases)
- Corrected rekonq detection
- Old Netscape Navigator icon, now redone from a higher resolution, better looking source
- Full Arora detection this time
- Superbird
- Tapatalk
- QupZilla

* v1.1 (02 March 2013)
- New codebase, based on nhawk's/Snog's modification of X3mE's Simple Machines Forum plugin, which in turn was based on Marcin Krol's PHP Web Browser Identifier v0.9
- Full vBulletin 4 compatibility (UADisplay 1.0 had a different codebase and worked on vB4, but was mainly designed for vB3)
- Icons now have version numbers when hovered over by the mouse (if supported by the user agent string; this feature was lacking in UADisplay 1.0)
- Settings in Admin Control Panel (this was also lacking in UADisplay 1.0 and it is a new feature from nhawk's plugin)
- CSS sprites, also from nhawk's plugin
- Redid and resized all icons from 19 to 24 pixels; this may increase in a later update when I have time, to 29 pixels
- Changed location of uadisplay.php from includes folder to forum root for additional security; no need to have it in a sensitive folder like includes
- Added icons/identification for:
-- Android Mobile and Android Tablet (works only in Firefox for now), Android Opera
-- Android 1.5 to 4.2 (with specific icons, from Cupcake to Jelly Bean)
-- Android Browser
-- Arch Linux
-- Arora
-- Chrome OS
-- Chrome on iOS
-- Chromium
-- Comodo Dragon (Comodo removed their user agent string for some stupid reason something like after version 20, so it's not my fault if it doesn't show up any longer; email Comodo and complain)
-- Comodo IceDragon
-- CyanogenMod (just icon for now, full support in the next release)
-- Dolphin (experimental)
-- Fennec (older versions of mobile Firefox, up to 10.0.5; Mozilla dropped the Fennec string after v.10, so it's not my fault)
-- IceCat
-- iOS
-- iPad/iPod (this one was a real tricky hack, thanks Apple, for complying with web standards! "Great products" and "it just works", for iDiots!)
-- Midori
-- NetFrontLife
-- Rekonq
-- Sleipnir
-- Songbird
-- SRWare Iron
-- Tizen (icon, until Tizen is released)
-- Waterfox (still waiting for Waterfox developer to add Waterfox's unique user agent string, but icon is there until he adds it)
-- webOS
-- Windows Phone
-- various GNU/Linux distribution icons, not all of which are supported yet due to lack of specific user agent string (Sabayon, Trisquel etc.)
- Changed:
-- File names for various Windows icons; also updated Windows icons to circular, better looking versions, and removed redundant Windows names (Windows 7/Server 2008 R2 = Windows 7, etc., since most forum members post from their desktop operating systems, and not from the server versions)
-- FreeBSD, OpenBSD, DragonFly BSD and NetBSD now all show their own icons
- Updated identification of Ubuntu to version 13.04 (this may not be necessary seeing as how Canonical is increasingly removing version numbers in the user agent string for some odd reason, but it works up to 12.10 with older versions of Chromium, at least)
- Improved Ubuntu identifcation with Firefox
- Updated Chrome icon to modern version
- Removed:
-- Generic mobile devices; these are no longer needed since very few people browse the web with their old cell phones nowadays (and they certainly don't post with them on forums that much either), and they are conflicting with newer Android phones/tablets by the same manufacturers.
-- And some other changes I can't remember right now off of the top of my head

Mr_Devlin 03-02-2013 11:06 AM

No Files Uploaded - lol. Author may have forgot to upload his mod.

EliasAlucard 03-02-2013 11:20 AM

Quote:

Originally Posted by Mr_Devlin (Post 2407351)
No Files Uploaded - lol. Author may have forgot to upload his mod.

Nah, I was just doing the md5/sfv files, fixed and uploaded now, enjoy.

Nirjonadda 03-02-2013 11:55 AM

Please post Admin CP Setting ScreenShot?

EliasAlucard 03-02-2013 12:21 PM

Quote:

Originally Posted by Nirjonadda (Post 2407359)
Please post Admin CP Setting ScreenShot?

Okay, done. Those are the settings I use, works fine.

Regards

BadgerDog 03-02-2013 12:37 PM

Installed with thanks for testing on 4.1.3 .. :)

Regards,
Doug

Nirjonadda 03-02-2013 12:46 PM

Thanks ! But Does it work with old post or only work with new post ?

BadgerDog 03-02-2013 12:46 PM

1 Attachment(s)
Product installed correctly, although it took a very long pause before it started doing the "template" update routine... maybe doing something to database?

Activated it under options in AdminCP and turned on specific user groups, setting it to appear below user titles.

Checked forum and nothing appears in postbit anywhere ... :down:

Tried every other location to have it appear and still nothing .. :down:

Want to uninstall this, but I'm wondering if it will screw up my database if I try that?

At least in current state, site still runs and displays properly.

If anyone else un-installs this and it does that properly, please let me know...

Thanks to developer for his efforts .. :)

Regards,
Doug

EliasAlucard 03-02-2013 12:53 PM

Quote:

Originally Posted by BadgerDog (Post 2407367)
Product installed correctly, although it took a very long pause before it started doing the "template" update routine... maybe doing something to database?

Activated it under options in AdminCP and turned on specific user groups, setting it to appear below user titles.

Checked forum and nothing appears in postbit anywhere ... :down:

Tried every other location to have it appear and still nothing .. :down:

Want to uninstall this, but I'm wondering if it will screw up my database if I try that?

At least in current state, site still runs and displays properly.

If anyone else un-installs this and it does that properly, please let me know...

Thanks to developer for his efforts .. :)

Regards,
Doug

You must enable OS and Browser, do it like I did in the screenshot, and it'll work. No, it won't screw up anything in your database if you uninstall it. But if you uninstall it, you'll lose UADisplay's plugin history, which is fine now, but if you have thousands/millions of posts with this plugin, you'll lose all their OS/Browser icons.

Quote:

Originally Posted by Nirjonadda (Post 2407366)
Thanks ! But Does it work with old post or only work with new post ?

No, only new posts, since old posts didn't save the user agent string.

By the way, if you want me to add your browser/OS, you need to give me your unsupported user agent string. Go here:

http://id.furud.net/

^^ Copy/paste the full user agent string and post it in this thread, so that I can study the code, like this:

Mozilla/5.0 (Linux; U; Android 3.0; en-us; Xoom Build/HRI39) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13

Loki12 03-02-2013 04:22 PM

Installed - looks great! My members are going to love this.

BadgerDog 03-02-2013 04:40 PM

Quote:

Originally Posted by EliasAlucard (Post 2407369)
No, only new posts, since old posts didn't save the user agent string.

I didn't realize that... :o

So, I created a new test post and yes, the icons now appear ... :up:

Thanks.. I'll continue testing...

Regards,
Doug

Justinphx 03-02-2013 10:17 PM

Installed and works fine on my V4.12.p2 .

Great additions in this mod and thanks for making all the operating systems/browsers current to 2013.

sadiq6210 03-03-2013 07:55 AM

Installed + 5 stars + nominated

It is working perfect for me, appreciate your effort
But I don't like to increase the icons to 29px in future, 24px seems very big for me :)

Quote:

- Redid and resized all icons from 19 to 24 pixels; this may increase in a later update when I have time, to 29 pixels

EliasAlucard 03-03-2013 08:25 AM

Quote:

Originally Posted by sadiq6210 (Post 2407540)
Installed + 5 stars + nominated

It is working perfect for me, appreciate your effort
But I don't like to increase the icons to 29px in future, 24px seems very big for me :)

I won't be making 29px the default. I'll probably add 19px and 29px in a separate folder later on, for those of you who want to use custom image size depending on which you think looks best. 24px is pretty good though, to capture the details on some of the finer logos.

The vB4 Postbit Controls is the only area where pixel size could be an issue, and it is limited to 27 pixels in height, so 29 pixels shouldn't work with that setting in mind. In any case, 24px will be default for some time to come, probably forever.

Baghira 03-03-2013 09:02 AM

Hi there,

do you plan to detect IE on Windows Phone 7 and 8?

EliasAlucard 03-03-2013 09:12 AM

Quote:

Originally Posted by Baghira (Post 2407545)
Hi there,

do you plan to detect IE on Windows Phone 7 and 8?

Sure. It's not working? Just give me the user agent string.

Baghira 03-03-2013 09:29 AM

Don?t know really. will test it in near future ;) just have to solve another problem with tabbed forum home first^^ cant get this to work^^

EliasAlucard 03-03-2013 09:38 AM

Quote:

Originally Posted by Baghira (Post 2407547)
Don?t know really. will test it in near future ;) just have to solve another problem with tabbed forum home first^^ cant get this to work^^

As far as I know, MSIE works on Windows Phone (I added support for Windows Phone in the 1.1 release, and user agent string for Internet Explorer on Windows Phone is the same as Windows).

EliasAlucard 03-04-2013 05:22 PM

Ok guys, next release will include support for the Yandex Browser. Any other browser that is not working with the current 1.1. release? If so, let me know so that I can add it, and don't forget to give me the user agent string. Thanks!

Loki12 03-04-2013 05:52 PM

It conflicts with this template edit: How to reduce space in postbit.

davidg 03-04-2013 10:00 PM

Superbird browser is detected as Safari

Code:

User Agent        Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) SuperBird/23.0 Safari/537.11

sweetpotato 03-05-2013 07:20 AM

Just replace nhawk's mod by this mod. Work for me but images loading slow
Thanks,

BadgerDog 03-05-2013 10:24 AM

Sent a test post from my iPad and it shows with an IOS icon, but says IOS 5.0 (iPad) and not IOS 6.1.2 which is what is actually running on the iPad.

It also shows a Safari 5.1 browser, when it's actually running Atomic Browser, but that's ok as Atomic Browser permits the user to set and mimic whatever user agent you wish. I have set it to Safari 5.1, so it's reporting it correctly.

Hope this helps... :)

Regards,
Doug

EliasAlucard 03-05-2013 10:48 AM

Quote:

Originally Posted by Loki12 (Post 2407903)
It conflicts with this template edit: How to reduce space in postbit.

I'm not sure how much I can do about that, but if you go to UADisplay's admincp and place the icons in "In Postbit Controls", this will probably be fixed. If not, well, then there's not much I can do, unless the developer of that template wants to help out.

Quote:

Originally Posted by davidg (Post 2407931)
Superbird browser is detected as Safari

Code:

User Agent        Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) SuperBird/23.0 Safari/537.11

Thanks, never heard of that browser, but I've included it in the next release, and it's working fine.

Quote:

Originally Posted by sweetpotato (Post 2408002)
Just replace nhawk's mod by this mod. Work for me but images loading slow
Thanks,

I suggest you enable CSS then.

Quote:

Originally Posted by BadgerDog (Post 2408014)
Sent a test post from my iPad and it shows with an IOS icon, but says IOS 5.0 (iPad) and not IOS 6.1.2 which is what is actually running on the iPad.

It also shows a Safari 5.1 browser, when it's actually running Atomic Browser, but that's ok as Atomic Browser permits the user to set and mimic whatever user agent you wish. I have set it to Safari 5.1, so it's reporting it correctly.

Hope this helps... :)

Regards,
Doug

Does Atomic Browser have its own user agent string? Not all WebKit based browsers do. Please give me the user agent strings from the exact browsers you used, otherwise I can't do much if I can't use an identical UA string and replicate the problem to study it. Go here with your iPad:

http://id.furud.net

And give me the useragent.

BadgerDog 03-05-2013 10:59 AM

Quote:

Originally Posted by EliasAlucard (Post 2408019)
I'm not sure how much I can do about that, but if you go to UADisplay's admincp and place the icons in "In Postbit Controls", this will probably be fixed. If not, well, then there's not much I can do, unless the developer of that template wants to help out.

Thanks, never heard of that browser, but I've included it in the next release, and it's working fine.

I suggest you enable CSS then.

Does Atomic Browser have its own user agent string? Not all WebKit based browsers do. Please give me the user agent strings from the exact browsers you used, otherwise I can't do much if I can't use an identical UA string and replicate the problem to study it. Go here with your iPad:

http://id.furud.net

And give me the useragent.

Native Apple Safari on iPad returns this ..

? Mozilla/5.0 (iPad; CPU OS 6_1_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B146 Safari/8536.25 ?

3rd party Atomic Browser on iPad returns this:

? Mozilla/5.0 (iPad; U; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3 ?

Regards,
Doug

EliasAlucard 03-05-2013 11:39 AM

Quote:

Originally Posted by BadgerDog (Post 2408020)
Native Apple Safari on iPad returns this ..

• Mozilla/5.0 (iPad; CPU OS 6_1_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B146 Safari/8536.25 •

3rd party Atomic Browser on iPad returns this:

• Mozilla/5.0 (iPad; U; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3 •

Regards,
Doug

Works absolutely perfect, as you can see:

http://www.forumbiodiversity.com/sho...=1#post1098739

I can't do anything about that Atomic browser if it doesn't have its own unique user agent string.

Which is why all browser developers should be informed about this thread, because part of the reason I'm taking this plugin so seriously (other than it being a very cool plugin), is about trying to influence web developers into a consistent user agent standard. Current user agent strings are all one big mess. Hopefully, this plugin will influence browser developers to think twice if they want their browser supported.

Edit:

By the way, it seems like you mixed up the Atomic browser with the native Safari browser; UADisplay is reporting exactly what the user agents are telling it to report, it can't detect if the user agents are fake.

BadgerDog 03-05-2013 03:03 PM

1 Attachment(s)
Thanks .. :)

We're also seeing a lot of users starting to use a mobile device access APP called "Tapatalk" which is a front end for vBulletin access.

The OS icon comes up as "unknown" and the agent shows as this:

Mozilla/5.0 Firefox/3.5.6 Tapatalk 2/2.0.3

Perhaps you could add an icon of some sort that shows they posted with Tapatalk?

Here's an icon attached that they use...

Regards,
Doug

EliasAlucard 03-05-2013 11:47 PM

UADisplay 1.1.1 released, enjoy ;)

BadgerDog 03-06-2013 10:04 AM

Updated for testing with thanks .. :)

Question.. is the Tapatalk addition supposed to show "unknown", or the Tapatalk icon?

If the latter and at least on our site, it's still showing a ? unknown symbol for the OS..

Regards,
Doug

EliasAlucard 03-06-2013 10:46 AM

Quote:

Originally Posted by BadgerDog (Post 2408232)
Updated for testing with thanks .. :)

Question.. is the Tapatalk addition supposed to show "unknown", or the Tapatalk icon?

If the latter and at least on our site, it's still showing a ? unknown symbol for the OS..

Regards,
Doug

It worked for me when I tried it. Could you give me the user agent string that's showing unknown?

BadgerDog 03-06-2013 10:51 AM

Quote:

Originally Posted by EliasAlucard (Post 2408238)
It worked for me when I tried it. Could you give me the user agent string that's showing unknown?

I wonder if it's because I'm looking at a past thread that was created by a Tapatalk user and it still shows the old icons?

Will these new icons only appear on newly created threads going forward?

Thanks, appreciate the update and support ... :)

Regards,
Doug

djbaxter 03-08-2013 01:22 AM

1 Attachment(s)
I found the icons supplied with this mod to be much too large for my forum. I've downsized all of them so that the max dimension (width or height) is 15 px.

Attached here in case anyone else wants smaller icons.

I don't know how to adjust the mod to accept the smaller icons as a CSS sprite, however, If the coder or anyone else can tell me how to that, I'd appreciate it.

EliasAlucard 03-08-2013 05:56 AM

^^ Thanks, I was planning on providing several icon sizes (19px, 29px), so this was much appreciated. I'll include your zip in the next release.

djbaxter 03-08-2013 01:05 PM

If you're running Windows, this "free for personal use" batch image resizer (can also do many other things like multiple renaming, etc.) works well: http://www.multipleimageresizer.net/download.aspx

iask 03-10-2013 07:30 AM

1 Attachment(s)
Tapatalk work not iphone.

EliasAlucard 03-11-2013 11:20 AM

^^ I need the user agent string.

BadgerDog 03-11-2013 12:10 PM

1 Attachment(s)
Quote:

Originally Posted by iask (Post 2409117)
Tapatalk work not iphone.

I found it works (sort of), but it displays Tapatalk as the operating system and FireFox as the browser, when in fact Tapatalk is an iPhone/iPad app running on IOS, so, something is mixed up... ;)

Regards,
Doug

sadiq6210 03-11-2013 12:39 PM

I have a strange problem with this mod
It works perfect for few days and after that it stops suddenly!
This repeated many times

Now nothing is appearing
If I uninstall it and install it again then it will work but I don't want to lost the data after every period

What do you think? I didn't change anything, suddenly it stopped ! It is like a magic !
Do you have any idea about how can I know the causes of this issue?

EliasAlucard 03-11-2013 01:17 PM

Quote:

Originally Posted by BadgerDog (Post 2409305)
I found it works (sort of), but it displays Tapatalk as the operating system and FireFox as the browser, when in fact Tapatalk is an iPhone/iPad app running on IOS, so, something is mixed up... ;)

Regards,
Doug

^^ That's because of the user agent string you provided for Tapatalk last time:

Mozilla/5.0 Firefox/3.5.6 Tapatalk 2/2.0.3

It only reads the user agent string.

Quote:

Originally Posted by sadiq6210 (Post 2409307)
I have a strange problem with this mod
It works perfect for few days and after that it stops suddenly!
This repeated many times

Now nothing is appearing
If I uninstall it and install it again then it will work but I don't want to lost the data after every period

What do you think? I didn't change anything, suddenly it stopped ! It is like a magic !
Do you have any idea about how can I know the causes of this issue?

Did you install any new plugins that could be conflicting with UADisplay? Did you edit anything in the uadisplay.php?

It has been working very stable for me non-stop, so I've never had this problem. You must have done something on your end, that's all I can think of.

sadiq6210 03-11-2013 03:51 PM

Quote:

Originally Posted by EliasAlucard (Post 2409312)
Did you install any new plugins that could be conflicting with UADisplay? Did you edit anything in the uadisplay.php?

It has been working very stable for me non-stop, so I've never had this problem. You must have done something on your end, that's all I can think of.

No I didn't install new plugin nor edited the uadisplay.php
I updated from 1.1 to 1.1.1 (overwrite) and it is working now.

Thanks dear


All times are GMT. The time now is 06:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01632 seconds
  • Memory Usage 1,864KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete