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)

jokerz 04-19-2006 11:31 AM

Edited:
Yay this is working after figured out how to display the banners for 2 hours! I thought this is the only problem but I'm wrong. Great hack!

For those people who are having problem with rotate banners or not showing the banners, this is not mod hack fault. It is your phpadsnew! You need to setup correct thru campaign, zones etc. I suggest you read the online PDF user guide document, yes it is 70 pages, just read which most important you need to learn.

DudeSicko 04-19-2006 04:44 PM

Quote:

Originally Posted by hbalagh1
anyone?

I had the same problem, but once i copied the lib-xmlrpc-class.inc.php and lib-xmlrpc.inc.php to my forum, i could save, and my banner came on right away, so try that out.

Eagle Creek 04-24-2006 08:37 PM

Quote:

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 I do this I have problems.. It doesn't matter if I go to dir/index.php or dir/admin/index.php, it keeps going to dir/admin/upgrade.php and it keeps saying that I already have upgraded and there's nothing to do.
When I click next I get back on that page.

AND when I disable the compability I get this error when editting a template:
Quote:

MySQL Error : Table 'soccerquest_nl_-_phpadsnew.template' doesn't exist
And this error on my forums:
Quote:

MySQL Error : Table 'soccerquest_nl_-_phpadsnew.session' doesn't exist
So:
When I ENABLE safe mode: I don't get an error on my forums, but I can't edit anything in my phpads admin panel.
When I DISABLE safe mode: I can't access my forum due to a MYSQL error, but I can edit the settings in the ads-panel.


I am currently using phpAdsNew 2.0.8 running on Apache 2.0.49, PHP 4.3.10 and MySQL 4.1.14-standard.

Can you tell me what I'm doing wrong?

robert_2004 04-25-2006 01:06 AM

compatibility_mode HAS to be set to true. the problem you are talking about, already being upgraded, is phpAds being broken.

if you disable compatibility_mode, then vB can't find the database for phpAds.

also, don't use Safe_mode - it's not actually fixing your situation, it's just supressing your errors.

SO: go to phpadsnew.com and do a search on how to fix your program not letting you log in. do a serch like 'already upgraded' or what ever the error is displayed.

I was having problems with this script, because i was going straight to Google adsense, and wondering why it wasn't displaying - when the whole time it's my adsense code that is broken (still waiting on google to fix my account).

Eagle Creek 04-25-2006 06:11 AM

Hi Robert,

at the moment I can't enable the comp. mode. But you say my phpadsnew installation isn't working as it should be.
I'll look for a solution for that problem.

Do you think, when It's said on enabled and my adsnew is working fine, I won't receive any errors on the forum anymore?

TheDPQ 04-26-2006 05:55 AM

For those of you having blank template saving issues, check that the two files are included and that you are pointing to the right dir (for phpadnews) in your VB options.

Doing both of those things cleaned up my problem.

TomasDR 04-27-2006 01:32 AM

First I want to say I am new to vBulletin and I apologize if this post is inappropriate but I wanted to share a modification I did to your Plugin. Actually it is a modification to it's use, I did nothing to the XML.

Objective: To have search sponsored ads on the search results page based on the person's search words relating to the keywords in phpAdsNew banner setup.

Step 1: Add new Plugin

Product: phpAdsNew Intergration
Hook Location: search_results_query_threads
Title: phpAdsNew Search Qualified Keywords
Plugin PHP Code:
Code:

$adswords = implode('|', $display['words']);
Step 2: In the template 'search_results'

Add after $navbar
Code:

<if condition="$displayWords"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="center" class="smallfont">Search Sponsored Ad
</td>
</tr>
<tr>
    <td align="center" style="font-weight:normal">
<ad what="$adswords" />
    </td>
</tr>
</table>
</if>


I apologize if the template code isn't the prettiest but it does work. Attached two screenshots, all my banners are adult orientated so I made a fake banner and post to search on, if there are multiple pages the Page Navigator goes between the Sponsored Ad and the Search Results (see 2nd SS).

Also if anyone has any suggestions how to have a random banner appear if none of the search words match any phpAdsNew keywords I am all ears.

BTW Great product for easier banner handling: clicking INSTALL!

mfizzel 04-27-2006 10:41 PM

this is brilliant, thanks for this hack

Fred. 05-01-2006 09:34 PM

Thanks, it is working perfect!

Only in the archive it is not working?
is it possible to use the <ad what="zone:1" /> code in the archive header?

SuperserverUK 05-01-2006 11:12 PM

Am I missing something here... I have installed to the letter and now when i add

<ad what="zone:1" />

to the header template and click save.. it does not save at all just give blank page. If I edit the same template and add standard html it works fine.

Any help would be great


All times are GMT. The time now is 05:20 AM.

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.01889 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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