Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03534 seconds
  • Memory Usage 2,338KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadedmode.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete