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: {SYS_MENU} and{SUB_MENU} placement  (Read 3111 times)

0 Members and 1 Guest are viewing this topic.

cristele

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
{SYS_MENU} and{SUB_MENU} placement
« on: August 24, 2006, 09:04:56 pm »

Hi there!
 I thought the thread Title and Caption Placement was the same issue but although it's the same question it's not the same issue! So here is mine:

So basically in my template I have this:
template.html

<body>
      {CUSTOM_HEADER} {SYS_MENU}<br />{SUB_MENU}
          {ADMIN_MENU}
              {GALLERY}
  {CUSTOM_FOOTER}{VANITY}
</body>

(for info my template is just a copy of the "Sample" template that I simplified)
Then, I'm using an iframe to display the slideshow of the album in another HTML page:
myOtherPage.html

  <div id="pageName">
    <iframe src="http://localhost/Coppermine/cpg148/displayimage.php?album=1&pid=2&slideshow=6000" width="60%" height="600" align="left"></iframe>
  </div>

and I obtain on my page: login/login[guest] (because I removed all the buttons but these ones), admin buttons if I'm logged as an admin, the slideshow

but when i simply try to put
{SYS_MENU}<br />{SUB_MENU}
after
          {ADMIN_MENU}
              {GALLERY}
like so:
<body>
      {CUSTOM_HEADER}           {ADMIN_MENU}
              {GALLERY}
{SYS_MENU}<br />{SUB_MENU}

  {CUSTOM_FOOTER}{VANITY}
</body>
(http://src="http://cristele.ifrance.com/result1.jpg")

I obtain: the slideshow and {SYS_MENU}<br />{SUB_MENU} written as-is in my iframe, I dont have Login and login[guest]anymore...
(http://src="http://cristele.ifrance.com/result2.jpg")

For now I'm working on localhost but you can see 2 snapshots: <a href="http://cristele.ifrance.com/">http://cristele.ifrance.com/</a>


Cheers!
cristele


(PS: the Preview on the new topic doesnt seem to work so I'll post it as-is, sorry I dont know how it will look like :) ) ???
« Last Edit: August 29, 2006, 11:47:23 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: {SYS_MENU} and{SUB_MENU} placement
« Reply #1 on: August 24, 2006, 10:51:43 pm »

Think of the {GALLERY}-token as a placeholder. Stuff that comes befire it must be defined in your theme's pageheader function, stuff that comes below it in the pagefooter function. If you move the menus that usually come before the {GALLERY}-token into a section beneath it (source-code wise), you'll have to edit your themes' pageheader and pagefooter functions and edit them accordingly. This has been asked before, please search the board for details.
Logged

cristele

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: {SYS_MENU} and{SUB_MENU} placement
« Reply #2 on: August 29, 2006, 11:14:06 pm »

Thanks!!
NOW I understand....cool!
 ::)
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.