
June 24th, 2003, 06:56 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 25
|
|
|
Different type of banner rotation, twist on a popular request
I have read through the banner rotation posts. An easy solution is to insert a java script into overall_header.tpl. That works well for me. But now I have a tweak that doesn't seem to have been addressed here.
BACKGROUND (go to REQUEST below to skip this little story):
I run phpBB on a site that has topics about credit cards, banks deals, phone cards, coupon codes, etc. I want to merge my site with another guy's site that isn't phpBB based and only deals with phone cards. I have convinced him he can incorporate all his text into one of the forum topics on my site and make it easier for his users to post questions, find information, etc. This is the sticking point: When you click on the "phone cards" forum topic, we want only HIS phone cards banner ads to appear in the overall_header.tpl and overall_footer.tpl and not any of MY banner ads. That way, he can collect revenue for visitors to that part of the site. (What's in it for me: I hope users explore the rest of my site, where I have banner ads).
REQUEST: When a user clicks on forum topic #1, only certain banner ads should appear in overall_header.tpl, where those banner ads are generated using javascript #1. For all other forum topics, javascript #2 should run in overall_header.tpl.
Ideas? Suggestions? I think this is an easy problem, using an "if-then-else" type statement in the overall_header.tpl, but I am A COMPLETELY MORON when it comes to writing code.
|