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: Navagation buttons (curve theme)  (Read 2056 times)

0 Members and 1 Guest are viewing this topic.

zappaDPJ

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Navagation buttons (curve theme)
« on: September 30, 2011, 11:05:02 pm »

I've created a new theme based on curve but run into a couple of issues with the navigation button row that I can't seem to overcome.

Firstly I want to move the login/out/register button(s) to the end of the row (right hand side). I understand that this needs to be done in theme.php but I seem to lack the programming skills to achieve it.

Secondly I'm trying to change the active link to be distinct from the rest of the buttons (please see the attached file for a similar effect).

I thought I could achieve this by editing the following CSS but it didn't work.

Code: [Select]
/* the active button */
.dropmenu li a.active {
    background: url(images/menu_gfx.png) no-repeat 100% 0;
    color: #ffffff;
    font-weight: bold;
}

.dropmenu li a.active span.firstlevel {
    background: url(images/menu_gfx.png) no-repeat 0 0;
}

I've read through the documentation and performed a search but the information I've found hasn't really helped or I don't have the knowledge to apply it.
Logged

zappaDPJ

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Navagation buttons (curve theme)
« Reply #1 on: September 30, 2011, 11:20:38 pm »

I didn't consider that this might break the one issue per thread rule so apologies if that is the case.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Navagation buttons (curve theme)
« Reply #2 on: October 01, 2011, 01:21:16 am »

Do you have a link to a version in progress and can you attach the theme as a zip file?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

zappaDPJ

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Navagation buttons (curve theme)
« Reply #3 on: October 01, 2011, 03:15:58 am »

Sure and thanks for your reply. The link is http://zappadpj.com/gallery/ and I've attached the theme.

I'm trying to achieve the same active link effect and a similar navigation order to what I have on an associated SMF2 forum here: http://zappadpj.com/forum/
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Navagation buttons (curve theme)
« Reply #4 on: October 05, 2011, 02:58:32 pm »

Firstly I want to move the login/out/register button(s) to the end of the row (right hand side). I understand that this needs to be done in theme.php but I seem to lack the programming skills to achieve it.
Open template.html, find
Code: [Select]
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}
and replace with
Code: [Select]
                    {SUB_MENU}
                    {ADMIN_MENU}
                    {SYS_MENU}

This will move some more buttons, but is the easiest solution. If you don't want to move all sys menu buttons, you indeed have to edit theme.php. Please let me know if this is also okay for you or if you need the more difficult mod.



Secondly I'm trying to change the active link to be distinct from the rest of the buttons (please see the attached file for a similar effect).

I thought I could achieve this by editing the following CSS but it didn't work.
I already did this for a customer's cpg1.4.x gallery, but it's much harder than you expect. As Coppermine is quite complex you need to analyze the URL (file and parameters) to determine where exactly you're in the gallery at each point. Maybe the Curve theme makes this a little bit easier with its drop-down menus but I simply don't know.
Logged
Pages: [1]   Go Up
 

Page created in 0.044 seconds with 22 queries.