Posted August 19, 200915 yr Here is the php code I use for displaying random banners in my forums. I use it in my global template and just place $random_banner[$random_number] where you want the banner images to appear. This is tested on IPB 3 with images only and not 3rd party delivery methods such as Adsense <php>$random_number = rand(1, 5); $random_banner[1] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>'; $random_banner[2] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>'; $random_banner[3] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>'; $random_banner[4] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>'; $random_banner[5] = '<a href="link"><img src="img" alt="img alt" border="0" /></a>'; </php> $random_banner[$random_number]
June 26, 201014 yr I use oiopublisher (aff link hope you guys dont mind) to place my banners plus i can geo-target and sale banner slots if i want while i sleep.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.