Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Custom footer parsing  (Read 3279 times)

0 Members and 1 Guest are viewing this topic.

Lombi

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
  • Never lick a gift horse in the mouth.
    • Surreal Art Prints
Custom footer parsing
« on: August 29, 2004, 08:31:17 pm »

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:

Code: [Select]
// 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?
Logged
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.

Lombi

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
  • Never lick a gift horse in the mouth.
    • Surreal Art Prints
Re: Custom footer parsing
« Reply #1 on: August 31, 2004, 01:45:46 am »

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?
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom footer parsing
« Reply #2 on: August 31, 2004, 07:38:54 am »

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
Logged

Lombi

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
  • Never lick a gift horse in the mouth.
    • Surreal Art Prints
Re: Custom footer parsing
« Reply #3 on: August 31, 2004, 10:33:40 pm »

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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom footer parsing
« Reply #4 on: September 01, 2004, 12:13:05 am »

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
Logged

Lombi

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
  • Never lick a gift horse in the mouth.
    • Surreal Art Prints
Re: Custom footer parsing
« Reply #5 on: September 01, 2004, 01:50:29 am »

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.
Logged
While you are looking at some surreal art prints or just some surrealistic art you might get yourself some windows xp boot screens.
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 14 queries.