forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jacques_brelle on November 10, 2003, 05:52:04 pm

Title: Right sided menu
Post by: jacques_brelle on November 10, 2003, 05:52:04 pm
Hi
I'm trying for hours to put the $template_img_navbar (the nav menu) on the right side of a full displayed image.
I've read the faq (dealing with header and footer) and the messages on the board but it doesn't work for what I'm trying to do (I guess...).
All I was able to do is to obtain a nav menu which does'nt work under the displayed image.
 :?

It drives me mad...
 :mrgreen:
so I'm really sorry to post again about this subject, but if you have any idea...
Title: Right sided menu
Post by: Joachim Müller on November 10, 2003, 06:01:44 pm
Looking for this: FAQ: How can I create a menu that's shown on the right side of the gallery? (http://coppermine.sourceforge.net/faq.php?q=rightHandMenu#rightHandMenu)

GauGau
Title: Right sided menu
Post by: jacques_brelle on November 10, 2003, 09:41:48 pm
ok Gaugau,
thx for your reply.
I did it again...
and
1.
{MAIN_MENU1}
{MAIN_MENU2}
{ADMIN_MENU}
appear "in clear without working" (hope a guy on earth understand what I mean...)
2. a part of the html template has disappeared
3. the nav bar is still under the displayed image
Did I miss something ?
Am I supposed to do something particular after having done what's written in the FAQ ?
 :|
Title: Right sided menu
Post by: Joachim Müller on November 10, 2003, 10:19:02 pm
well, your menu is not on the right side of the gallery block, so the changes mentioned in the faq section don't apply. What's the name of your theme folder so I can take a look at the template? Maybe you can save your theme.php as theme.txt as well, so I could have a look at it as well?

Thanks

GauGau
Title: Right sided menu
Post by: jacques_brelle on November 11, 2003, 01:22:11 pm
Thanks for your time, Gaugau.
Title: Right sided menu
Post by: moorey on November 12, 2003, 02:15:13 am
According to this thread (http://forum.coppermine-gallery.net/index.php?topic=1488), you may need to edit theme.php

Sorry - never have tried  :roll:
Title: Right sided menu
Post by: jacques_brelle on November 12, 2003, 11:24:32 am
I've already done it...
All I was able to get is a nav menu UNDER the displayed image which doesn't work (I know, I'm a fucking genius...).
 :mrgreen:
Am I the only one who'd like to get a right sided nav menu (only when the image is full displayed) ?
Title: Right sided menu
Post by: moorey on November 12, 2003, 01:59:18 pm
Ok you made me curious and I took about 10 mins timeout to figure this one out for ya. Here's a couple of screen shots with Dreamweaver to show you the table cells to help you out. I just modified template.html and that was it. Other templates *may* be different. Hope this helps.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.moorey.org%2Fmisc%2Fright_side1.jpg&hash=f217f159bd20dbcfbbcc80b462819f2002c64c6d)
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.moorey.org%2Fmisc%2Fright_side2.jpg&hash=bad392f1bf5df65005506388405dc320d5cda918)
Title: Right sided menu
Post by: moorey on November 12, 2003, 02:30:41 pm
BTW, if you're curious (or as you probably already know), the above method just "tricks" the default theme.php into evaluating {MAIN_MENU} as per the variables order set in there. The table cells are evaluated from left to right, top to down manner just as any standard HTML.
Title: Right sided menu
Post by: jacques_brelle on November 12, 2003, 02:32:27 pm
Hum...
thank you Moorey... BUT  :mrgreen:
What I'm trying to do is ONLY to get the two arrows (prev and next) on the right side of the image when the "normal size" is displayed (just like in your screenshot 2)...
Excuse my english, I didn't realise that it wasn't clear at all...
 :oops:
Do you see what I mean ?
Title: Right sided menu
Post by: moorey on November 12, 2003, 03:14:31 pm
Ooops!
Okay.. looks like you do have to mess with theme.php  :P
Title: Right sided menu
Post by: jacques_brelle on November 12, 2003, 04:14:47 pm
You got it !
 :D
I tried hard without any good result...
(which is really unbelievable...  :lol:)
I hope it won't be so tricky next saturday in Sydney...
 :?
So, if anyone has a magic trick for this exciting right-sided nav-bar...
Title: Right sided menu
Post by: eolica on November 12, 2003, 04:51:32 pm
I think you have to go to the section of theme.php that says:

Code: [Select]
function theme_display_image($picture, $nav_menu, $pic_info, $film_strip)

(in your theme.txt is at line 1428) and change the way and order of display of $picture and $nav_menu (probably including them in two different <td>'s

I hope it will help!
Title: Right sided menu
Post by: jacques_brelle on November 13, 2003, 02:55:42 pm
Grazzie mille, Eolica !
I'm working on it (without good results til now... this is a nightmare for me  :mrgreen: )...
Work in progress !