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

Reply
 
Thread Tools
Append User Agent String to New Threads and Posts Details »»
Append User Agent String to New Threads and Posts
Version: 0.0.3c, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.2 Rating:
Released: 07-21-2008 Last Update: 02-24-2009 Installs: 23
Uses Plugins
Is in Beta Stage  
No support by the author.

Description
This add-on will append a user's browser's User Agent String to new posts/threads.

Version Information
0.0.1 - Initial Release
0.0.2 - Added ability to only append User Agent Sting to posts/threads in specified forums.
0.0.3 - Fixed bug where previewing a post adds UA multiple times
0.0.3c - Fixed possible HTML injection vulnerability

Options
You can optionally configure it to append alternative text or BBCode (Such as IMG tags) rather than the literal User Agent String for specific User Agent Strings (or parts of).

You can configure it to not appended anything under certain styles

You can change the way the string is displayed with BBCode

(0.0.2) You can specify to only append User Agent String to posts/threads in specific forums.

Limitations
1. The User Agent String (or alternative BBCode/Text) is appended to the post text itself. There is nothing to stop the user from then editing the post and removing it. As such it will also show by default when quoted.

2. Turning the add-on OFF will not stop the display of User Agent Strings for past posts, it will only stop new posts/threads having it appended.

The upside of these is that there are no additional queries added to display this.


Screen Shots

Show Your Support

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

Comments
  #22  
Old 09-23-2008, 08:40 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

that did the job
Reply With Quote
  #23  
Old 09-26-2008, 09:17 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

few issues

i have my main forum set to be excluded from appending the browser info. it should only show for my mobile theme. BUT it shows for mozilla browser and mac users on the forum that's excluded


also
HTC TOUCH and palm centrio phones don't even show up when they use the mobile theme. but it should, any idea why it isn't
Reply With Quote
  #24  
Old 09-26-2008, 11:11 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no option for excluding forums. By default, all forums are included or you can choose to only have it show in explicitly defined forums only.

Could it be that the Mozilla/Mac users are actually browsing your site using the mobile style and teh HTC/Palm users are using your default style?

I'll check the logic of the product also and see if there may issues with it
Reply With Quote
  #25  
Old 09-26-2008, 11:22 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you do this to show in the Memberinfo template?
Reply With Quote
  #26  
Old 09-30-2008, 10:43 AM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
There is no option for excluding forums. By default, all forums are included or you can choose to only have it show in explicitly defined forums only.

Could it be that the Mozilla/Mac users are actually browsing your site using the mobile style and teh HTC/Palm users are using your default style?

I'll check the logic of the product also and see if there may issues with it
your mod has the ability to set what style you do not want the user info to show on.

I made my main theme not show the user agent string. but users who use macs and modzilla are showing up when posting from this style. i am sure they are not using the mobile theme. i had them do screen shots and i made the mobile theme unselectable.

the HTC users were on the mobile style.

No User Agent for these styles
Enter a comma separated list of StyleID numbers to not append User Agent String to.

If a user is using the any of the following styles, the User Agent String will not be appended to their posts.
Reply With Quote
  #27  
Old 10-06-2008, 12:11 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any thoughts?
Reply With Quote
  #28  
Old 10-06-2008, 01:07 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've looked and can;t see what could be causing your issues - do you have any other addons install which modify styles, or even with new posts/threads? Or, perhaps it is not compatible with 3.5/3.6?

Anyone else have similar issues - or any otehr for that matter?
Reply With Quote
  #29  
Old 10-13-2008, 12:08 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've had another look and the *may* be missing parenthesis in a plugin - I say may as I think it should be OK anyway, but if you could edit the Add Useragent String to New Posts and Add Useragent String to New Threads plugins and change
Code:
if ((($vbulletin->options['ua37_enabled']) && ($_POST[preview] != "Preview Post")  && (!in_array($styleid,explode(",",$vbulletin->options['ua37_not_this_style'])))) && (in_array($threadinfo[forumid],explode(",",$vbulletin->options['ua37_this_forum_only'])) || (trim($vbulletin->options['ua37_this_forum_only'])=="")))
to

Code:
if ((($vbulletin->options['ua37_enabled']) && ($_POST[preview] != "Preview Post")  && (!in_array($styleid,explode(",",$vbulletin->options['ua37_not_this_style'])))) && ((in_array($threadinfo[forumid],explode(",",$vbulletin->options['ua37_this_forum_only']))) || (trim($vbulletin->options['ua37_this_forum_only'])=="")))
and see if that fixes things?

-----

For a reality check - the logic for adding the useragent string is as follow:

IF the product is enabled, AND we are not previewing the post AND the user is not using an excluded style are all true

AND

We are in an forum where UA strings should be appended OR no forums are specified (ie. append in all forums) are true

THEN add the UA string

this sound right?
Reply With Quote
  #30  
Old 01-22-2009, 01:13 PM
CR_TurboGuy CR_TurboGuy is offline
 
Join Date: Feb 2003
Location: Iowa
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about the ability to add this to private messages? I've taken a look at the hooks private_newpm_reply and private_newpm_start, and neither seem to do the trick for adding to a PM.

--JOsh
Reply With Quote
  #31  
Old 01-23-2009, 12:51 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After a cursory look, I think PM integration would require file edits - hooks don't seem to be in quite the right place ...
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 07:55 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.05299 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete