PDA

View Full Version : yet another flash integration query;


stardotstar
07-23-2009, 10:50 PM
Hi guys, I have been able to invoke ads from openX using one of the mods here.
All work in the standard header except flash/swf files.
The invocation code is correctly formed and delivers the flash ad just fine as verified by making the same php call to a blank page:
http://www.sourcepoint.com.au/openx/www/images/d9827ad272558c118fa14f7851375c17.swf
http://www.archeli.com.au/forums/localmode.php

<?php
define('MAX_PATH', '/var/www/sourcepoint/htdocs/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 1, 0, 266, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>

from that script we get this page source
<script type='text/javascript' src='http://www.sourcepoint.com.au/openx/www/delivery/fl.js'></script>
<div id='ox_032beee003dd83c3d555181177e74661' style='display: inline;'><a href='http://www.sourcepoint.com.au/openx/www/delivery/ck.php?oaparams=2__bannerid=266__zoneid=0__cb=b630 e01259__oadest=http%3A%2F%2Fwww.takeoffandland.com .au%2Findex.php%3FcPath%3D133_182%26osCsid%3Da84b4 5683d81e2c791807f8077509aa0' target='_blank'><img src='http://www.sourcepoint.com.au/openx/www/images/05d6243e97ad3954aa1a7316dace3822.gif' width='900' height='90' alt='' title='' border='0' /></a></div>
<script type='text/javascript'><!--// <![CDATA[
var ox_swf = new FlashObject('http://www.sourcepoint.com.au/openx/www/images/d9827ad272558c118fa14f7851375c17.swf', 'Advertisement', '900', '90', '9');
ox_swf.addVariable('clickTARGET', '_blank');
ox_swf.addVariable('clickTAG', 'http%3A%2F%2Fwww.sourcepoint.com.au%2Fopenx%2Fwww %2Fdelivery%2Fck.php%3Foaparams%3D2__bannerid%3D26 6__zoneid%3D0__cb%3Db630e01259__oadest%3Dhttp%253A %252F%252Fwww.takeoffandland.com.au%252Findex.php% 253FcPath%253D133_182%2526osCsid%253Da84b45683d81e 2c791807f8077509aa0');

ox_swf.addParam('allowScriptAccess','always');
ox_swf.write('ox_032beee003dd83c3d555181177e74661' );
if (ox_swf.installedVer.versionIsValid(ox_swf.getAttr ibute('version'))) { document.write("<div id='beacon_b630e01259' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://www.sourcepoint.com.au/openx/www/delivery/lg.php?bannerid=266&amp;campaignid=42&amp;zoneid=0&amp;loc=htt p%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode. php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.p hp%3Fshowtopic%3D503428016%26hl%3D&amp;cb=b630e01259' width='0' height='0' alt='' style='width: 0px; height: 0px;' /></div>"); } else { document.write("<div id='beacon_b630e01259' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://www.sourcepoint.com.au/openx/www/delivery/lg.php?bannerid=266&amp;campaignid=42&amp;zoneid=0&amp;loc=htt p%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode. php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.p hp%3Fshowtopic%3D503428016%26hl%3D&amp;fb=1&amp;cb=b630e01 259' width='0' height='0' alt='' style='width: 0px; height: 0px;' /></div>"); }
// ]]> --></script><noscript><div id='beacon_b630e01259' style='position: absolute; left: 0px; top: 0px; visibility: hidden;'><img src='http://www.sourcepoint.com.au/openx/www/delivery/lg.php?bannerid=266&amp;campaignid=42&amp;zoneid=0&amp;loc=htt p%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode. php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.p hp%3Fshowtopic%3D503428016%26hl%3D&amp;fb=1&amp;cb=b630e01 259' width='0' height='0' alt='' style='width: 0px; height: 0px;' /></div></noscript>

So this is a local mode invocation of the ad and displays correctly. Somehow I wonder if there is something in the vB headers or page construction that would cause this banner delivery to fail when all the other content types display fine.

Thanks for any thoughts on how I can progress this further guys!
Will.

webwheeling
08-18-2009, 12:11 AM
Any luck with this Will? I am having the same problem.

stardotstar
08-25-2009, 06:36 AM
No nothing - not in my other post here or on OpenX;