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: Kaki menu link  (Read 2684 times)

0 Members and 1 Guest are viewing this topic.

koffee

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Kaki menu link
« on: February 10, 2005, 11:17:42 pm »

Hi, is it possible to add a link to Main menu (i know it is) but show it instead of {GALLERY}? (something like iframe?)  Picture for better imagination (high compression,with my drawing ;):

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fsweb.cz%2FJirulda%2Fgal.JPG&hash=ec530ba6de41c7c5d92d289d8dddbeed7b8dbd7d)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Kaki menu link
« Reply #1 on: February 11, 2005, 02:47:37 pm »

what is the page inside the iframe suppossed to contain? I guess you want to add a menu item to your coppermine menu that fires up a non-coppermine page with a page layout that matches the layout of your coppermine page. If this is correct, just take a look at the miniCMS hack in the mods section; this is the easiest way to accomplish what you're looking for. Fiddling with iframes is not recommended, as the technique itself has got a lot of drawbacks, so (as a workaround) you just make you non-coppermine page have the same menu structure and layout as your "regular" coppermine page. Another (even easier) workaround is to add this to your non-coppermine page:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('your title here');
?>
at the very start and
Code: [Select]
<?php
pagefooter
();
ob_end_flush();
?>
at the very bottom.
You might have to adjust your include paths to match your site structure...

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.