Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: phpAds VS Gallery  (Read 13241 times)

0 Members and 1 Guest are viewing this topic.

CBR

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
phpAds VS Gallery
« on: January 29, 2004, 04:14:47 pm »

Quote
<?php

    if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php')) {

        if (!isset($phpAds_context)) $phpAds_context = array();

        $phpAds_raw = view_raw ('', 1, '', '', '0', $phpAds_context);

        echo $phpAds_raw['html'];

    }

?>

PhpAds generated this code. And it is working in every ***.php or ***.html document. But in some reason it can not work if I add this code into theme.php
Could somebody explain the problem?
Logged

jdbaranger

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 169
    • Accro-Photo
phpAds VS Gallery
« Reply #1 on: January 29, 2004, 06:12:50 pm »

Hi,

Try adding this code in template.html rather than in theme.php.

Jean-Denis
Logged
Jean-Denis

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
phpAds VS Gallery
« Reply #2 on: January 29, 2004, 06:28:41 pm »

Actually, theme.php should be fine if you made the necessary adjustments. I suspect the path may be incorrect.  

Change:

 
Code: [Select]
if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php'))

to:

 
Code: [Select]
if (@include('actual full file path'))

and see if that helps.
Logged
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 18 queries.