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: hi, i need help!!! Template.html and theme.php  (Read 4103 times)

0 Members and 1 Guest are viewing this topic.

alonex0x

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
hi, i need help!!! Template.html and theme.php
« on: May 02, 2004, 11:25:37 am »

Hello, I have a problem, I have just installed the Coppermine  in my website: www.zonarave.com/fotos but like work with PHP, I have personalized my template.html but my codes of PHP don't appear as the Banners and the messages of the forum (www.zonarave.com -> there they can see the whole operation)  
 
I have seen the code of the theme.php and I don't know as calling the sentence of PHP in the file theme.php because I imagine that in template.html I put this syntax: {BANNER} to call from the theme.php but there I don't know as being able to include this syntax:  
 
<?  
$zona=bprincipal;  
include ("/ home/zonarave/public_html/banner/muestra.php");  
?>  
 

www.zonarave.com/fotos

As I make? help me.  
 
Thank you

Anibal

 :)
« Last Edit: May 03, 2004, 02:36:15 am by alonex0x »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

alonex0x

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: hi, i need help!!! Template.html and theme.php
« Reply #2 on: May 02, 2004, 12:28:37 pm »

hi, thanks.. but

In my template.html I have already put the one

{BANNER}

In my theme.php I have defined this: 
 
'{BANNER}' => theme_custom_banner (),     


and but below where the functions are, I have created this


function theme_custom_banner () 

$zona=bprincipal; 
include ("/ home/zonarave/public_html/banner/muestra.php"); 
return $zona;
}
   
 
the problem is the include!!!   

it doesn't leave me :(   
 
a recommendation or help? 
 
www.zonarave.com/fotos

 :-\
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: hi, i need help!!! Template.html and theme.php
« Reply #3 on: May 02, 2004, 10:25:48 pm »

Here's what I get when I visit your page:
Quote
9 Visitantes, 4 Usuarios
junkie!, DroopUnloop, °*Maktub*°, jorgef4
Warning: main(lang/english.php): failed to open stream: No such file or directory in /home/zonarave/public_html/fotos/include/init.inc.php on line 278

Fatal error: main(): Failed opening required 'lang/english.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/zonarave/public_html/fotos/include/init.inc.php on line 278
, so I guess you messed up. To get something like this working, rename /home/zonarave/public_html/banner/muestra.php to /home/zonarave/public_html/banner/muestra.php_old and create a new file /home/zonarave/public_html/banner/muestra.php with this content:
Code: [Select]
<?php
print "Hello world";
?>
Upload the new file to your webserver and check if it works now. If it does, your file muestra.php doesn't work as expected, nothing we can do about that here...

GauGau
Logged

alonex0x

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: hi, i need help!!! Template.html and theme.php
« Reply #4 on: May 03, 2004, 02:32:08 am »

here in this figure the banner is shown with this syntax:  

(http://www.zonarave.com/stuff/mbanner.jpg)
 
the banner comes out me when I put another time the include outside of the function, and in the state bar if appears me well the address of the banner: http://www.zonarave.com/banner/click.php?id=9  

Quote
function theme_custom_banner()
{
$zona=bprincipal;
include('/home/zonarave/public_html/banner/muestra.php');
return 'BANNER HERE';
}
include('/home/zonarave/public_html/banner/muestra.php');

I have marked with red where I want that the banner comes out, so I have eliminated that it finishes it lines bony as supposedly it should be and it leaves me this figure:  


(http://www.zonarave.com/stuff/mbanner2.jpg)

Quote
function theme_custom_banner()
{
$zona=bprincipal;
include('/home/zonarave/public_html/banner/muestra.php');
return 'BANNER HERE';
}

 
A X comes out and in the state bar appears:  
http://www.zonarave.com/click.php?id=9  

 
So I don't know that to make? ... because the script of my banner works with areas and for that reason the variable $zona this there declared as bprincipal.  
 

Help me!!!!!!!!!!!!  :'(

Thanks
Logged

quake101

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: hi, i need help!!! Template.html and theme.php
« Reply #5 on: August 22, 2004, 06:39:16 am »

Hey, in your theme.php where did you put your cutom funtion at?
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 18 queries.