vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   OpenX (https://vborg.vbsupport.ru/showthread.php?t=182859)

induslady 08-18-2008 09:19 PM

Hi there,

I have installed OpenX 2.6.0 in my server to integrate it with my forums using vB 3.6.8.

When I was trying to serve the 1st ad using OpenX, referring to this guide in openX site, I wasn't able to complete it.

I wasn't able to get invocation code types to generate invocation code for serving the banner. Any help here would be appreciated.

Thank you.

ThorstenA 08-18-2008 10:40 PM

Just get the javascript revoke code and put this javascript code into any of your templates like ad_navbar_below or FORUMHOME. Be sure it is javascript, and not php :)

The old phpadsnew integration mod causes me big problems when turning off hook system. I hardly argue against using it as openx can just give you javascript code which you only have to put into your templates.

induslady 08-19-2008 02:19 AM

Hello ThorstenA,

Thank you for your reply.

My issue is I'm not able to generate any invocation code. It is not listing any type of invocation code to choose.

In the 'invocation code' tab in OpenX, after setting up the zone, I am not able to see anything listed in the type of banner invocation code to choose 'javascript tag'.

What could be going wrong?

Please help.

ThorstenA 08-19-2008 06:41 AM

I do not have an installed openx available at the moment so I am sorry to not help you in a detailled way. As I remember, on zones you can click on the rightest option where code of this zone is presented. There is a drop down menu or something like that and one drop down option is javascript.

Marco van Herwaarden 08-19-2008 06:51 AM

I suggest you ask this at their support site.

Tapage 08-19-2008 12:08 PM

IIRC I had a issue with the size if the banner .. must be as same as you choose in your setup.

Check it ..

Jon_Simmonds 08-21-2008 04:28 PM

I have had this running (but taken it down due to the extra load it places on my server, which was'nt noticeable 99% of the time, but when things get busy...)

This was using the instructions on the openx site (I think) as well as a bit of searching on here.



plugin details
product: vbulletin
hook : global_start
run order: 5
title : openx

Code:

ob_start();
require 'openads-xmlrpc.inc.php';

    if (!isset($OA_context)) $OA_context = array();
    $oaXmlRpc = new OA_XmlRpc('www.domain.com', '/adserv/www/delivery/axmlrpc.php', 0, false, 15);

$adnavbar = $oaXmlRpc->view('zone:2', 0, '', '', 0, $OA_context); 

ob_end_clean();

Then simply place

$adnavbar['html']

in the templates were you want the adverts to display

obviously zone:1 will change as to your openx install, as would the details of your domain and document path to the openx script

slo_chewie 09-19-2008 08:58 PM

This has been working on my forum using local php invocation code.

I do get 3 mysql errors every hour that I haven't been able to figure out though. The mysql errror always gets reported as unregistered user so I think it may be spider related. The mysql error hasn't been causing any problems though. Just annoying getting the email about it.

Product: vBulletin
Hook Location: global_start
Title: OpenX
Execution Order: 5
Plugin PHP Code:

Code:

$tz = date_default_timezone_get();

define('MAX_PATH', '/home/website/openx');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 0, 3, 0, '', '', '0', $phpAds_context, '');
  }

date_default_timezone_set($tz);

Then add $phpAds_raw[html] to your template where you want the banner ad to appear

Brandon Sheley 09-19-2008 09:37 PM

what's so hard about using openX with vb?
setup your ad tags, and place the code in the ad_locations built into vb
done in 5 mins ;)

gfxhelp.com 09-20-2008 02:20 AM

Check out Google Ad Manager, I'm not sure if it's still in a closed beta, but it's going to be sweet. They just added geographical targeting like you can use when setting up adwords campaigns. In addition they will host the creatives so it won't kill your bandwidth.


All times are GMT. The time now is 02:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00981 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete