Forums / Setup & design / bannerrotation
tom d.
Friday 21 October 2005 5:05:22 am
hi all,
i dont have any experiences with Exponential... but would like to ask. :-) i need something like a bannerrotation or another module for version 3.6.2. i need to display the banners (150 x80) on the right site among each other.can anybody help me?
thank u!
tom
Mark Marsiglio
Friday 21 October 2005 5:36:14 am
I have read on the forums about some who have integrated phpadsnew with Exponential.
If you just wanted to rotate ads at random and did not need to track or prioritize, you could simply use the shuffle operator (contributions) to randomly select one of the ads in a folder in the media section.
Code like:
{set-block scope=root variable=cache_ttl}0{/set-block} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td> {* Grab some of the banners and randomize the order. *} {let children=fetch(content, list, hash( parent_node_id, 380, sort_by,array(priority,true())))|shuffle} {* LOOP: For each banner... *} {section name=Child loop=$children max=3}{* Display a max of 3 banners using attribute_view_gui. *} <div> <a href="{$Child:item.data_map.url.content}"> {attribute_view_gui attribute=$Child:item.data_map.image} </a> </div> {* End of loop. *}{/section}{* End of namespace. *}{/let}</td> </tr></table>
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Friday 21 October 2005 8:08:15 am
hi mark,
unfortunatly i have to track (for customers)... but maybe it helps for a while.
thanx a lot!
Xavier Dutoit
Saturday 22 October 2005 10:18:11 am
Have a look at the contrib section, there is an integration between ez and phpads.
X+
http://www.sydesy.com