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();
}
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start
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
What do you mean 'nowhere to put this' ? What is the parse error that you get ?
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
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
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
If you post the urls to your gallery and to the header file you want then we can tell you the correct relative path.