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
  #12  
Old 09-01-2008, 10:59 PM
temporaryins temporaryins is offline
 
Join Date: May 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just recently got this, was wondering if it was possible to add in a option to only show browser information if it's on an admin-defined list (ie: iphone/ipod), and not post it otherwise?

Also, can there be an option to post it at the top of the post/thread instead of the bottom?

Edit: One other thing if it's turned on and set to show the browser information, can it not show it in the preview page? Only because if I preview a post/thread multiple times before posting it I have to keep deleting the browser information unless I want it repeated over and over multiple times.
Reply With Quote
  #13  
Old 09-02-2008, 05:39 AM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Usergroup permissions would be great, cheers for this.
Reply With Quote
  #14  
Old 09-02-2008, 06:59 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by temporaryins View Post
Edit: One other thing if it's turned on and set to show the browser information, can it not show it in the preview page? Only because if I preview a post/thread multiple times before posting it I have to keep deleting the browser information unless I want it repeated over and over multiple times.
not tested much, but hopefully Fixed in 0.0.3
Reply With Quote
  #15  
Old 09-02-2008, 07:28 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by temporaryins View Post
Also, can there be an option to post it at the top of the post/thread instead of the bottom?
Editing the Add Useragent String to New Posts and Add Useragent String to New Threads plugins and changing the line (2nd last line)

Code:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n" . $vbulletin->options['ua37_prefix'] . $ua37_new_ua . $vbulletin->options['ua37_affix'] . "\n";
}
to

Code:
$vbulletin->GPC['message'] = $vbulletin->options['ua37_prefix'] . $ua37_new_ua . $vbulletin->options['ua37_affix'] . "\n" . $vbulletin->GPC['message'];
}
should do it for you

Usergroup permissions and selectively applying it are a thing for a future release ...
Reply With Quote
  #16  
Old 09-18-2008, 01:54 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to make this show just for phones and not web browsers on pcs
Reply With Quote
  #17  
Old 09-18-2008, 01:56 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by temporaryins View Post
Just recently got this, was wondering if it was possible to add in a option to only show browser information if it's on an admin-defined list (ie: iphone/ipod), and not post it otherwise?

.
oops didn't see this
Reply With Quote
  #18  
Old 09-18-2008, 01:57 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh shit i just realized this was 3.7

will this work with 3.6
Reply With Quote
  #19  
Old 09-18-2008, 09:12 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I reckon it would assuming the hook locations exist in 3,6...
Reply With Quote
  #20  
Old 09-21-2008, 04:07 AM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yo how can i get it to put a break between the post and the browser info.


oh for the peeps that want it to show for just the iphone or ipod. i assume u have a mobile theme. exclude all themes BUT the mobile theme and that should hold us over until showing for phone only is an option. if it becomes an option in the future i should say. haa
Reply With Quote
  #21  
Old 09-21-2008, 04:22 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Editing the following line in the newreply_post_start and newthread_post_start plugins and replace the for "\n" with "\n\n" will put an extra line break bewteen the message and the user agent

Code:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n" . $vbulletin->options['ua37_prefix'] . $ua37_new_ua . $vbulletin->options['ua37_affix'] . "\n";
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.06161 seconds
  • Memory Usage 2,308KB
  • 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
  • (3)bbcode_code
  • (3)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