vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Using PHPadsnew 2 with Vbulletin 3. (https://vborg.vbsupport.ru/showthread.php?t=75475)

Fallback 07-07-2005 04:50 PM

This mod works great for me with no problems... thanks!

m0nde 07-07-2005 06:53 PM

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

jsharper 07-09-2005 05:35 PM

Quote:

Originally Posted by jsharper
I'm also having a logout problem. Whenever my phpinclude_start is calling phpadsnew.inc.php, my vBulletin logout function is broken. clicking Log Out just returns a blank page and doesn't actually perform the logout.

Ideas? I'm using vBulletin 3.0.7 and phpAdsNew 2.0.5. I did try both with and without "Use database compatibility mode".

In case anyone else is running into this, a solution can be found here:
http://forum.phpadsnew.com/index.php?showtopic=8281

Jason

Rob Locke 07-10-2005 01:23 AM

Quote:

Originally Posted by Michael Morris
Here's a way to prevent certain usergroups from being logged as having seen an ad (they'll still see them but the ad view won't be logged). In the file phpadsnew.inc.php find the following code:

PHP Code:

if ($phpAds_config['log_adviews'] && !$phpAds_config['log_beacon']) 

Directly above it add

PHP Code:

if (is_member_of($bbuserinfo6))
{
$phpAds_config['log_adviews'] = false;


If you need to use your phpadsnew installation for non vbulletin pages you'll need to create seperate versions of phpadnew.inc.php for vbulletin and your other pages to call.

May I just double check that if I want to include several usergroups, the id numbers would just be separated by commas?

For Example:
PHP Code:

if (is_member_of($bbuserinfo6,7,8)) 


wolf314 07-10-2005 08:28 PM

Quote:

Originally Posted by jsharper
In case anyone else is running into this, a solution can be found here:
http://forum.phpadsnew.com/index.php?showtopic=8281

Jason


Thanks!!! This is what I've been looking for.

boske 07-12-2005 06:19 PM

Quote:

Originally Posted by camoman
I think I am looking for a similiar thing.. Basically I want to be able to have a unique zone for each forum... so banners at the top of each forum would be relevent to the forum title. ie. in the boat forum I only want boat related ads showing up, in the snowmobile forum I only want snowmobile ads showing up etc..

Can this be done??

yeah Ive seen this done on other vb boards..im sure there is a way....

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...

Gio 07-13-2005 04:01 PM

Will this work on 3.5.0 vb?

cerebro 07-13-2005 04:46 PM

i upgrate to phpAdsNew 2.0.5 and the logout function inst work.
When reload the site...the user still there. Didt work :(

ludachris 07-14-2005 06:01 PM

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?

jsharper 07-15-2005 04:03 PM

Quote:

Originally Posted by cerebro
i upgrate to phpAdsNew 2.0.5 and the logout function inst work.
When reload the site...the user still there. Didt work :(

Look up a few posts to post #53.


All times are GMT. The time now is 10:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01204 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete