GauGau, a custom footer question GauGau, a custom footer question
 

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

GauGau, a custom footer question

Started by mdp, November 01, 2004, 06:01:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mdp

Hi GauGau,

I was reading your post over here: http://forum.coppermine-gallery.net/index.php?topic=9863.0

Here is what I did:

- Added {Custom-Footer} at end of my template page before the body tag
- Copied and pasted your works that you made for Custom_Footer at my theme.php page

But what I am unsure about doing is edit the path for include menu_main.htm and stopka_for.php.  What am I supposed to do next and exactly where are these path found in includes folder?  Please be patient with me as I know very little about PHP.

See the gallery here: http://www.mason-dixonpark.com/pg/.

Thank in advance for answering and your patience is greatly appreciated!

Joachim Müller

read the entire thread you're refering to - those are the files the user on the other thread was asking to get included. Replace it with the files you want to include. If you don't want to include anything at all, remove it.

Joachim

P.S. I'm not the only supporter. Don't start posts refering directly to me, as others could have annswrered this as well

mdp

I am supposed to create my own footer page using php and add includes path to where my footer will be, right?

And since I only want to add footer, not header..  this is section I need to copy and paste:

// Function for writing a pagefooter
function pagefooter()
{
    global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
    global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;
    global $template_footer;

   // this is the place where the custom footer file gets included
   if(empty($custom_footer)){
      ob_start();
      include('stopka_for.php');
      $custom_footer = cleanup_custom_includes(ob_get_contents());
      ob_clean();
   }

    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
    cpg_debug_output();
    }

    $template_vars = array(
        '{CUSTOM_FOOTER}' => $custom_footer,
    );

    echo template_eval($template_footer, $template_vars);
}

// Function to clean up any double html leftovers from the custom header and footer that are not meant to get parsed
function cleanup_custom_includes($string) {
    $string = str_replace('<HTML>', '', $string);
    $string = str_replace('<HEAD>', '', $string);
    $string = str_replace('<BODY>', '', $string);
    $string = str_replace('</HTML>', '', $string);
    $string = str_replace('</HEAD>', '', $string);
    $string = str_replace('</BODY>', '', $string);
    return $string;
}


And add that include path on top of theme.php page.  Am I reading the thread correctly?

Joachim Müller

imo the thread you're refering to should be pretty clear.

Joachim

mdp

It worked out fine like I anticipated.

Before I make this website public, any object with copyright content area??

http://www.mason-dixonpark.com/pg/index.php

Just keep in mind that we have this media disclaimer: Admission into the Mason-Dixon Park constitutes consent to use without restriction reproductions of your likeness, whether by photograph, video, film or otherwise, for commercial and noncommercial purposes, including but not limited to publication in magazines, video, movies and internet web sites.  Some pictures will be uploaded by the admin, its crew, and some guests who attended the event.  So if we upload the picture, they are copyrighted as well.  My attorney is currently preparing site "Term of Use" which will include submissions that will become property of Mason-Dixon Park if upload anything upon our site.

Joachim Müller

#5
no problem, as long as the "Powered by Coppermine" tag stays unobstructed.

Joachim