Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 07-29-2009, 11:18 AM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using the opposite postbit style you are using and it isn't showing on my board.
Reply With Quote
  #13  
Old 07-29-2009, 12:53 PM
onlyfree onlyfree is offline
 
Join Date: Jan 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
I am using the opposite postbit style you are using and it isn't showing on my board.
Go on postbit or postbit_legacy template and put this where you want to have these stats
Code:
$template_hook[postbit_userinfo_right]

@developer. it would be nice if the user could block his os and browser generally for all his posts in his UCP
Reply With Quote
  #14  
Old 07-29-2009, 12:58 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working....

Database error in vBulletin 3.7.3:

Invalid SQL:
CREATE TABLE `board_postinfo` (
`postid` INT( 6 ) NOT NULL ,
`os` VARCHAR( 20 ) NOT NULL ,
`browser` VARCHAR( 20 ) NOT NULL
) ENGINE = MYISAM ;;

MySQL Error : Table 'board_postinfo' already exists
Error Number : 1050
Request Date : Wednesday, July 29th 2009 @ 10:55:42 AM
Error Date : Wednesday, July 29th 2009 @ 10:55:42 AM
Script : http://www.*****.com/forums/admincp/...=productimport
Referrer : http://www.*****.com/forums/admincp/...?do=productadd
IP Address : ***.****
Username :********
Classname : vB_Database
MySQL Version : 5.0.45
Reply With Quote
  #15  
Old 07-29-2009, 01:14 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by onlyfree View Post
Go on postbit or postbit_legacy template and put this where you want to have these stats
Code:
$template_hook[postbit_userinfo_right]

@developer. it would be nice if the user could block his os and browser generally for all his posts in his UCP
Nope it is a not go.
Reply With Quote
  #16  
Old 07-29-2009, 02:03 PM
Fighter1405 Fighter1405 is offline
 
Join Date: Jun 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Charlie98902 View Post
I am using the opposite postbit style you are using and it isn't showing on my board.
Quote:
Originally Posted by onlyfree View Post
Go on postbit or postbit_legacy template and put this where you want to have these stats
Code:
$template_hook[postbit_userinfo_right]
That hook does already exist on the new postbit anyway, it should appear right under the post count. Does anything display there? Remember that if you are using quick reply it won't display until you refresh the page.

Quote:
Originally Posted by onlyfree View Post
@developer. it would be nice if the user could block his os and browser generally for all his posts in his UCP
I'll take a look at implementing that later today

Quote:
Originally Posted by psychobike View Post
Not working....

Database error in vBulletin 3.7.3:

Invalid SQL:
CREATE TABLE `board_postinfo` (
`postid` INT( 6 ) NOT NULL ,
`os` VARCHAR( 20 ) NOT NULL ,
`browser` VARCHAR( 20 ) NOT NULL
) ENGINE = MYISAM ;;

MySQL Error : Table 'board_postinfo' already exists
Error Number : 1050
Request Date : Wednesday, July 29th 2009 @ 10:55:42 AM
Error Date : Wednesday, July 29th 2009 @ 10:55:42 AM
Script : http://www.*****.com/forums/admincp/...=productimport
Referrer : http://www.*****.com/forums/admincp/...?do=productadd
IP Address : ***.****
Username :********
Classname : vB_Database
MySQL Version : 5.0.45
Sounds like you already have another mod that creates the postinfo table, try the version attached to this post that creates a 'browserosinfo' table instead.
Attached Files
File Type: xml product-displayos(4).xml (7.1 KB, 35 views)
Reply With Quote
  #17  
Old 07-29-2009, 02:10 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No luck...same issue.

Database error in vBulletin 3.7.3:

Invalid SQL:
ALTER TABLE `browserosinfo` ADD PRIMARY KEY ( `postid` );

MySQL Error : Table 'vbulletin.browserosinfo' doesn't exist
Error Number : 1146
Request Date : Wednesday, July 29th 2009 @ 12:07:35 PM
Error Date : Wednesday, July 29th 2009 @ 12:07:35 PM
Script : http://*****.com/forums/admincp/plug...=productimport
Referrer : http://*****.com/forums/admincp/plug...?do=productadd
IP Address : ****
Username : ***
Classname : vB_Database
MySQL Version : 5.0.45
Reply With Quote
  #18  
Old 07-29-2009, 02:16 PM
Fighter1405 Fighter1405 is offline
 
Join Date: Jun 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by psychobike View Post
No luck...same issue.

Database error in vBulletin 3.7.3:

Invalid SQL:
ALTER TABLE `browserosinfo` ADD PRIMARY KEY ( `postid` );

MySQL Error : Table 'vbulletin.browserosinfo' doesn't exist
Error Number : 1146
Request Date : Wednesday, July 29th 2009 @ 12:07:35 PM
Error Date : Wednesday, July 29th 2009 @ 12:07:35 PM
Script : http://*****.com/forums/admincp/plug...=productimport
Referrer : http://*****.com/forums/admincp/plug...?do=productadd
IP Address : ****
Username : ***
Classname : vB_Database
MySQL Version : 5.0.45
Sorry, that's just me being silly and not testing the version I changed for you. Missing the TABLE_PREFIX. Try this version I uploaded now, and we'll see if we have better luck this time
Attached Files
File Type: xml product-displayos(5).xml (7.2 KB, 21 views)
Reply With Quote
  #19  
Old 07-29-2009, 02:27 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried (5) on 3.8.3 and got this error

MySQL Error : Unknown column 'browserosinfo.browser' in 'field list'
Error Number : 1054
Reply With Quote
  #20  
Old 07-29-2009, 02:36 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the original to work and the new one you just posted to create a table gives me a database error.
Reply With Quote
  #21  
Old 07-29-2009, 02:42 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fighter1405

I did notice from the original plugin that if you use the quick reply it won't show the OS to you until you hit f5. Also the other thing I have noticed is that it doesn't update older posts. Can this be accomplished?
Reply With Quote
Reply


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:51 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.05034 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (7)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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