coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Calman on January 10, 2016, 09:52:31 PM

Title: Modify Menu Options?
Post by: Calman on January 10, 2016, 09:52:31 PM
Hi folks,

New to Coppermine, so a lot to figure out and become accustomed to.  So far, I've bridged with phpBB, so working on the "visual" aspect of coding right now.

One question I have at this venture? ... how/where can I modify the main menu options? ... as I would like to add a link back to the forum end of things (preferably before the Home link, or within it).

I looked at the theme.php and some CSS files, but couldn't lock down the right area to find the results I am after.  New links were appearing at the end of the menu line, without the default CSS button style.

Any help appreciated!

Kind Regards,
Cal :)
Title: Re: Modify Menu Options?
Post by: allvip on January 11, 2016, 01:23:43 AM
Custom menu link name and Custom menu link URL http://coppermine-gallery.net/demo/cpg15x/docs/en/configuration.htm#admin_theme_custom_lnk_name (http://coppermine-gallery.net/demo/cpg15x/docs/en/configuration.htm#admin_theme_custom_lnk_name)
Title: Re: Modify Menu Options?
Post by: Calman on January 11, 2016, 01:32:29 AM
Thank you so much!

Ironically, I just figured out my issue, as your post came in.  I simply wasn't clicking on "Config" itself, rather, the dropdown options within it! DUH. lol

So, I've now managed to add a new option/link.  I just need to figure out how to place it on the extreme left, before "Home" .... but it's clear progress so far!

Kind Regards,
Cal :)
Title: Re: Modify Menu Options?
Post by: allvip on January 11, 2016, 02:07:06 AM
It may not be possible but you can use basic html instead of Custom menu link option.
Example for the curve theme:

Open themes/curve/template.html

FIND


            <div id="main_menu">     
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}
            </div>


REPLACE WITH


            <div id="main_menu">
            <a href="YOUR FORUM LINK">Forum</a>       
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}
            </div>


Then put it in the right position with css.
Title: Re: Modify Menu Options?
Post by: Calman on January 11, 2016, 07:32:48 PM
Many thanks for the useful info allvip!

I'll look into this soon and let you know how I get on - at least for now, I am happy that I now have a link back to the forum, 3-4 items in from the left.

Kind Regards,
Cal :)