The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Append User Agent String to New Threads and Posts Details »» | |||||||||||||||||||||||||||
Append User Agent String to New Threads and Posts
Developer Last Online: Oct 2023
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
|
Comments |
#12
|
|||
|
|||
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. |
#13
|
|||
|
|||
Usergroup permissions would be great, cheers for this.
|
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
Quote:
Code:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n" . $vbulletin->options['ua37_prefix'] . $ua37_new_ua . $vbulletin->options['ua37_affix'] . "\n"; } Code:
$vbulletin->GPC['message'] = $vbulletin->options['ua37_prefix'] . $ua37_new_ua . $vbulletin->options['ua37_affix'] . "\n" . $vbulletin->GPC['message']; } Usergroup permissions and selectively applying it are a thing for a future release ... |
#16
|
|||
|
|||
is it possible to make this show just for phones and not web browsers on pcs
|
#17
|
|||
|
|||
oops didn't see this
|
#18
|
|||
|
|||
ahh shit i just realized this was 3.7
will this work with 3.6 |
#19
|
|||
|
|||
I reckon it would assuming the hook locations exist in 3,6...
|
#20
|
|||
|
|||
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 |
#21
|
|||
|
|||
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"; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|