vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding phpadsnew (https://vborg.vbsupport.ru/showthread.php?t=72486)

rh2004 12-04-2004 02:33 PM

Adding phpadsnew
 
Hi how do you get this to work, I have it installed etc, I created an
advertiser & zone, now where do I add the code on the forum so it will
display the banner(s)

Colin F 12-04-2004 02:41 PM

You'll have to edit the templates in your admincp and put the code whereever you want to display the ads.

It'll require a basic knowledge of HTML.

rh2004 12-04-2004 02:51 PM

But where do I find the code .... ..

Colin F 12-04-2004 02:59 PM

you can generate the code in phpadsnew, it's the tab all the way on the right in the zone, if I recall correctly.

thephonemall 12-28-2004 06:11 AM

I receive an error when I copy the code over to my header .. I am adding
PHP Code:

<?php
    
if (@include(getenv('DOCUMENT_ROOT').'http://www.thephonemall.net/ad/phpadsnew.inc.php')) {
        if (!isset(
$phpAds_context)) $phpAds_context = array();
        
$phpAds_raw view_raw ('zone:1'0'www.google.com''www.thephonemall.net/ads/bigad.swf''0'$phpAds_context);
        echo 
$phpAds_raw['html'];
    }
?>

and receiving:
==========================
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/thephone/public_html/forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 24

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish
=============================

I am also looking to integrate PHPADSNEW with forum specific banners.. how could I do this?

thephonemall 01-03-2005 02:36 PM

Bump

Gez 01-21-2005 08:17 AM

i got this same error, any ideas anyone?

SVTBlackLight01 01-21-2005 05:04 PM

You can't use PHP in templates.

Do a search for phpadsnew here and at vbulletin.com. There are a few explanations of how to integrate phpadsnew ads with vbulletin.

Torqued 01-21-2005 06:13 PM

Is there anything better than phpadsnew?

Andreas 01-21-2005 06:35 PM

@thephonemall
PHP Code:

if (@include(getenv('DOCUMENT_ROOT').'http://www.thephonemall.net/ad/phpadsnew.inc.php')) {
        if (!isset(
$phpAds_context)) $phpAds_context = array();
        
$phpAds_raw view_raw ('zone:1'0'www.google.com''www.thephonemall.net/ads/bigad.swf''0'$phpAds_context);


Put this in phpinclude_start (this is basically the code you posted, I just removed <?php ?> and the echo statement) and use $phpAds_raw[html] in template header where you want to have the banner.


All times are GMT. The time now is 04: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.01105 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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