vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) (https://vborg.vbsupport.ru/showthread.php?t=100229)

Xstreamist 12-14-2005 01:05 PM

Quote:

Originally Posted by The M.I.P.
@Xstreamist:
"Supported" means that I look after this thread, fix reported bugs (those with useful descriptions, not ones like "it doesn't work") and make sure it works as per description on clean installations of recent versions of vBulletin and phpAdsNew.
It does not mean that I'm giving free personal assistance for a user.


Gimme a break Mips. You know damn well I gave you a hell of a better description of the problem then that. Just go backl to my earlier posts.
You say you make sure it works as per description?? Well it's NOT working as per youor description. I've asked for help and given you very good details of the problem. Yet I have not gotten any support from you and the plugin still doesn't work properly.

Conq, go blow it out your ass. You have absolutely no clue what support is and all your interested in is covering your buddy's ass when he screws up.

At least now I'll know where NOT to go in the future for any plugins.

tgmorris 12-14-2005 01:56 PM

Quote:

Originally Posted by The M.I.P.
Version 1.0.2 is out with a minor fix towards PHP 5.1.1 compatibility.
Please make sure to have set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file, as this resolves problems with a local phpAdsNew installation when phpAdsNew's tables are in a database different from the one used by your vBulletin board.

I've got this installed and working in local mode now w/separate db's. However I still had the problem whereby after the install no ads were being shown and then after some poking around, without changing any parameters or settings, ads began being shown and continue to do so. Very strange indeed.

Guest190829 12-14-2005 05:49 PM

No coder is required to give support, even if they have clicked the support tag. Please understand that coders are distributing and supporting modification on their own time, they are not obligated to do any of this. I understand that it could be frustrating during a debugging phase of a modification, but it's important that everyone remains as patient as possible. :)

Also, do not insult any members; it will not be tolerated on vb.org.

fbastello 12-16-2005 11:59 AM

Hi There and thanks for this great plugin!
I managed to get the whole thing working in no time thanks to the detailed installation guidelines and screenshots.
I have however a little question please, when you the generate invocation code button, you can beforehand choose a few options like:
Don't show a banner from the same campaign again on the same page
Don't show the banner again on the same page

In the screengrab, they are set to no, will the <ad tag display the same banner if invocated with several <ad what="zone:1" on the same page? It doesn't seem to respect the rule at them moment for me.
I think it's probably because there a lot of the invocation code that is missing in the <ad tag so I'm just checking that it is the case.

fbastello 12-16-2005 12:50 PM

OK, I think I cracked it
Basically, I added the following line just before return "<!-- BEGIN ad {$adcomment} -->{$ad['html']}<!-- END ad {$adid} -->";
in the view_ad function plugin:
$phpAds_context[] = array('!=' => 'bannerid:'.$ad['bannerid']);

This basically will allow you to have several <ad what="zone:1" /> anywhere in your templates and be sure that the same banner is not displayed twice.

I've just done it so it's not quite well tested yet, I'm sure that the whole thing could be improved via the ad tag (something like <ad what="zone:1" duplicate_banner_id="1" /> or <ad what="zone:1" duplicate_banner_id="0" /> to switch the option on or off).

Hope this help and thanks again for this great plugin!
F

Jiggles 12-16-2005 01:36 PM

I get a blank page. Also get mysql errors. I use vb in a different db. Could this be the reason. Where is the config option to set true in plugin for using a seperate db?

tgmorris 12-16-2005 02:28 PM

Quote:

Originally Posted by Jiggles
I get a blank page. Also get mysql errors. I use vb in a different db. Could this be the reason. Where is the config option to set true in plugin for using a seperate db?

This is from an earlier post...
Please make sure to have set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file, as this resolves problems with a local phpAdsNew installation when phpAdsNew's tables are in a database different from the one used by your vBulletin board.
Doing this resolved the problem I had w/mysql errors when running in local mode while using a separate db.

Jiggles 12-16-2005 03:20 PM

Quote:

Originally Posted by tgmorris
This is from an earlier post...
Please make sure to have set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file, as this resolves problems with a local phpAdsNew installation when phpAdsNew's tables are in a database different from the one used by your vBulletin board.
Doing this resolved the problem I had w/mysql errors when running in local mode while using a separate db.

Yeah I saw that but where do I set that option? I don't know where to find the $phpAds_config setting.

fbastello 12-16-2005 03:28 PM

Quote:

Originally Posted by Jiggles
Yeah I saw that but where do I set that option? I don't know where to find the $phpAds_config setting.

You can find it in the config.inc.php file in phpadsnew

tgmorris 12-16-2005 03:31 PM

Quote:

Originally Posted by Jiggles
Yeah I saw that but where do I set that option? I don't know where to find the $phpAds_config setting.

Look for config.inc.php in the folder where phpAdsNew is installed. In there you'll find all the settings including the one for compatibility_mode.

PHP Code:

.
// Database compatibility mode to insure phpAdsNew
// won't disturb an available database connection
$phpAds_config['compatibility_mode'] = true

Alternatively, you may use phpAdsNew to change the setting via the Admin interface.


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

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02564 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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