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)

Jack Black 03-04-2006 07:59 AM

Does this work with the latest version of phpadsnew 2.0.7?

bonjurkes 03-04-2006 05:38 PM

Quote:

Originally Posted by stefaandk
I've upgraded 3.5.3 to 3.5.4 today and all my banners are still working OK.


Did u installed the phpadsnew to your forum's db or did u create a seperate db for it?_

markbolyard 03-04-2006 05:49 PM

I have installed it both ways. Using the vBulletin Database, and a seperate database. Both types of installation work fine and shouldn't be an issue.

bonjurkes 03-04-2006 07:16 PM

i installed it to the seperate db but that plugin tries to find these tables at forum's database and then give error.

i wrote the error few posts before. can you tell me what must i do it to work with seperate db??

bonjurkes 03-06-2006 08:36 PM

can anyone tell me what did i do wrong?? When i try too add that <ad tag to my style it gives error like

Invalid SQL:

SELECT title, styleid
FROM template
WHERE templateid = 455;

MySQL Error : Table '*_phpadsnew.template' doesn't exist
Error Number : 1146

I installed phpadsnew to seperate vb then vbulletin but i couldnt find what is going on wrong....

tgmorris 03-06-2006 09:11 PM

Quote:

Originally Posted by bonjurkes
I installed phpadsnew to seperate vb then vbulletin but i couldnt find what is going on wrong....

If you are running it in a separate db you need to make sure that you have "compatibility mode" set to true in PAN.

markbolyard 03-06-2006 10:17 PM

Additionally, make sure your config is correct. If you installed phpadsnew, and are getting that error, it is not finding the table _phpadsnew.template. If you would like me to look at it, please feel free to contact me via MSN Messenger (In my profile) or by email.

Tru2Chevy 03-07-2006 03:14 PM

I had the same issue as bonjurkes, and no one here or on PAN forums could help me. I finally got my ads served just using the remote invocation code supplied by PAN. I like the way this mod is supposed to work, but I couldn't get it functioning correctly.

- Justin

stefaandk 03-08-2006 12:56 AM

Quote:

Originally Posted by bonjurkes
Did u installed the phpadsnew to your forum's db or did u create a seperate db for it?_


I got seperate DB's

bonjurkes 03-08-2006 09:50 PM

hey,

i install it without a problem at last :)

Now i want to put some ads special for forums that i want

for example lets say i have a forum called "cars" and i want to display some car ads

and lets say i have another forum called " sport" and i want to display some sport ads

is there a way that i can do it? can anyone explain it to me please..

TruthElixirX 03-10-2006 08:22 PM

Today I get on my forum to see that this is no longer working, completely weird. In my tempalte I have:

Code:

        <td align="$stylevar[right]">
<ad clientid="1" />
        </td>

(Header template)

then in the HTML source after is is evald'd out I have:
Code:

<td align="right">
<!-- BEGIN ad 2707236321 --><!-- END ad 2707236321 -->
        </td>

and no ad shows up. Any ideas? I've reimported the product as well. =/

Also my "innvocation code" looks like this:

Code:

<?php
    if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context);
        echo $phpAds_raw['html'];
    }
?>


kazido 03-19-2006 10:38 AM

maybe a stupid question but would this work on 3.5.4? thx

Blackhat 03-19-2006 10:43 AM

I'm using this on 3.5.4

EdQ 03-19-2006 11:05 AM

Quote:

Originally Posted by Blackhat
I'm using this on 3.5.4

So am I

bonjurkes 03-19-2006 01:02 PM

Quote:

Originally Posted by Blackhat
I'm using this on 3.5.4

me too :D

bonjurkes 03-19-2006 01:05 PM

btw can anyone help me about banner system?

I want something different but i cant do it.

Like showing proper ads for proper forums.

I will be glad if you can send me pm, if you can help me

kazido 03-19-2006 02:29 PM

Quote:

Originally Posted by Blackhat
I'm using this on 3.5.4

Sweet! I'll give it a go :banana:

Thx

Mr Gixxer 04-02-2006 05:34 AM

Got it working!

I too had some issues, but be sure to do this in the adsnew config:banana:

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.

defcon_420 04-04-2006 06:53 AM

it installed great only when the xml file is enabled i cant save my templates once i edit them
i'm using 3.5.4 and just upgraded to phpAdsNew 2.0.8 running on Apache 1.3.34, PHP 4.4.1 and MySQL 4.0.25-standard
any idea's cause i'd really like it working :D

dwbro1 04-05-2006 02:45 PM

Ok, Feeling kind of noobish here for asking this but XML "is" new to me since I've been out of this game for awhile. I cannot download this I just get the xml code displayed in my browser. Plz show me the errors of my ways but be kind and don't laugh too hard. :)

markbolyard 04-05-2006 02:49 PM

Right click on the xml file link now, and click Save Target As...

keithxtreme 04-05-2006 06:43 PM

Installed great works awesome.....

How do I get different zones to show up in different forums and sub forums......I have sponsors who only want to advertise in like one sub-forum.....

SuperJETT 04-11-2006 06:26 PM

Quote:

Originally Posted by defcon_420
it installed great only when the xml file is enabled i cant save my templates once i edit them
i'm using 3.5.4 and just upgraded to phpAdsNew 2.0.8 running on Apache 1.3.34, PHP 4.4.1 and MySQL 4.0.25-standard
any idea's cause i'd really like it working :D

Same issue, on 3.5.4 and 2.0.8 also. I can save normal changes to the templates, but if I add the ad code, it just gives a blank page and does not save.

bonjurkes 04-11-2006 08:58 PM

you must write the path of the phpadsnew true!

for example : www.sitename.com/phpadsnew

is

../phpadsnew/

under server settings at vb options...

hbalagh1 04-13-2006 07:47 PM

Quote:

Originally Posted by SuperJETT
Same issue, on 3.5.4 and 2.0.8 also. I can save normal changes to the templates, but if I add the ad code, it just gives a blank page and does not save.


I have the same issue, i have it set to ../phpads/ in the settings for vb and i have this set

$phpAds_config['compatibility_mode'] = true;

pokershark 04-14-2006 04:45 AM

When i try to upload / install this, it tells me the xml file is invalid.

DudeSicko 04-16-2006 02:12 PM

Installed.

Thx a ton, works realy cool :D

hbalagh1 04-18-2006 02:24 AM

Quote:

Originally Posted by hbalagh1
I have the same issue, i have it set to ../phpads/ in the settings for vb and i have this set

$phpAds_config['compatibility_mode'] = true;

anyone?

jokerz 04-18-2006 05:22 PM

Is this possible with adsense and rotate banners both?

tgmorris 04-18-2006 07:44 PM

Quote:

Originally Posted by jokerz
Is this possible with adsense and rotate banners both?

It sure is and that's exactly what I do on my site. I've got several paid banners, a couple of affiliate programs and adsense all running out of PAN and using this plugin.

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 09:06 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.01829 seconds
  • Memory Usage 1,830KB
  • 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
  • (5)bbcode_code_printable
  • (15)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
  • (40)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