Custom footer parsing Custom footer parsing
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Custom footer parsing

Started by Lombi, August 29, 2004, 08:31:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lombi

First of all I would like to state that i read just about every thread about this and the faq, but this was left unaswered still...

I used the faq code to successfully parse an extra function into coppermine, but now I have to do the same thing afterwards (after {GALLERY}) in the footer space I have designed. I tried doing the same thing that was applicable for things before the {GALLERY} tag, but it just doesn't work.

I made the following hack in the theme.php:

// 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;

if(empty($futer)){
 include('../go/tags/10.php');
     $futer = ob_get_contents();
     ob_clean();
  }

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

       echo template_eval($template_footer, $template_vars);
}


But it only works if {futer} is placed before the copyright and it completely screws up the layout if it's not. The issue is that i do not have the complete footer there, the design is in template.html, i just want to include a file in this design.

Does anyone know how a simple function to include a file in the footer should look?
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

Lombi

I evaluated every code sollution for this and found out that this function cannot operate if it's not placed before the ending of the gallery and copyright. It only parses until that spot.

That's clearly viewable if another technique to include (without parsing) a custom footer file - (this can be read here[url]) is used.

So... does coppermine even permit parsing after it writes the copyright?
Or would that take some serious core hacking?
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

Joachim Müller

Stuff that implies manipulation around the copyright area goes unanswered (see http://coppermine.sourceforge.net/faq.php#editCopyrights ) on this board - you will have to find out for yourself (and keep this to you once you did), since telling you how to manipulate this area would mean telling others how to remove it.

Joachim

Lombi

But I do not want to manipulate that area. I just want coppermine to parse {blahblah} after the copyright. Since funtion pagefooter stops exactly there. And I do not mean *right* after the copyright, but about 100 lines later in the html template.

From what I've been looking at so far parsing after {GALLERY} just isn't there.
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

Joachim Müller

I don't quite get it - look at the language and theme selectors in cpg1.3.x - they can be everywere on your template. Parsing doesn't stop. Oops, just discovered you're running cpg1.2.x... Not sure how this used to be; I recommend upgrading.

Joachim

Lombi

So an upgrade to 1.3 will solve the nonparsing of {something} that's located after everything else?

Alright then, will make an upgrade. I was scheduling it to be done this week anyway, hehe :)
Thanks for the support, my friend.
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.