Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Display OS and Browser Information on Postbit Details »»
Display OS and Browser Information on Postbit
Version: 1.00, by Fighter1405 Fighter1405 is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.2 Rating:
Released: 07-28-2009 Last Update: 07-31-2009 Installs: 60
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

Hey all,

First plugin, so I hope I'm doing this right! As requested here, it'll display a small icon for both the users operating system and browser on the postbit.

Install steps:
1. Upload the Product
2. upload icon images for each os/browser to images/useragent in the form icon_(browser/os).gif - Sample Icons attached

Thanks to this mybb mod for the sample images and some of the browser detection code.

Screenshot:


Thanks and let me know if you have any problems!

Download Now

File Type: zip useragent.zip (22.6 KB, 549 views)
File Type: xml product-displayos(7).xml (7.2 KB, 411 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-29-2009, 12:44 AM
Deceptor's Avatar
Deceptor Deceptor is offline
 
Join Date: Dec 2008
Location: England
Posts: 514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice for a first modification I'd suggest the following change so it doesn't clash/break other mods:
Code:
$hook_query_joins = "LEFT JOIN " . TABLE_PREFIX . "postinfo AS postinfo ON (post.postid=postinfo.postid)";
$hook_query_fields = ", postinfo.browser AS browser, postinfo.OS as OS";
To:
Code:
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "postinfo AS postinfo ON (post.postid=postinfo.postid)";
$hook_query_fields .= ", postinfo.browser AS browser, postinfo.OS as OS";
Basically change = to .=
Reply With Quote
  #3  
Old 07-29-2009, 12:49 AM
Fighter1405 Fighter1405 is offline
 
Join Date: Jun 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the feedback I made the change you suggested, makes sense to me
Reply With Quote
  #4  
Old 07-29-2009, 01:33 AM
erel34's Avatar
erel34 erel34 is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to all
Reply With Quote
  #5  
Old 07-29-2009, 01:35 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod...but how many queries will this add?
Reply With Quote
  #6  
Old 07-29-2009, 05:14 AM
bollie's Avatar
bollie bollie is offline
 
Join Date: Jun 2006
Location: Zele (Belgium)
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work not for me.
Show not icon_(browser/os).gif
Reply With Quote
  #7  
Old 07-29-2009, 07:03 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinL View Post
Nice mod...but how many queries will this add?
Looks like it will add a single query when a post is created.
Reply With Quote
  #8  
Old 07-29-2009, 09:42 AM
onlyfree onlyfree is offline
 
Join Date: Jan 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey nice feature,
but is there a chance to get the possebility for users to turn on/off these icons?
Reply With Quote
  #9  
Old 07-29-2009, 10:39 AM
Farman Farman is offline
 
Join Date: Jan 2009
Location: Pakistan
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working here even, Please give proper instruction, where to upload!
Reply With Quote
  #10  
Old 07-29-2009, 10:50 AM
Fighter1405 Fighter1405 is offline
 
Join Date: Jun 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bollie View Post
Work not for me.
Show not icon_(browser/os).gif
Quote:
Originally Posted by Farman View Post
Not working here even, Please give proper instruction, where to upload!
An example icon name would be "icon_firefox.gif" and that should be in the images/useragent folder, what do you have in that folder?

Quote:
Originally Posted by dartho View Post
Looks like it will add a single query when a post is created.
That is correct, it loads the information back through the use of a left join so no extra queries are needed on showthread.

Quote:
Originally Posted by onlyfree View Post
hey nice feature,
but is there a chance to get the possebility for users to turn on/off these icons?
You'd like it turned off on a post by post basis or for the user to set it globally on the UCP?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09979 seconds
  • Memory Usage 2,317KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete