![]() | ![]() |
| |||
| I want a specific banner at the header of each of my forums.. I can access the current forum id okay and echo it from my header... My Q is - where can i define an array of Strings so that it echoes the banner when i stick $banner[$forumid] in my header template? (Vbulletin 3.6) any info appreciated cheers niall
__________________ |
| ||||
| You could name your banner pictures banner1.jpg/banner2.jpg/banner3.jpg and have an array of URLs to correspond. Anyway I think there are multiple hacks for this. There is a template file called headinclude that you are looking for.
__________________ my sites : irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing Last edited by paul; 03-09-2007 at 03:48 PM. |
| |||
| aha - nice one I tried declaring the urls array in the header in <??>'s and it didn't work - and all the docs i could find were from old vbull versions (and referred to templates which i cannot find..) I'll have a nosey tonight - ty for the reply good sir
__________________ |
| ||||
| I'd also recommend checking out the vbulletin.org forums - someone has probably come up with a hack for this already ............
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||
| yeah I did check the vbull forum , however but there's way too many versions and hacks imo (I ended up looking for non-existent templates etc..) In the end, I just edited forumdisplay.php and added an array of URL/Image strings there.. seemed like a logical place to put it, and it works, so I am a happy chappie.
__________________ |
| ||||
| That's not a very sane way of doing it, as you'll have issues with upgrades. I'd have looked at the phpads / openads integration instead, as that would probably have given you the same level of control via templates
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||
| I am a lazy hacker - what can i say. regarding future upgrades - I have externalised the array of urls/images, so I have 1 include directive in the forumdisplay.php and 1 line in my header template - so upgrading will mean adding 2 lines of script.. good enough for me.
__________________ |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VBulletin SEO | Cormac | Search Engine Optimisation | 38 | 13-08-2007 10:15 AM |
| vBulletin update | EdenWeb | Forum Management | 0 | 31-07-2007 09:03 AM |
| Caching Vbulletin? | blacknight | Forum Management | 1 | 30-07-2007 06:29 PM |
| Making the second post in vbulletin topic an advert. Problem! | dude | Coding Help | 3 | 04-04-2007 12:33 PM |
| Do we need vBulletin change our posts ? | bizhat | Forum Feedback | 6 | 16-10-2006 05:28 AM |