The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Using PHPadsnew 2 with Vbulletin 3.
The following are some tips on using these two programs together, based on my own experience. It's expected that you know how to use phpadsnew 2 to set up ads and generate invocation code. PHP Invocation The first tip is how to use php invocation code. Using javascript is possible, but not all browsers support javascript and, in my experience, using php is faster. The php invocation code phpadsnew generates will look something like this... PHP Code:
PHP Code:
If you have multiple zones, you can string these together. On EN World we have a zone that only appears on our vbadvanced news page. On those pages we call the view_raw function an additional time for the extra zone (view_raw is the function that actually calls up the ad - the rest of the code initializes phpadsnew). Here's our code, as an example of a 2 zone system. PHP Code:
Ads new's maintenance.php file needs to run on a regular basis for it to perform correctly. You can invoke it from your scheduled task manager if you wish. If you do, I'd advise applying the following mod to the code of the maintenance.php file. Open it and go to the ending ?> mark. Right about it add this. PHP Code:
Any other tips/comments/questions welcomed. PHP Ads New 2 is at http://www.phpadsnew |
#62
|
||||
|
||||
Quote:
thanks Jsharper...i dont understand in first place...now just comment the line and work. Thanks |
#63
|
|||
|
|||
Does anyone know if there is a 3rd party script for phpadsnew that would allow automated signup for advertisers and possibly paypal integration to automate billing?
|
#64
|
|||
|
|||
Quote:
Mine weren't working either. However, I discovered I did not have the Publishers & Zones setup correctly. Then only one of the two banners was showing up. It turns out that one of the banners was not 468x60 as I specified... it was off by one pixel. Once I correctly created the Zone (I'm only using one banner location, and it's on all my pages... hence only one Zone) and linked the banners, and corrected that one banner's size, everything worked fine. The phpAdsNew interface isn't the most intuitive. I had to read *gasp* the manual to get it correctly setup. Read the documentation, double-check the banner dimensions, and review the instructions on this thread. All should work. Best of luck! |
#65
|
||||
|
||||
Quote:
(Has personally been moving away from PHPadsnew) |
#66
|
|||
|
|||
Quote:
|
#67
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showpost....3&postcount=59 Any idea on that problem? And I'd also be interested in what ad solution you're moving towards as well. |
#68
|
||||
|
||||
would you care to try and do this with cute news?
|
#69
|
|||
|
|||
Does anyone know how to implement the Maintenance script into the Scheduled Tasks menu in vB as explained in this post? I've followed the installation instructions but it's not being run daily as I have it set up to do. When I run it manually I'm receiving errors. The errors I'm receiving are posted here:
https://vborg.vbsupport.ru/showpost....3&postcount=59 If anyone can help me fix this, I'd appreciate it. I'm running the 3.01 version of vb. |
#70
|
||||
|
||||
I am investigating replacing my banner serving scripts integrated with vBulletin with PHPAdsNew.
My script has a lot of features (geotargetting, limited impressions per ip, advertiser updatable adverts) but I'm wondering whether PHPAdsNew will do the job better. I have read the instructions at the top of this thread but I don't think it will work in my case. Unless I am missing something. I serve 3 or 4 banners on each page : Very top Run of Site 468x60 which is invoked from the page header, Forum-specific header Forum-specific skyscraper (not shown in thread view when there is only 1 post) Forum-specific footer. I invoke my ad serving script with a zoneid. There are some 'custom' zones like 'ROST' for run of site 468x60 top banner or 'ROSASIANT' for the Run of Site Asian DVD reviews top banner, but most banners are in specific forums. The zone id is made up of the forum id number (originally generated and used by vbulletin) and a letter - H,S or F for header, skyscraper or footer. It's called from FORUMDISPLAY and SHOWTHREAD php scripts and then displayed in the FORUMDISPLAY and SHOWTHREAD templates. The skyscraper invocation only happens when there is more than one post in a thread as otherwise the page looks rubbish with a large skyscraper on the right. Given that I need the forum id and in showthread the number of posts, I don't see how putting the invocation code in the headinclude script is going to work. Please help. |
#71
|
|||
|
|||
I integrated as instructed but the ads only work in firefox. In IE the links are dead on mouseover.
Any ideas? Nevermind, I figured it out. Slight syntax problem in my header template |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|