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)

Andreas 01-21-2005 06:37 PM

Quote:

Originally Posted by Torqued
Is there anything better than phpadsnew?

That's an interesting question, as phpAdsNew has one BIG problem that might make it unusable: cookies.

renee1 01-28-2005 06:17 PM

Quote:

Originally Posted by KirbyDE
@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.

I am trying to do about the same thing but I want several advertisements on the page in different locations which are setup as zones. So I am trying to figure out how to use that invocation code style but in different spots.
So I have figured out $phpAds_raw calls the above link code but because we run several forums and run different advertisers in each I need to set conditions.

PHP Code:

if ($foruminfo['forumid']=='9')
    {
    
$advertiser2 'if (@include('path/to/script/adscript/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('
zone:9', 0, '_blank', '', '0', $phpAds_context);
}'
    
}
else
    {
    if (
$foruminfo['forumid']=='8')
     {
    
$advertiser2 'if (@include('path/to/script/adscript/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('
zone:8', 0, '_blank', '', '0', $phpAds_context);
}' 
}
else
$advertiser2 = >'didnt work' 

well it sure didnt work....

I have a feeling it is due to my lack of skills in coding and I have something wrong here. At least it seems I have seen conditions set for varibles before? I had the above in the phpinclude_start

help help its beating me up :)


All times are GMT. The time now is 02:07 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.01051 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
  • (2)bbcode_quote_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
  • (2)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