The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Display banner depending on browser setting?
Because of the requirements of one of my ad providers (50% of the impressions have to be to people from Canada, the USA or UK) I'm trying to figure out the best way to display these ads to the right visitors (and display alternative ads to the others).
I've noticed vBulletin allows (a few) PHP functions to be used in templates, sadly there is no function available to check for the browser language. I've found the following code on php.net (and changed it a bit) PHP Code:
Yours, Yorixz Alright, I got a PM with some info about it on vB.com, but anyway, I managed to get the code working, it selected the right language, until I changed it some and now all it does is complaining that my field isn't found. i'm using this code: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|