Navagation buttons (curve theme) Navagation buttons (curve theme)
 

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

Navagation buttons (curve theme)

Started by zappaDPJ, September 30, 2011, 11:05:02 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

zappaDPJ

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.

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

zappaDPJ

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

Jeff Bailey

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

zappaDPJ

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/

ΑndrĂ©

Quote from: zappaDPJ on September 30, 2011, 11:05:02 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
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}

and replace with
                    {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.



Quote from: zappaDPJ on September 30, 2011, 11:05:02 PM
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.