![]() |
Display Browser Information?
I did a search of the usual text strings here and failed to turn up anything.
Is there an add-on/hack/whatever that allows you to display information about what browser/OS the member is using as part of the information that's displayed in their messages? I'd want a vBulletin 3.7x compatible solution. Anyone? |
You can use the user agent string - but don't trust it.
|
Quote:
|
You'll need some knowledge of PHP - if you do, Googling "user agent string php" will probably reveal some code examples.
|
Quote:
Anyone here want to really help me? --------------- Added [DATE]1216398110[/DATE] at [TIME]1216398110[/TIME] --------------- I do have some code now that I got online, as follows: PHP Code:
Will it do what I want? |
Yuou cannot run PHP code in templates - yo need run PHP code in plugins. And furthermore - you need to capture this data as the user browses the website and store it. You cannot simply plonk that code in postbit and have the information magically appear for everyone.
|
Quote:
So how do we do it then. Anyone want to provide assistance rather than give me two sides of the coin? |
How did he imply anything. He stated you can use the user agent string to grab the data. WHICH IS TRUE. But you cannot simultaniously grab useragents of all people that have ever browsed the website and magically send them to all other people browsing the website to have them show up in the postbit. The data you gather needs to be stored somewhere so you can retrieve it to display later.
|
He said I should look on the Internet to find the PHP code, then said it wouldn't work as I wanted it to. I understand the limits.
How about a solution instead of an insult? |
How is anyone insulting you?
Pointing out that what he said was right is insulting you? How much more help do you want? Write a plugin that gathers the info as the user is browsing the website and stores it in the database, write another plug-in that retrieves the data and display it accordingly. |
All times are GMT. The time now is 04:48 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:
|