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)

thenewuser 10-01-2006 12:35 PM

Quote:

Originally Posted by Devices
I am stuck now to advise what to do other than check your path to your pan installation mine is on a windows server and i have the path set to D:\Domains\mydomain.com\www\ads

The fact you are getting the code above i would say the addon is working ok its just not getting the correct info from PAN. So it either cannot find it or PAN is not returning the correct info.

Have you verified your PAN is working normally outside of VB ?

We have verified that it is not working normally. Myself and my host have combed through the settings and they all appear to be correct. Everything is up and linked. I'm not sure what else could be the problem.

Devices 10-07-2006 04:20 PM

Quote:

Originally Posted by thenewuser
We have verified that it is not working normally. Myself and my host have combed through the settings and they all appear to be correct. Everything is up and linked. I'm not sure what else could be the problem.

Of course do not forget to specify the same banner size as your zone size ;)

Devices 10-07-2006 04:23 PM

Quote:

Originally Posted by dholt
Nice works great
I need a how too to create a add block for this for the right side of my vba.

can someone give me a step by step on inserting a banner on the right or left side in a block.

Thanks in advance

Its probably best to look over at VBA's site. There is information there for creating custom blocks. Personally i deactivate the VBA side blocks and create my own in the templates that display throughout the forums.

Jealousy10312 10-21-2006 02:41 PM

Does this work with 3.6.2?

jw00dy 10-22-2006 03:59 AM

yes it works on 3.6.2

farooqaaa 10-22-2006 08:49 AM

nice one, thanks alot!

farooqaaa 10-22-2006 12:58 PM

Its not working for me :(.. i have added the ADS but they arent showing.!

thetradingforum 10-24-2006 11:22 PM

Not working for me :(

Header code:
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
  <td style="background-image:url(images/c1/c1_01.jpg); background-position:right; background-repeat:repeat-y;" width="10">&nbsp;</td>
  <td style="background-color:#ffffff;"><table width="100%" style="background-image:url(images/c1/c1_04.jpg); border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td align="$stylevar[left]" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td width="100%" style="background-image:url(images/c1/c1_03.jpg); background-repeat:no-repeat;"> <ad what="zone:2" /> </td>

PAN Code:
Code:

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

I currently have PAN installation directory set to "/phpAdsNew"
PAN is installed in this directory:
Code:

ftp://ftp.thetradingforums.com/public_html/forums/phpAdsNew/
Please help, I've been searching for a solution for HOURS!

I've tested PAN outside vbulletin, and it works fine.

echamberlain 10-25-2006 06:03 PM

What is the syntax to select Wide Skyscraper banners based on one or more keywords?

For example, I want a wide skyscraper banner on the right side of my forum and I want baners selected based on the page meta keywords.

myplacidcasual 10-30-2006 04:56 AM

Will this work with vb 3.62 and the latest phpadsnew?

Ohiosweetheart 11-04-2006 12:01 AM

Quote:

Originally Posted by jw00dy
yes it works on 3.6.2

really?? Looks people are having ALOT of problems with it.

Where's the developer?

bada_bing 11-04-2006 01:42 AM

Anyone willing to help me set this up? I have phpadsnew and the plugin installed but cant get the test banenr to show up.. I am willing to pay if someone can help me.. PM me if you are interested

DeMagH 11-04-2006 02:50 PM

when i tried it, i got a problem saving the template?!! when i reload the page, the argument <ad what="zone:12" /> is just not there

any ideas

smoknz28 11-04-2006 09:22 PM

Quote:

Originally Posted by Masiello
I dont show any banner, i solved this just copyng invocation code of phpAdsNew in my Header template, that's all, whitout using any product.

You know....when I was running Ubb Threads...the use of phpAdsNew was so easy to set up. There was a header include file and I just copied and pasted the default code into Dreamweaver as a new file...then edited it there with the phpAdsNew code with about 8 different banners with tables. So easy!

Why is it such a booger to get it set up with vBulletin?

Are you saying you simply added all the phpAdsNew banner codes into the header template?

Please elaborate as I would like to use phpAdsNew to manage about 8 small banners.

Thank you,
Mark
www.f-bodyhideout.com/forums

DeMagH 11-05-2006 11:23 AM

actually with all the sudden everything is working extremely great right now, one thing though, what are the available arguments for this patch?! u mentioned only 3 in the first post, any more commands?

p.s:
thanks a million

imported_infitech 11-10-2006 04:47 AM

so i cant display ads on my site using phpadsnew without installing this hack?

qbonoguy 11-13-2006 04:48 AM

Great mod!
Quick question...

How do I get it to display a banner that has a keyword found in the forum title?

I'm currently using...

<ad what="$foruminfo[title]|default" />

The idea is for it to first display an ad related to that particular forum and if there is no ad with that keyword then just use one of the default ads.

However, it's not working right... any help or insight would be much appreciated!

taydu 11-20-2006 07:36 PM

will this work with 3.6.3 ??? Just looked at the features and I loving it already. I'm going to installed it if it will work with 3.6.3

thanks

irishblacknight 11-20-2006 07:37 PM

I'm using it with 3.6.3 without any issues

taydu 11-21-2006 02:10 AM

thanks, Íll try it now

imported_infitech 11-21-2006 05:05 AM

This is ONE of the only 3 mods i have installed on my forums right now... Great job.

picardtux 11-22-2006 07:24 AM

this mod is great!

it work with 3.6.x

many thX coder ;)

TECK 12-11-2006 05:01 AM

It's working good in 3.6.4.
I have a PhpAdsNew question.
If I use on the same page 2 tags:
<ad what="zone:1" /> and <ad what="zone:2" />
I want to display the same banner type in both areas.

Basically, the zone 1 is a 468x60 banner and zone 2 is a 120x600 banner.
So, when I refresh the page I would like to have both banners displayed from the same clientid.

Any tips on how to do this?
Is there a way to insert into the <ad what /> tag a specific variable?
Something like:
Code:

<ad what="zone:1|$clientid" />
Thanks for your help.

ferreo 12-11-2006 04:53 PM

For some reason, I can not get my Admin CP to save the phpadsnew location. When I am logged in and try to save the new location, the ACP repeatedly keeps on asking for me to log in - and the location doesn't get saved.

Any idea why this is happening?

Thanks!

TECK 12-11-2006 05:37 PM

I hardcoded the path into script, that's why I probably don't have this error.

ferreo 12-12-2006 01:44 AM

I resolved the problem. The newest phpadsnew lib files weren't present in the includes folder of the forum. After copying them over, it works like a charm.

TECK 12-12-2006 04:36 AM

I resolved my problem also, I uninstalled the hack and wrote my onw version. :)
Not the same solution, but works really good, plus less code to process.

criscokid 12-16-2006 12:10 PM

I'd like to use a conditional that excludes ads being shown based on one of the user' cutom profile field. More specifically ads that are targetted to men shouldn't be shown to women and vice versa.

The profile field is either: Male / Female
The ads that are for men contain this keyword: MenOnly
The ads that are for women contain this keyword: WomenOnly

The install instructions suggest using this invocation using template conditionals:
<if condition="$bbuserinfo['usergroupid']==1"><ad what="" /></if>

Based on that what would the conitional be that I'd need to use for:
don't show banners containing "MenOnly" if the profile field = Female
don't show banners containing "WomenOnly" if the profile field = Male

criscokid 12-16-2006 12:36 PM

It is recommended to set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file.

I need to change the setting to try get this this plugin to work - if it's set as 'false' then the forum stops with a mySQL error when I edit the templates.

I've already got PAN running ok without this plugin. The moment change the setting in the config file all of the banner ads stop displaying. What could be the cause of this?

Rob D 12-18-2006 09:00 PM

GREAT MOD!!! First mod I've installed on vBulletin and it couldn't be much simpler. Thanks for the great work! (Once I get my site up and running I plan to express my gratitude with a small portion of the ad revenue:D )

HobbiesPR 12-19-2006 05:19 PM

The www.phpadsnew.com site is not working for me.

pcxmedia 01-03-2007 09:34 PM

any idea why this wont work in 3.6.4?

it just won't save the template when i drop the code into it.

jw00dy 01-04-2007 06:51 AM

That's certainly not this mod's problem. sounds like you have other problems.

The way this mod works, it is almost completely autonomous from the version you are running. I think this would mod would more then likely run on any version.

diretur 01-08-2007 08:29 AM

First of all thank you for this hack.

I have a banner on the navbar and I want it to be different in different forums. I put this code in the navbar template:

PHP Code:

<if condition="in_array($forumid, array(104))"><ad what="zone:43"/>
<else /><
ad what="zone:37" /> 

In this way I'll have zone:43 in forum 104, and zone:37 anywhere else.
Now I want, for example, to put zone:44 in forum 105 and zone:43 in forum 104 and zone:37 anywhere else. But if I put his code in the template:

PHP Code:

<if condition="in_array($forumid, array(104))"><ad what="zone:43"/>
<else /><
ad what="zone:37" />
<if 
condition="in_array($forumid, array(105))"><ad what="zone:44"/>
<else /><
ad what="zone:37" /> 

I will have two banners in the other forums (two zone:37 are showing up).
Can somebody please tell me how to solve this problem?

diretur 01-08-2007 09:41 AM

solved:

PHP Code:

<if condition="in_array($forumid, array(104))"><ad what="zone:43"/>
<else />
<if 
condition="in_array($forumid, array(28))"><ad what="zone:45"/>
<else /><
ad what="zone:37" />
</if>
</if> 


GetGamer.com 01-11-2007 05:17 AM

I cannot get this working. It used to work, but when I switched to a new server, it stopped working with the codes in vBulletin. phpAdsNew still works fine, but I'd like to use the <ad what="___" /> codes.

I'm running phpAdsNew 2.0.9-pr1, vBulletin 3.6.4 with vBSEO 3.0.0 RC6, version 1.0.4 of this plugin, PHP 4.3.9 and MySQL 4.1.20

The zone tags are getting inserted properly, for example:
HTML Code:

<td width="50%" align="right">
<ad what="zone:26" />
</td>
</tr>
<tr><td colspan="2" align="center"><a href="http://www.bigblueball.com/forums/register.php">Join today</a> and you won't have to look at these ads any more. <a href="http://www.bigblueball.com/forums/website-news/34758-become-bigblueball-member-its-easy-free.html">Learn more.</a></td></tr>
</table>

<!-- END TEMPLATE: navbar -->

I'm using local mode, and I've tried both relative and full paths.

It's frustrating because it used to work perfectly until I moved to a new server. Any clues?
You can see it in (in)action here: http://www.bigblueball.com/forums/ms...st-stored.html
There should be a PAN-served graphic advert to the right of the Google Adsense medium rectangle.

mrahul 01-11-2007 05:38 AM

does this work for 3.6.x ?? if not any proposals for the release to 3.6.x ??

GetGamer.com 01-11-2007 05:46 AM

Quote:

Originally Posted by mrahul (Post 1156029)
does this work for 3.6.x ?? if not any proposals for the release to 3.6.x ??

Several people have reported that this works fine in 3.6.4, and in fact, it did for me, too -- until I moved to a new server. I'm still trying to sort out why it's not working. No errors, but no ads, either.

criscokid 01-11-2007 08:07 AM

It is recommended to set $phpAds_config['compatibility_mode'] = true; in phpAdsNew config file.

I need to change the setting to try get this this plugin to work - if it's set as 'false' then the forum stops with a mySQL error when I edit the templates.

I've already got PAN running ok without this plugin. The moment change the setting in the config file all of the banner ads stop displaying. What could be the cause of this?

want2lrnvb 01-15-2007 04:27 AM

Nothing is working for me on 3.6.4. I have PAN hosted on another server and want to access it from the forum.

I have the invocation code in the header portion of my style template and have tried the php and javascript versions.

No image is showing but it does seem to show movement from the other server as it is contacting the other location.

First question- how can I verify that my PAN is working right? Do I need to create a .php file and if so what code goes there to test it- the invocation code?

Second- Will this work on this version?

Thanks in advance!


All times are GMT. The time now is 07:53 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.01868 seconds
  • Memory Usage 1,847KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)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)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