The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) Details »» | |||||||||||||||||||||||||||
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.)
Developer Last Online: Nov 2023
OpenAds / phpAdsNew Integration 1.0.4 for vBulletin 3.[56].x
2006-06-08 by mip Integrates the OpenAds / phpAdsNew ads system by introducing a new template tag <ad ... />. You can even deliver your Adsense stuff via phpAdsNew using HTML banners. The features of phpAdsNew combined with the power of vBulletin's templating system gives you the possibility to place ads for specific user groups, forums, and keywords. PREREQUISITES: This plugin requires a working installation (local or remote) of a recent version ofOpenAds / phpAdsNew (free software released under the GPL). When using OpenAds, replace phpAdsNew in this documentation with OpenAds (phpAdsNew is just the predecessor of OpenAds). INSTALLATION: When having a previous version of this product installed, see section UPGRADE instead. Install product "phpadsnew-1.0.4.xml". Set phpAdsNew path in Server Settings and Optimization Options to point to either your local phpAdsNew installation or a remote server (using XML-RPC). It is strongly recommended to set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file, to prevent problems when phpAdsNew uses a database different from the one used by your vBulletin board. When using XML-RPC, make sure to have lib-xmlrpc-class.inc.php and lib-xmlrpc.inc.php copied from phpAdsNew misc/samples/xmlrpc/php/ to your forum's includes/ directory (not necessary when using a local phpAdsNew installation). Read the NOTES section below. Click INSTALL in this thread to mark product as "installed" and receive notifications when a new version comes out. UPGRADE:
USAGE: Use the newly introduced <ad ... /> tag in your templates. The syntax is similar to phpAdsNew's view_raw() function call - the tag understands what, clientid, target, source, and withtext as arguments. Please make yourself familiar with phpAdsNew prior to using this product. You can't expect this product to work, if you didn't check if your phpAdsNew is delivering your banners cleanly. Examples:
NOTES:
PS: This plugin is donationware - it helps you to make some money, so please be fair and honor my work with an adequate pecuniary donation. Donate via Paypal Show Your Support
|
Comments |
#542
|
|||
|
|||
Will this work on 3.6.10??
|
#543
|
|||
|
|||
Quote:
|
#544
|
||||
|
||||
I screwed up and upgraded to OpenX 2.6 and something with the invocation code has changed making this not work anymore
The M.I.P. if you are out there, would you mind helping get this fixed. I am not a coder, so fixing it myself ... well it wouldn't happen. I can help with the new invocation codes etc since I have them... Help! To everyone else, don't upgrade to 2.6 unless you don't want to serve ads any more... |
#545
|
||||
|
||||
Alright, got it working here with 3.7.2 and openx 2.6.0. :up:
|
#546
|
||||
|
||||
This is a work around, but not quite a fix. I ended up canning 2.6 and going back. I had to recreate everything, but I'm back in business...
If you want it to work with the <ad what="adsf"> tag only, don't go to 2.6. |
#547
|
||||
|
||||
Oh yes, that's exactly the case, it's just one way of getting it to work, I never implied it to be a fix.
|
#548
|
|||
|
|||
I've gotten OpenX to work on my board. I am getting occasional MySQL errors I don't know how to get around though. The MySQL errors don't seem to affect my forum members, but the emails are kind of annoying and I would like to know if anyone knows how to fix it.
If someone else already posted this then I apologize. My work around was an amalgamation of ideas I got reading this forum, the OpenX forums and vBulletin manual. I got my PHP Invocation code from OpenX and modified it slightly and created a plugin in the vBulletin Admin. Log into the Admin. Plugins & Products -> Add New Plugin 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); * If you are using PHP4 then the code will be slightly different. See: http://forum.openx.org/index.php?showtopic=503421161&pid=71517&st=0&#entr y71517 I originally didn't have the timezone code in on my forum and it was making my forum times show UTC. I found that post and can confirm it works. Anyone know how to fix the MySQL errors. I get a couple errors every hour that are similar too: Code:
Database error in vBulletin 3.7.3: Invalid SQL: SELECT post.postid FROM post AS post WHERE post.threadid = 5560 AND post.visible = 1 ORDER BY post.dateline LIMIT 0, 15; MySQL Error : Table 'openads.post' doesn't exist Error Number : 1146 |
#549
|
|||
|
|||
Could that be the maintenance script that's run by OpenX? You might want to check into the maintenance queries that OpenX runs and see if there's something to it.
|
#550
|
|||
|
|||
Ha, you are correct. That error was from the Maintenance script.
Disabled the automatic maintenance, edited my previous openads cron to work with openx and it's all good now. Edit: Nevermind disabled the maintenance script and I still get the errors. You are correct though it seems to be a cron or vbulletin task. Happens like clock work at 9, 29, and 49 minutes after every hour. |
#551
|
||||
|
||||
I just added this and it works, but am I supposed to get an sql error anytime soon ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|