This may be obvious, but it would seem no one else has been able to help me yet...

How can I make a block that randomly chooses a type of ad. Then from that type randomly picks a quantity I set of that type. Then outputs it in the block.
I need to be able to show 1 HTML ad at a time, but 5 Text Ads at a time with it randomly picking which 5 if it selects text ads and randomly picking 1 HTML ad if that is the type selected.

Thank you in advance for the help. You guys are great.

Comments

jeremy’s picture

Category: support » feature

Moving this to be a feature request, as I don't see any way to do this with the existing code. Perhaps you could do it using views, however the ad module's support for views in 5.x is somewhat broken. You could also write some custom code to do this, if you're familiar with PHP, Drupal's taxonomy system, and the ad() function.

jeremy’s picture

Status: Active » Closed (duplicate)
sompop’s picture

Version: 5.x-1.4-1 » 6.x-1.x-dev
Component: ad module » ad_html module