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)

Tapage 06-18-2008 02:35 PM

OpenX
 
Hi all folks ..

I've been searching for a while here how to integrate OpenX with my vBulletin forum .. I've been pass several days configuring my openX server ( same as my forum sever) and I thought have it almost done ..

I'm not at anyway a webmaster or programer .. but folow the rules and instructions.

does anyone can share a article, write up or how to about how integrate openX with vBulletin ..

I thought there be easy if you know how and where are places to add the java tags ..

thanks all .. help would be very apreciated ..

David

iogames 06-18-2008 10:00 PM

there's one in OpenX's forum

Tapage 06-18-2008 10:52 PM

Quote:

Originally Posted by iogames (Post 1553002)
there's one in OpenX's forum

Did you have a link .. ?

gezuvor 06-20-2008 03:59 AM

<a href="http://forum.openx.org/index.php?showtopic=7055" target="_blank">OpenX Link</a>

stwilson 06-20-2008 05:31 AM

That thread is from 2005. How relevant is that post/thread since Open X (PHPAdsNew) is several versions newer than the product mentioned in the thread.

Tapage 06-20-2008 12:53 PM

Quote:

Originally Posted by stwilson (Post 1554214)
That thread is from 2005. How relevant is that post/thread since Open X (PHPAdsNew) is several versions newer than the product mentioned in the thread.

Try to get something new more updated .. ?

Dennis B 08-06-2008 01:32 PM

I got OpenX to work with vB 3.7.2 using the same old phpadsnew hack. See this post.

Tapage 08-06-2008 04:57 PM

Quote:

Originally Posted by Dennis B (Post 1592627)
I got OpenX to work with vB 3.7.2 using the same old phpadsnew hack. See this post.

thanks !

Dennis B 08-06-2008 08:25 PM

David,

Please check your PM options in your Control Panel, I can't reply to your PM.

Anyway, if you open your "ad_header_logo" template and paste the code that you took from OpenX in there, it should do the trick. :)

Take it easy

Tapage 08-06-2008 08:49 PM

Quote:

Originally Posted by Dennis B (Post 1592908)
David,

Please check your PM options in your Control Panel, I can't reply to your PM.

Anyway, if you open your "ad_header_logo" template and paste the code that you took from OpenX in there, it should do the trick. :)

Take it easy

Mmmm actualy I double check it to allow all to reply my PM .. did you prefeer I post here or by mail ..

tapage at 4x4panama.com

and thanks very much .. !

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.

Vackrick 09-20-2008 02:22 AM

Google Ads Manager Give error i try yesterday...

mexicanpizza 12-24-2008 09:51 PM

Quote:

Originally Posted by slo_chewie (Post 1625899)
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

Wanted to followup on this to help others trying to do the same thing.

My goal was to have OpenX capture the vbulletin $forumid into the "source" parameter, so that I could serve different ads to different forums based on the delivery options in openX. This turned out to be pretty simple.

1. Configure your "local mode" invocation code via OpenX. Put $forumid in the source box so it will show you where in the php openX expects the forumid. The automated generated bannercode should look something like the following. You MUST remove the single quotes from around $forumid ( change '$forumid' to $forumid ).

Code:

<?php
  //<!--/* OpenX Local Mode Tag v2.6.3 */-->

  // The MAX_PATH below should point to the base of your OpenX installation
  define('MAX_PATH', '/home/mysite.com/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('', 2, 0, 0, '', $forumid, '0', $phpAds_context, '');
  }
  echo $phpAds_raw['html'];
?>

2. Create a plugin in vBulletin ACP --> Plugins/Products --> Add New Plugin.
  • hook location: global_start
  • title: whatever
  • execution order: 5 or whatever

Into the "Plugin PHP Code:", paste the invocation code, but without the php delimiters:

Code:

define('MAX_PATH', '/home/mysite.com/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('', 2, 0, 0, '', $forumid, '0', $phpAds_context, '');
  }
  echo $phpAds_raw['html'];

3. Put the variable $phpAds_raw[html] wherever you want this set of ad's to appear. It was important to remove the single quotes from around html for this to work. For example, my ad_navbar_below template now looks like this:

Code:

<center><div>

$phpAds_raw[html]
               
</div></center>
               
<br />

Hopefully this helps others trying to do the same thing. I am not a programmer and this could be dramatically wrong/improper, but it seems to be working great for me on vB 3.7.4 and with OpenX 2.6.3.

I welcome comments. :D

TalkVirginia 02-19-2010 06:13 AM

ok I'm confused.. using the instructions in the link below, how would I render an output array to say the ad_global_header2 template? Can someone enlighten me on this?

https://vborg.vbsupport.ru/showthread.php?t=228078


All times are GMT. The time now is 04:55 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.01153 seconds
  • Memory Usage 1,792KB
  • 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
  • (6)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete