Closed (won't fix)
Project:
Advertisement
Version:
5.x-1.7
Component:
ad_embed module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2009 at 17:32 UTC
Updated:
11 Oct 2012 at 05:17 UTC
I'm trying to figure out how to display a "support comes from" box around an ad group's display, and only want the "support comes from" box to be visible if the
<? print ad(groupnum, adnum) ?> doesn't return an empty set--this seems like it would be a simple thing, but I don't know what I'm looking for the ad function to return (if all ads in that group have expired or are pending, approved, etc).
Any hints or suggestions would be greatly appreciated! Many thanks. -derrick.
Comments
Comment #1
jeremy commentedIf (adserve_variable('error') === TRUE), no ads were displayed. If (adserve_variable('error') !== TRUE), ads were displayed. You can check this in hook_cache_exit_text().
Comment #3
rjdjohnston commentedCan this be expanded to check by specific group? I have two groups displaying on the same page, the adserver_variable error does not return true because another group is displaying.
When I check for active ad with ad(55,1) this returns true, but the ad no longer displays.
Comment #4
john franklin commentedClosing out all bugs for 5.x and older versions of Drupal. If this is still an issue, please reopen and update with 6.x details.