![]() |
Why not just create a Custom "User Profile Field", allow users to select their browser and then display that in postbit?
For Part 1: Check the AdminCP side Menu For Part 2: see this thread add info to the right? |
Quote:
How about, though, being able to just add something that does this automatically? I know I had something of that sort with SMF way back when -- and certainly vBulletin is far more advanced than that. :) --------------- Added [DATE]1216498056[/DATE] at [TIME]1216498056[/TIME] --------------- Quote:
But I'm still tempted by the possibilities of an intelligent user agent too if anyone wishes to contribute. |
vbulletin has a function called is_browser() which has a lot of browser detection code in it - its in functions.php if you want to look at it.
|
Quote:
Care to suggest a way to implement this automatically in postbit? I can replace the optional field and use that, if I had guidance and such, and perhaps a few options. :) I think I'm good at building a popular forum (see http://forum.theparacast.com and decide for yourself). I can assemble useful mods, customize them and I think I did a decent job with the default theme to turn it to our purposes and style. But for the rest, I can always use step-by-step assistance. Thanks for the direction, though. :) |
Unfortunately if you don't have experience with PHP then you will have to make a modification request and hope someone will take up the request.
We can give you guidance but we can't sit here and write the code out for you. If you want to store it on a per user basis, you'd need to something like the following: 1. Extend the User Table 2. Extend the User DataManager 3. Fetch the Users Browser using the PHP Code and compare this to the one already stored. 4. If its different, then update the user table 5. Add the new "User" field into the postbit template using the $post array. |
Honestly, I thought that was the purpose of my messages, to request just that sort of assistance. :)
|
Quote:
The purpose of this forum is to discuss programming, and to provide guidance, the forum you are looking for is: Modification Requests. |
Quote:
If you know, don't hold back. :) I did post something in Modification Requests, but that came later. I had presumed there were existing solutions already available for vBulletin. |
Create a field in the user table to store the user agent. Then at global_start, parse and record the user agent. Use that data in your postbit.
That's the solution, how you code it, is your decision. Again - we are not here to code every bit of code you need, we provide guidance. |
Quote:
|
All times are GMT. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|