View Single Post
  #1  
Old 07-23-2009, 10:50 PM
stardotstar stardotstar is offline
 
Join Date: May 2008
Location: SYD, AU
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default yet another flash integration query;

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/...7851375c17.swf
http://www.archeli.com.au/forums/localmode.php
PHP Code:
<?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(''10266'''''0'$phpAds_context'');
  }
  echo 
$phpAds_raw['html'];
?>
from that script we get this page source
PHP Code:
<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=b630e01259__oadest=http%3A%2F%2Fwww.takeoffandland.com.au%2Findex.php%3FcPath%3D133_182%26osCsid%3Da84b45683d81e2c791807f8077509aa0' 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%3D266__zoneid%3D0__cb%3Db630e01259__oadest%3Dhttp%253A%252F%252Fwww.takeoffandland.com.au%252Findex.php%253FcPath%253D133_182%2526osCsid%253Da84b45683d81e2c791807f8077509aa0');

ox_swf.addParam('allowScriptAccess','always');
ox_swf.write('ox_032beee003dd83c3d555181177e74661');
    if (
ox_swf.installedVer.versionIsValid(ox_swf.getAttribute('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=http%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode.php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.php%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=http%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode.php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.php%3Fshowtopic%3D503428016%26hl%3D&amp;fb=1&amp;cb=b630e01259' 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=http%3A%2F%2Fwww.archeli.com.au%2Fforums%2Flocalmode.php&amp;referer=http%3A%2F%2Fforum.openx.org%2Findex.php%3Fshowtopic%3D503428016%26hl%3D&amp;fb=1&amp;cb=b630e01259' 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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01587 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete