Active
Project:
OpenX
Version:
6.x-1.01
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2009 at 23:01 UTC
Updated:
10 Jul 2012 at 10:09 UTC
Jump to comment: Most recent file
I would like to display multiple banners from the same Open X zone on my site. In current openx module implementation, I must create a block for each banner, and point that block to the appropriate openx zone.
If the number of banners is small, then the same banner will often appear on more than one block.
Is it possible to point multiple openx blocks to the same zone, but avoid displaying the same banner multiple times? Banner duplication will likely prompt complaints from advertisers.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | opex_vars.png | 31.96 KB | bloke_zero |
Comments
Comment #1
westbywest commentedAlso, my apologies for not mentioning this in the initial feature request, but thank you for writing this module! I was able to integrate it into a site in about an hour, including theming.
Comment #2
srobert72 commentedI think this option is available directly in OpenX server.
For your specific zone, specify you avoid duplicate ads.
Rapid exemple : http://www.openxtips.com/tag/zone-tags/
Comment #3
westbywest commentedThanks for the response. The link you pointed to appears to just generate a different version of the JS invocation code, in particular with this line when "Don't show the banner again on the same page" is checked No.
document.write ("?zoneid=XX");...and this when "Don't show the banner again on the same page" is checked Yes.
document.write ("?zoneid=XX&block=1");However, this is not a persistent setting that is stored with the zone in the Openx server. You must copy the JS generated into whatever site is pulling ads for that zone. Since the Openx drupal module generates its own JS invocation code, if I understand correctly, this option in the Openx server is not relevant.
Comment #4
craigmc commentedThis is one of several features I will be looking to roll out for the OpenX module in the coming weeks. Please keep tuned.
Thanks for the feedback.
Comment #5
bessone commentedAny news?
thanks!
Comment #6
craigmc commentedI've been away from this for a long time. Will need to look at the latest dev branch and create a patch against that.. will try to get to this in the next few days
Comment #7
craigmc commentedWrapped up in other life/work tasks. Sorry. Would be great if someone else can take this on.
Comment #8
bannik commentedSmae problem for me.
But it com from openx and not from this plugin.
This plugin ask the javascript's code to openx (http://your/server/openx/www/delivery/spcjs.php)
This php script generate a script whithout "&block=1"
So the solution for me is to modify "spcjs.php":
Replace whith {$varprefix}spc+=\"&block=1&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .
replace whith {$varprefix}pop+=\"&block=1&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .
Work for me with OpenX v2.8 and openX module 7.x-1.2 on drupal 7.12
I think that the only solution fot this module is to add the possibility to add the invocation code directly in the block.
Comment #9
bloke_zero commentedWhich sort of defeats the purpose of the module - you might as well just create your own blocks with the invocation code in them.
But I agree, there is a case for having a collapsed fieldset with an alternative invocation field in it for advanced settings if you need it.
Comment #10
bloke_zero commentedHang on, this module can already do this! Just add variables on the Open X config page:
block = 1to prevent duplication of ads on a pageblockcampaign = 1to prevent ads from the same campaign on the same page.My vars settings are:

And give:
<script type='text/javascript' src='http://openx.local/www/delivery/spcjs.php?path=front-page-holder&block=1&blockcampaign=1'></script>Which means I get the path (using the global token) for creating Targeting Channels (in my case I'm separating the front page and the rest of the site), that ads aren't to be repeated on a page (the
block = 1var) and that ads from the same campaign don't get repeated (blockcampaign = 1).