hi, i need help!!! Template.html and theme.php hi, i need help!!! Template.html and theme.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

hi, i need help!!! Template.html and theme.php

Started by alonex0x, May 02, 2004, 11:25:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alonex0x

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

:)

Joachim Müller


alonex0x

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

:-\

Joachim Müller

Here's what I get when I visit your page:
Quote9 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:<?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

alonex0x

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

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.zonarave.com%2Fstuff%2Fmbanner.jpg&hash=e9d698065daf7221e321a6268de83a4c90ce045c)
 
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  

Quotefunction 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:  


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.zonarave.com%2Fstuff%2Fmbanner2.jpg&hash=273b55aeba2c9e75ea30c6750ee3967ef3de2595)

Quotefunction 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

quake101

Hey, in your theme.php where did you put your cutom funtion at?