custom header in 1.4.3 custom header in 1.4.3
 

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

custom header in 1.4.3

Started by markp17, February 06, 2006, 11:13:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

markp17

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();
}


markp17

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

Nibbler

What do you mean 'nowhere to put this' ? What is the parse error that you get ?

markp17

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

markp17

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

markp17

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

Nibbler

If you post the urls to your gallery and to the header file you want then we can tell you the correct relative path.