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 |
#332
|
||||
|
||||
Ok I've seen alot of folks asking but did not see anyone respond. I got this working tonight and on 3.6 RC1 (weee)
To make them forum specific here is what I did: Add this to the bottom of the navbar template <center><ad what="fid$foruminfo['forumid']" /></center> In the keywords field of the banner in phpadsnew I put: fid2 (This make is display on the page when forum ID 2 is the one I'm viewing) I also have this in header: <ad what="header" /> and in the keywords for the banner I want I have: Header (on my test banner for the forum ID2 I put this in the header: fid2, header (and it displays on both locations) I also noticed a bug in either the code or documentation in the server settings where it says use the "path" or if using xml-rpc to use the "url" I had to use the URL even though I'm not using xml-rpc or it would not work at all. Hope this helps.. |
#333
|
|||
|
|||
dwbro you are AWESOME! Thanks so much for posting that! I had the exact same question.
So, can I ask you a couple of things? I've just gotten a little ways into figuring this whole thing out. I haven't gotten nearly as far as you. But I'm not sure if maybe I'm wasting my time. I would like to be able to run a specific set of ads on a specific forum AND all topics and threads that are started in that forum. But for the life of me I can't figure out how you'd do that with this. For instance let's just say you had 3 forums and they were called 1 2 and 3. And let's say you had ads from 3 different customers and you wanted to run ads from customer 1 ONLY in forum 1 - and so on. Can you tell - in your advanced state ! if that is something that can be easily done with this? THANKS for your info! OH, AND one other question. How did you figure this out? Was it in some documentation somewhere??? Thanks! |
#334
|
|||||
|
|||||
Quote:
Take this and add it to your vb template Quote:
Quote:
Quote:
Quote:
Hope that makes sense. |
#335
|
|||
|
|||
You know, actually I'm not sure I totally understand, but I'll take your word for it for now and when I get around to actually trying to implement it and try it out then maybe it will all become clear! Anyway, thanks so much for the info - looks like you're the first person to post info on how to do this. I might hit you up with a few more questions when I try to implement it myself. But you've given me the "courage" to move forward! I.e. showing me it's possible.
|
#336
|
|||
|
|||
Well, I've had a chance to play around with this a bit and I'm having trouble putting your code into the template file.
When I put: <ad what="fid$foruminfo['forumid']" /> anywhere into the "forumdisplay" template I get an error message when I try to save it. The error basically says: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Am I right that the code you gave is supposed to go into whatever page you want the ads to show up on? |
#337
|
|||
|
|||
Ooops! Nevermind. My stupid web page editor actually changed the code to reformat it to its liking. No more error.
|
#338
|
|||
|
|||
Hey! It worked! It actually put an ad on a page! Very cool!
And it seems to have worked exactly as you said. I copied your same code to the "showthread" template and the ad I had planned for that forum did indeed come up on the forumindex AND in the threads under that forum. Thing is though. I don't understand how it knows to come up in all the threads under a particular forum. But it seems to work. I guess although you can't tell by the URL what forum you're in when you're looking at a thread, I guess it is in the vb database so it just knows to pull up the ad from there. Anyway, very cool that it works! And thanks so much for your help dwbro1. By the way, I wonder if you've played around with inserting ads inbetween posts in a thread? I wonder if that's possible? |
#339
|
|||
|
|||
Now that I've had a day to play around with it everything seems very good. But my experiments have brought up a new question. What if I want to run more than one ad per page. Like say I have 3 advertisers and I want to put them all on the same pages. I don't see how you can put more than one ad at a time on a page. Oh, I'm using text ads so I don't know if that makes any difference.
Would you know how to do that dwbro? Thanks! |
#340
|
|||
|
|||
First of alll, dwbro1, thank you so much for that post,
according to dwbro1's instructions, what would i put in the banner keywords for the banner to show in the main forum index(index.php)? |
#341
|
|||
|
|||
I have my banners displayed under my navbar. Problem is the Flash banners sit ontop of the drop down menus then they display. Static image banners are fine - does anyone know how I can alter this so that drop down menus will sit on top of the banners? In CSS it would be a z-index: value but I don't know how this could be achieved on VB
For anyone who needs to see what I am on about, check http://www.yorkshire-divers.com/forums/ and then try the dropdown menus when a flash banner is displayed. Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|