The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you autoresize banner?
How do you auto resize your forum home banner for different browsers?
Thanks |
#2
|
|||
|
|||
Doesn't anyone know?
|
#3
|
|||
|
|||
You could try the is_browser function and set width / height based on that.
Code:
// small example if (is_browser('ie') OR is_browser('mozilla')) { $banner_width = 468; $banner_height = 60; } else { $banner_width = 234; $banner_height = 30; } $banner_advert = "<img src=\"http://www.domain.com/wherever/advert.gif\" width=\"".$banner_width."\" height=\"".$banner_height."\" border=\"0\">"; |
#4
|
|||
|
|||
Where do I put that code?
|
#5
|
|||
|
|||
Try a new plugin hooked to global_start and use $banner_advert in the template.
|
#6
|
|||
|
|||
I don't know how to do that, is there an easier way?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|