Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) Details »
phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.)
Mod Version: 1.0.4, by The M.I.P. (Member) The M.I.P. is offline
Developer Last Online: Jul 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.x Rating: (19 votes - 4.79 average) Installs: 571
Released: 06 Nov 2005 Last Update: 12 Oct 2006 Downloads: 998
Not Supported Uses Plugins  

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:
  • 1.0.3 --> 1.0.4
    1. Import product as usual, with "Allow Overwrite" set to Yes.
  • 1.0.2 --> 1.0.3
    Upgrading is recommended, as this is a bugfix release.
    1. Import product as usual, with "Allow Overwrite" set to Yes.
    2. Recompile any templates where you experienced problems with the <ad .../> tag (notably those where this tag is used repeatedly on a line).
  • 1.0.1 --> 1.0.2
    1. Import product as usual, with "Allow Overwrite" set to Yes.
    2. Set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file.
  • 1.0 --> 1.0.1
    There's basically no need to upgrade, as the changes don't affect a working installation, but I recommend to do so, to ease possible upgrades in the future.
    1. Import product as usual, with "Allow Overwrite" set to Yes.
    2. Alter the path to phpAdsNew in vBulletin Server Settings and Optimization Options to point to your phpAdsNew installation.
      As opposed to version 1.0 of this product, a local path is not relative to the DOCUMENT_ROOT.

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:
  • Get banner using keywords:
    <ad what="foo|bar" />
  • Get banner for guest usergroup (in this case, "ug1" must be set as a keyword in phpADsNew, see 2nd screenshot):
    <ad what="ug$bbuserinfo['usergroupid']" />
    (same technique can be applied to deliver forum-specific ads)
  • Similar invocation using template conditionals:
    <if condition="$bbuserinfo['usergroupid']==1"><ad what="" /></if>

NOTES:
  1. Always use the latest stable version of phpAdsNew.
    Old versions had bugs and some even had severe security issues - I'll give no support for installations with an outdated phpAdsNew.
    At the time of writing, latest version is 2.0.8.
  2. Templates which make use of the ad-tag might need to get recompiled after product change.
  3. Recommendations for heavy-duty servers: Move the plugin code to files; try to avoid using xml-rpc or cache xml-rpc requests (e.g. with memcache).
  4. Have an eye on current phpAdsNew security issues
  5. This product comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
  6. Support is provided at will.
    Don't expect help if you haven't read instructions or phpAdsNew manual, if you're using non-standard vBulletin software or if your problem descriptions are useless.

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	panplugin_01.gif
Views:	3054
Size:	40.8 KB
ID:	54593   Click image for larger version

Name:	panplugin_02.gif
Views:	2409
Size:	26.4 KB
ID:	54594   Click image for larger version

Name:	panplugin_03.gif
Views:	3729
Size:	25.9 KB
ID:	54595   Click image for larger version

Name:	panplugin_04.gif
Views:	2354
Size:	42.7 KB
ID:	54596  

Click image for larger version

Name:	panplugin_05.gif
Views:	4077
Size:	34.8 KB
ID:	54597  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 06 Nov 2005, 19:02
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
This is great! Thank you!
Reply With Quote
  #3  
Old 06 Nov 2005, 19:28
michaelbenson's Avatar
michaelbenson michaelbenson is offline
 
Join Date: Feb 2005
Real name: Michael Benson
Shouldnt you attach the download file?
Looks good though.
Reply With Quote
  #4  
Old 06 Nov 2005, 20:03
reteep reteep is offline
 
Join Date: Mar 2004
Sounds very nice!
Reply With Quote
  #5  
Old 06 Nov 2005, 20:25
romow romow is offline
 
Join Date: May 2005
Thanks for the mod. will try it out later.
Reply With Quote
  #6  
Old 06 Nov 2005, 23:22
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Real name: Alexander
This is similar to something that i want. I want the users avatar to be placed at the header of the site!!!
__________________
WEBZ
Reply With Quote
  #7  
Old 06 Nov 2005, 23:45
The M.I.P.'s Avatar
The M.I.P. The M.I.P. is offline
 
Join Date: Nov 2002
Originally Posted by lexx27
This is similar to something that i want. I want the users avatar to be placed at the header of the site!!!
This is not what you're looking for.
Have a look at http://www.vbulletin.org/forum/showthread.php?t=100254 instead.
Reply With Quote
  #8  
Old 07 Nov 2005, 01:11
jugo jugo is offline
 
Join Date: Feb 2004
Two excellent hacks in one day...Big Ups to you!!!
__________________
NovaWarfare.com - Bringing back the Game - http://www.NovaWarfare.com

Website Hosting - Game Server Hosting - http://www.freaks-network.com
Teamspeak Status Block for vBAdvanced / PHP-Nuke / php Include

PM me if you need hacks installed or simple template modifications...I'm cheap..
Reply With Quote
  #9  
Old 07 Nov 2005, 02:50
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Real name: Alexander
Originally Posted by The M.I.P.
This is not what you're looking for.
Have a look at http://www.vbulletin.org/forum/showthread.php?t=100254 instead.
Thank you very much!
__________________
WEBZ
Reply With Quote
  #10  
Old 07 Nov 2005, 03:12
tamarian tamarian is offline
 
Join Date: Oct 2001
Well done
Reply With Quote
  #11  
Old 07 Nov 2005, 06:18
LincolnForums LincolnForums is offline
 
Join Date: Oct 2005
its hard to download that xml file using Firefox.

any chance of getting a zipped package?
Reply With Quote
  #12  
Old 07 Nov 2005, 07:09
The M.I.P.'s Avatar
The M.I.P. The M.I.P. is offline
 
Join Date: Nov 2002
Originally Posted by LincolnForums
its hard to download that xml file using Firefox.
any chance of getting a zipped package?
For your convenience, MIME-type of phpadsnew-1.0.xml is now set to application/octet-stream which should make your browser ask to save the file instead of open it.

BTW:
There's also a "save as" dialogue in the context menu of your browser.
Reply With Quote
  #13  
Old 07 Nov 2005, 14:04
dreck's Avatar
dreck dreck is offline
 
Join Date: Nov 2004
Real name: Stuart Simpson
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
__________________
Automotive Support Forum, "this darn car.."
Greenville SC Home Repair, IT WORKS
Reply With Quote
  #14  
Old 07 Nov 2005, 23:04
LincolnForums LincolnForums is offline
 
Join Date: Oct 2005
Originally Posted by The M.I.P.
For your convenience, MIME-type of phpadsnew-1.0.xml is now set to application/octet-stream which should make your browser ask to save the file instead of open it.

BTW:
There's also a "save as" dialogue in the context menu of your browser.
thank you very much
Reply With Quote
  #15  
Old 08 Nov 2005, 04:07
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:24.

Layout Options | Width: Wide Color: