![]() |
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.)
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. https://vborg.vbsupport.ru/ Donate via Paypal |
This is great! Thank you!
|
Shouldnt you attach the download file?
Looks good though. |
Sounds very nice!
|
Thanks for the mod. will try it out later.
|
This is similar to something that i want. I want the users avatar to be placed at the header of the site!!!
|
Quote:
Have a look at https://vborg.vbsupport.ru/showthread.php?t=100254 instead. |
Two excellent hacks in one day...Big Ups to you!!!
|
Quote:
|
Well done :up:
|
its hard to download that xml file using Firefox.
any chance of getting a zipped package? |
Quote:
BTW: There's also a "save as" dialogue in the context menu of your browser. |
sweet.. I just install phpAdsNew just the other day.
This will definally come in handy. Now I just have to figure out how to use it. ;) /install |
Quote:
|
This looks like just what I need, but can I place an ad anywhere else or only in the header template? I'd love it if I could use it after the first post in a thread for example.
Thanks :) |
Quote:
|
Testing this on a busy board. Problem is my ads will not display and since they display normally on non vbulletin pages I am assuming it is the setting in the admincp for the path to PAN. Since my PAN install is outside of the vbb document root the setting does not seem to work: /web/adserve. I have tried ../web/adserve and no go either.
Anyone run into this? What a shame. I really do not want to guinea pig the XML-RPC method. |
Quote:
|
Strange still no go. I used a relative path like /web/adserve. I added a banner in my header template like: <ad what="zone:2" />
Q: Have you tested this for anything beyond .html banners I see you are using above? My banners are all images but I did not think that would make a difference. |
Sorry...Banners are displaying now.
My issue now is that the options for the <ad> tags are not bringing up the right zones. <ad what="zone:2" /> is a rotating 468x60 banner with a few image banners but other unrelated banners are being displayed for some reason. I tried targetting specific banners with clientid="x" as well but no dice. From looking at your code this really should be working. |
Very sorry. I had an issue with PAN.
This script works fantabulous and I have been waiting for some time for it. Until recently I was only able to get ads to appear with the Javascript invoking method which slows most busy VB boards to a crawl. Hopefully by invoking with PHP this is MUCH faster. Thumbs up to the new plugin system in VB3.5 and thanks to the author of this mod. I suggest anyone using PAN & VB check this out. |
Too bad there is a bug in the newest version of php which prevents logging into this.....
|
i keep getting this error.
Warning: in_array(): Wrong datatype for second argument in /includes/lib-xmlrpc.inc.php on line 571 I copied both the lib- files to my includes directory |
Quote:
|
Quote:
Cheers :) |
Quote:
|
There's a preliminary phpAdsNew 2.0.7 version as a workaround for the PHP 4.4.1 bug.
|
this is how I have it set up, cant get it to work
Header PHP Code:
/home/lsgworld/public_html/adsnew code from adsnew PHP Code:
|
Quote:
The correct setting seems to be /adsnew in your case. Please also make sure that phpAdsNew is set up correctly and working smoothly to be able to narrow down the origin of possible problems. |
Quote:
Quote:
Quote:
|
@lsgworldl
Please use new version 1.0.1. This should solve the confusion concerning paths. |
How do I set this up so that in each forum there is a different zone shown?
Some of my forums are sponsored and in those forums I want only those ads shown, and in the unsponsored areas I want another zone shown. Thanks. |
Quote:
Code:
<if condition="$foruminfo['forumid']==123 OR $foruminfo['forumid']==456"> Code:
<if condition="$foruminfo['forumid']==123 OR $foruminfo['forumid']==456"> |
Hi,
I'm trying to get to this work but nothing is showing up unfortunately. I tested out phpadnews on a .php page to make sure that was functioning and it was. I'm wondering if I've set the path wrong. My path I put was ../banners/ but the full path is /home/aussie/public_html/forums/banners/ Thankyou! |
Quote:
(Your "../banners" would point to "/home/aussie/public_html/forums/../banners" which translates to "/home/aussie/public_html/banners/") |
Ah great! :) It's working now. Amazing how much of a difference a . can make!
Thanks so much for the great plugin. |
Hi!
I'm still trying to get plugin working outside forum root, cause I want to manage ads also into another 3rd level domain, for now called www. While I ask forum pages, all runs ok. Ads are called from forum.dmn.tld/adv subdir. If i ask vbadvanced homepage into www, banners images (and links) are broken, cause theire called from www.dmn.tld/adv I've tried to edit "Replacements" adding adlog.php, adimage.php, adclick.php for vba in admincp, but seems not works. The /adv directory shown into templates still the same of domain where page was called. |
@tassoman:
First try to set the full path to phpAdsNew (instead of a relative one) in the settings of this product, to be sure that inclusion of phpadsnew.inc.php also works, when you're using the templating system in scripts outside of the forum's installation directory. Also check if your $phpAds_config['url_prefix'] setting in phpAdsNew's config.inc.php is a valid absolute URL (e.g. http://example.com/phpadsnew/). If this doesn't solve your problems, please be more precise and also post a link to your site (or show relevant parts of code (notably the HTML between <!-- BEGIN/END ad ...--> comments) and screenshots). |
Both fields are ok. in admincp there's full path from root to phpadsnew dir.
On config.inc.php there's full URI for phpadsnew. My filesystem is like this: / (ftproot)on forum.dmn.tld is called /adv and it's ok.wwwhtdocs on www.dmn.tld is called also /adv but there isnt' any dir here. So I solved for now with a symlink called /adv but I feel like a dirty hack. |
Please upload the files to our server as attachments. As stated in the forum rules.
Thank you. :) |
All times are GMT. The time now is 06:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|