Dominic
07-20-2005, 07:05 PM
I'd like to be able to feature a different sponsor's ads in each of the separate sections in our Schoolies Week Forums (http://www.schoolies.org.au/forums/).
I know the forumdisplay template can be changed, but those changes are implemented across all forumdisplay pages.
What I want for example is to have one advertiser's ads on this page forumdisplay.php?f=6 (http://www.schoolies.org.au/forums/forumdisplay.php?f=6) and a different advertiser's ad on this page forumdisplay.php?f=19 (http://www.schoolies.org.au/forums/forumdisplay.php?f=19). How the hell do I do that?
Joeychgo
07-20-2005, 09:04 PM
just link to the image in the description section
Dominic
07-20-2005, 10:37 PM
You will have to be more specific / I'm not a pro... where is the description section?
MXjunk127
07-21-2005, 12:28 AM
I believe he means try it by going into your admin cp > go to forums & moderators section > forum manager > click on a go button where it says edit forum > then put your coding in the forum display box.
theMusicMan
07-21-2005, 03:46 AM
Yup, that will work well. However, you cna customise the templates called in the forumhome which will further enhance/ammend the forumhome layout depending upon what it is exactly that you want to accomplish.
Perhaps you might like to take a lookie at a few of my sites to see how I have ammended and customised forumhome...
www.vBXtra.com/forum
www.theMouthPiece.com/vb
Good luck...
Buffaloed
07-22-2005, 01:12 AM
I think this may be what you're looking for: Using conditionals for ads (http://www.theadminzone.com/forums/showthread.php?p=87221)
theMusicMan
07-22-2005, 05:21 AM
I think this may be what you're looking for: Using conditionals for ads (http://www.theadminzone.com/forums/showthread.php?p=87221)
Nope, I don't think he was after that. I believe he wants to put a sponsors image in the forumhome where the forum descriptions are currently.
Dominic
07-22-2005, 10:25 PM
The forum home is easy enough the put a sponsor's banner in as it is 1 template = 1 page.
What I'm after... is being able to put one sponsor's banner in one forum section, and another sponsor's in another forum section... problem being the forum sections all run off the same template = forumdisplay. The problem 1 template = many pages.
Buffaloed
07-23-2005, 12:05 AM
The forum home is easy enough the put a sponsor's banner in as it is 1 template = 1 page.
What I'm after... is being able to put one sponsor's banner in one forum section, and another sponsor's in another forum section... problem being the forum sections all run off the same template = forumdisplay. The problem 1 template = many pages.
The link I posted tells you how to do that. Enclose the ad code you place in your forumdisplay template with the conditionals that specify which forum(s) you want it to appear in.
Here is how you would do it for the example you posed.
<if condition="in_array($GLOBALS[forumid], array(6))">
insert ad code you want for forum id 6 here
<else />
<if condition="in_array($GLOBALS[forumid], array(14))">
insert ad code for forum 14 here
<else />
insert code for all other forums
</if>
</if>
If planning on doing this extensively, you might want to look into the Geek Advertising Banner hack.
http://www.vbulletin.org/forum/showthread.php?t=79791