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 |
#52
|
|||
|
|||
This mod works great for me with no problems... thanks!
|
#53
|
||||
|
||||
I haven't used the script in this thread at all to use phpAdsNew. I've set it up as if phpadsnew were residing on a separate computer all together and simply called it using the invocation code generated in phpAdsNew for each publication location. This works fine and i'm using it on several sites.
http://www.bostonlove.org uses it for several spots on the site include the top the middle and the bottom. http://www.yyzlifestyle.com uses it for the stuff at the bottom. I've tied it into the vbaffiliates hack so that it counts each link in the affiliates module each time someone clicks on the appropriate affiliate's banner - all of this with just using phpadsnew without customisation for vbulletin. I'm even using it to track who clicks on my paypal donation buttons. - Sid |
#54
|
|||
|
|||
Quote:
http://forum.phpadsnew.com/index.php?showtopic=8281 Jason |
#55
|
|||
|
|||
Quote:
For Example: PHP Code:
|
#56
|
|||
|
|||
Quote:
Thanks!!! This is what I've been looking for. |
#57
|
|||
|
|||
Quote:
I don't know how, but I'd like to do the same thing.. :squareeyed: After trying this numerous times, I still can't get it to work... |
#58
|
|||
|
|||
Will this work on 3.5.0 vb?
|
#59
|
||||
|
||||
i upgrate to phpAdsNew 2.0.5 and the logout function inst work.
When reload the site...the user still there. Didt work |
#60
|
|||
|
|||
Hey Michael, not sure if you're still paying attention to this thread or not, but....
I tried setting up the Maintenance.php to be run via the Scheduled Tasks Manager. I'm receiving errors when running it: Warning: Cannot modify header information - headers already sent by (output started at /var/www/mysitename.com/html/forums/includes/adminfunctions.php:222) in /var/www/mysitename.com/html/phpads/libraries/lib-cache.inc.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at /var/www/mysitename.com/html/forums/includes/adminfunctions.php:222) in /var/www/mysitename.com/html/phpads/libraries/lib-cache.inc.php on line 17 Warning: Cannot modify header information - headers already sent by (output started at /var/www/mysitename.com/html/forums/includes/adminfunctions.php:222) in /var/www/mysitename.com/html/phpads/libraries/lib-cache.inc.php on line 18 Done What could this be attributed to, and does this mean the maintenance script is NOT running? |
#61
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|