Right sided menu Right sided menu
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Right sided menu

Started by jacques_brelle, November 10, 2003, 05:52:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacques_brelle

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

Joachim Müller


jacques_brelle

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

Joachim Müller

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

jacques_brelle

Thanks for your time, Gaugau.

moorey

According to this thread, you may need to edit theme.php

Sorry - never have tried  :roll:

jacques_brelle

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

moorey

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.moorey.org%2Fmisc%2Fright_side1.jpg&hash=f217f159bd20dbcfbbcc80b462819f2002c64c6d)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.moorey.org%2Fmisc%2Fright_side2.jpg&hash=bad392f1bf5df65005506388405dc320d5cda918)

moorey

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.

jacques_brelle

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 ?

moorey

Ooops!
Okay.. looks like you do have to mess with theme.php  :P

jacques_brelle

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

eolica

I think you have to go to the section of theme.php that says:

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!
Sesto Avolio

jacques_brelle

Grazzie mille, Eolica !
I'm working on it (without good results til now... this is a nightmare for me  :mrgreen: )...
Work in progress !