coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: glennk on June 08, 2009, 11:18:33 PM

Title: [Solved]: Adding another menu.
Post by: glennk on June 08, 2009, 11:18:33 PM
How can I add another menu to the classic theme ?? Whenever I add the code and then upload it, I get a blank page.
Title: Re: Adding another menu.
Post by: Nibbler on June 08, 2009, 11:25:03 PM
Coppermine has a custom menu option in config. If you want to add more than one there's an FAQ thread about that. If you get a blank page you made a mistake in your code. Unless you post that code we can't really help you.
Title: Re: Adding another menu.
Post by: glennk on June 08, 2009, 11:37:45 PM
Quote
      </table>
      <img src="images/spacer.gif"
alt="" height="15" width="1" /> <br />
      <table align="center" border="0"
cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr>
            <td align="left"
valign="top"> {ADMIN_MENU}
            <ul>
              <li><a
href="http://www.whitbyseaanglers.co.uk/">WSA</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/hall-of-fame/index.php">Hall
Of Fame</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/members-gallery/index.php">Gallery</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/kayak-fishing">Kayak
Fishing</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/kayak-fishing-reviews/">Kayak
Reviews</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/boat-fishing-index.php">Boat</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/fishing-bait.php">Bait</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/north-east-fishing-marks-index.php">Marks</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/uk-sea-fish.php">Fishing</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/fishing-tackle.php">Tackle</a></li>
              <li><a
href="http://www.whitbyseaanglers.co.uk/north-east-fishing-news/">News</a></li>
            </ul>
{GALLERY} </td>
          </tr>
        </tbody>
      </table>
Title: Re: Adding another menu.
Post by: Nibbler on June 08, 2009, 11:51:14 PM
You've messed up the script tag. Change


<script type="text/javascript" src="scripts.js" />


back to


<script type="text/javascript" src="scripts.js"></script>


Also, you'd be better off renaming the theme as described in the docs rather than modifying classic.
Title: Re: Adding another menu.
Post by: glennk on June 08, 2009, 11:56:18 PM
thankyou for that. I wonder how that got messed up as I never touched it. It must be the editor.

Thanks for the suggestion about renaming the template. Why is this good practice ??
Title: Re: Adding another menu.
Post by: Nibbler on June 09, 2009, 12:02:24 AM
Avoid using editors that automatically change code. You don't need any fancy editor for Coppermine; the simpler the better.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename

The next time you update Coppermine you are likely to overwrite your changes.
Title: Re: Adding another menu.
Post by: phill104 on June 09, 2009, 03:14:39 AM
Please mark your future threads as solved once you have the answer. I helps other users when searching for similar problems. See this thread for info on how to do that.

http://forum.coppermine-gallery.net/index.php/topic,54109.0.html