coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: markp17 on February 06, 2006, 11:13:02 PM

Title: custom header in 1.4.3
Post by: markp17 on February 06, 2006, 11:13:02 PM
hi

i need to place the following as custom header, however I cannot find where to put it, or do I need to make a new file containing this if so how?? thanks

function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;
   
    if(empty($custom_header)){
   include('http://www.mydomain.co.uk/ledads/ledad.php');
   static $custom_header;
   $custom_header = ob_get_contents();
   ob_clean();
}
Title: Re: custom header in 1.4.3
Post by: Nibbler on February 06, 2006, 11:18:12 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start
Title: Re: custom header in 1.4.3
Post by: markp17 on February 06, 2006, 11:24:56 PM
yes I know about paths, however there is nowhere to put this, other than the config menu and it simply brings up parse error, so i must be missing something

thanks
Title: Re: custom header in 1.4.3
Post by: Nibbler on February 06, 2006, 11:29:36 PM
What do you mean 'nowhere to put this' ? What is the parse error that you get ?
Title: Re: custom header in 1.4.3
Post by: markp17 on February 07, 2006, 12:20:46 PM
Hi

I dont have access to error at moment as I am on another computer system, however when I say there is nowhere to put this code, in the older version it was in the template, however in this version it is not so not sure where the code should be dropped in..

the error occurs when trying to place in the config the path to link to an existing php software on our server using ../ledads/ledad.php  have tried http again still error, however when you call this script directly from the broswer it works all ok..

so a little puzzled.

thanks mark
Title: Re: custom header in 1.4.3
Post by: markp17 on February 07, 2006, 12:32:59 PM
hi, ok the error was due to the ledad.php fixed that now, however even entering in config the full path nothing shows up

/var/www/html/ledads/ledad.php

I am sure I am missing the obvious but where I cannot see
Title: Re: custom header in 1.4.3
Post by: markp17 on February 07, 2006, 12:51:37 PM
as a tempory solution I used the following in the template.html  <script src="../ledads/ledad_js.php"></script>

I have tried every path variation I can think of simply none have worked..

any suggestions other than get lost are very welcome.

thanks
Title: Re: custom header in 1.4.3
Post by: Nibbler on February 07, 2006, 02:11:19 PM
If you post the urls to your gallery and to the header file you want then we can tell you the correct relative path.