forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: zappaDPJ on September 30, 2011, 11:05:02 pm

Title: Navagation buttons (curve theme)
Post by: zappaDPJ 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.
Title: Re: Navagation buttons (curve theme)
Post by: zappaDPJ 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.
Title: Re: Navagation buttons (curve theme)
Post by: Jeff Bailey 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?
Title: Re: Navagation buttons (curve theme)
Post by: zappaDPJ 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/
Title: Re: Navagation buttons (curve theme)
Post by: Αndré 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.