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)

Milez 11-08-2005 02:12 PM

Very sorry. I had an issue with PAN.

This script works fantabulous and I have been waiting for some time for it. Until recently I was only able to get ads to appear with the Javascript invoking method which slows most busy VB boards to a crawl. Hopefully by invoking with PHP this is MUCH faster.

Thumbs up to the new plugin system in VB3.5 and thanks to the author of this mod. I suggest anyone using PAN & VB check this out.

Corriewf 11-08-2005 03:49 PM

Too bad there is a bug in the newest version of php which prevents logging into this.....

LincolnForums 11-08-2005 03:53 PM

i keep getting this error.

Warning: in_array(): Wrong datatype for second argument in /includes/lib-xmlrpc.inc.php on line 571

I copied both the lib- files to my includes directory

The M.I.P. 11-08-2005 04:20 PM

Quote:

Originally Posted by LincolnForums
i keep getting this error.

Warning: in_array(): Wrong datatype for second argument in /includes/lib-xmlrpc.inc.php on line 571

Did you add global $xmlrpc_valid_parents; to line 76 of lib-xmlrpc.inc.php as told in the "NOTES" section of my first post?

tamborinegal 11-09-2005 04:13 AM

Quote:

Originally Posted by The M.I.P.
You can use the <ad ... /> tags anywhere in your templates. When using multiple <ad ... /> tags on a page, you should define an own zone for each ad in phpAdsNew - see the phpAdsNew user guide for more infos.

Thanks, will definately be trying this out in the next couple of days. Looks great. Will let you know how it goes.

Cheers :)

Milez 11-09-2005 05:43 AM

Quote:

Too bad there is a bug in the newest version of php which prevents logging into this.....
Referring to PAN I assume. I found this to be true on Windows boxes but not *nix.

The M.I.P. 11-09-2005 12:01 PM

There's a preliminary phpAdsNew 2.0.7 version as a workaround for the PHP 4.4.1 bug.

lsgworldl 11-09-2005 09:18 PM

this is how I have it set up, cant get it to work

Header

PHP Code:

<!-- logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
    <
td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td>
    <
td align="$stylevar[right]">
        <
ad what="zone:1" />
    </
td>
</
tr>
</
table>
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 

path to adsnew

/home/lsgworld/public_html/adsnew

code from adsnew

PHP Code:

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


The M.I.P. 11-10-2005 03:53 AM

Quote:

Originally Posted by lsgworldl
path to adsnew

/home/lsgworld/public_html/adsnew

How did you specify the path to phpAdsNew in vBulletin's Server Settings and Optimization Options?
The correct setting seems to be /adsnew in your case.

Please also make sure that phpAdsNew is set up correctly and working smoothly to be able to narrow down the origin of possible problems.

lsgworldl 11-10-2005 01:18 PM

Quote:

How did you specify the path to phpAdsNew in vBulletin's Server Settings and Optimization Options?
The correct setting seems to be /adsnew in your case.
Location of phpAdsNew = /home/lsgworld/public_html/adsnew :bunny:

Quote:

If your local phpAdsNew installation is outside the DOCUMENT_ROOT of vBulletin forum, see point e) from the NOTES section of my first post.
I dont knolw what that means??? what is the DOCUMENT_ROOT??? :alien:

Quote:

Please also make sure that phpAdsNew is set up correctly and working smoothly to be able to narrow down the origin of possible problems
phpAdsNew was set up ising fantastico, so yes it is set up correct :banana:


All times are GMT. The time now is 05:56 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.01416 seconds
  • Memory Usage 1,758KB
  • 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_php_printable
  • (7)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