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)

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 01:11 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.01766 seconds
  • Memory Usage 1,755KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (1)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