Hello I go two weeks and do not achieve that it me works well.
Is the well-read one the this post
http: // coppermine.sourceforge.net/faq.php? Q=customHeader*customHeader, and I have followed the intrucciones.
theme.php
1) function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
if(empty($custom_header)){
include('http://www.mipage.com/h/otherpages/in.php');
$custom_header = ob_get_contents();
ob_clean();
} header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
$template_vars = array(
'{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'].' - '.$section,
'{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{MAIN_MENU1}' => theme_main_menu1(),
'{MAIN_MENU2}' => theme_main_menu2(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header, );
echo template_eval($template_header, $template_vars);
}
2) // Function for writing a pagefooter
function pagefooter()
{
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
global $USER, $ALBUM_SET, $CONFIG, $time_start, $query_stats;
global $template_footer;
if ($CONFIG['debug_mode']) {
$time_end = getmicrotime();
$time = round($time_end - $time_start,3);
$query_count = count($query_stats);
$query_times = '';
$total_query_time = 0;
foreach ($query_stats as $qtime){
$query_times .= round($qtime,3)."s ";
$total_query_time += $qtime;
}
$total_query_time = round($total_query_time,3);
starttable('100%', 'Debug info');
echo "<tr><td class=\"tableb\">";
echo "USER: <pre>";
print_r($USER);
echo "</pre></td></tr><td class=\"tableb\">";
echo "GET :<pre>";
print_r($HTTP_GET_VARS);
echo "</pre></td></tr><td class=\"tableb\">";
echo "POST :<pre>";
print_r($HTTP_POST_VARS);
echo "</pre></td></tr><td class=\"tableb\" align=\"center\">";
echo <<<EOT
Page generated in <b>$time</b> seconds - <b>$query_count</b> queries in <b>$total_query_time</b> seconds - Album set : $ALBUM_SET
EOT;
echo "</td></tr>";
endtable();
}
echo $template_footer;
echo include('http://www.mipage.com/h/otherpages/toplist.php'); }
template.html
3) insert in template.html the tag {CUSTOM_HEADER}
It shows me the top but the table of "randomize" and of " last uploads " it does it mas small and at the same time it shows me the following mistake:
Warning: pagefooter (): stream does not support seeking
Theme.php line 765, and in this line what I have is this
include (' http:// www.mipage.com/h/otherpages/toplist.php '); "The script that I want to install is this
http://www.cjultra.com,
in.php counts the visits, and
toplist.php stamps the top.
I hope that they could help me am already desperate