[Solved]: New templates don't work at places... [Solved]: New templates don't work at places...
 

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

[Solved]: New templates don't work at places...

Started by Gtalegende, June 29, 2008, 07:03:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gtalegende

Hi there,

I've recently downloaded Coppertime for my new website and I tried to change the visual apparence of the gallery. I've altered classic/theme.php to create my own templates (left_menu) and (right_menu).

I've written in templates.html {LEFT_MENU} at the right place, and it worked.
I've done the same for the right menu, but if I put it after {GALLERY}, it doesn't work and it reads {RIGHT_MENU}.

Let me show you :

http://img167.imageshack.us/my.php?image=capturedb5.jpg


Would you know what I should do to make it work ?

Thank you !


PS : Sorry for my English, I'm French, and I hope I've been understandable enough !

Nibbler

Tags before {GALLERY} are processed by pageheader() and tags after {GALLERY} are processed by pagefooter().

Gtalegende


Gtalegende

Hum, this is what I put in theme.php :

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;

   
            include('footer.php');   // ==> mon include de news
      static $footerpage;
      $footerpage = ob_get_contents();
      ob_clean();
 
          include('menu_droit.php');   // ==> mon include de news
      static $menu_droit;
      $menu_droit = ob_get_contents();
      ob_clean();
 



    $template_vars = array(
        '{CUSTOM_FOOTER}' => $custom_footer,
        '{VANITY}' => (defined('THEME_IS_XHTML10_TRANSITIONAL') && $CONFIG['vanity_block']) ? theme_vanity() : '',

// start : mon bloc de news 
'{MENU_DROIT}'   => $menu_droit, 
  '{FOOTER}'   => $footerpage, 
// end mon bloc de news

    );

    echo template_eval($template_footer, $template_vars);
}


And this is what I've got :

I've finally have my famous menu, but all is upside down. Even when I don't write {RIGHT_MENU} in template.html the page looks like that... Would you know what I ought to do ?

Thanks !

Gtalegende

#4
Oups, sorry, I forgot the link for the screenshot :

http://img185.imageshack.us/img185/3587/capture2bb6.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]

Nibbler

Add an ob_start() call before each include line.

Gtalegende

QuoteParse error: syntax error, unexpected T_INCLUDE in /homepages/33/d197330614/htdocs/alphav6/3/galerie/themes/classic/theme.php on line 96

:(

Gtalegende

Oh, sorry, i forgot the ";" !

Thanks It works, thank you so much !

Fabricio Ferrero

@Gtalegende: Don't hotlink imagges. Attach them next time.  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Gtalegende