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: MAIN_MENU question PLEASE HELP  (Read 3514 times)

0 Members and 1 Guest are viewing this topic.

detroitrides

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
MAIN_MENU question PLEASE HELP
« on: October 16, 2004, 06:20:16 am »

Hey whats up guys how you doin.  I have a problem with my main_menu, the normal links like album list, most viewed and so on...  They were on the side of the gallery but i moved them to the top, but the problem is they are going up and down and i want them to go horizontal.  I am running th them pinned_gray.  What do I need to do to change this??


THANKS FOR THE HELP!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: MAIN_MENU question PLEASE HELP
« Reply #1 on: October 16, 2004, 08:30:39 am »

remove the line breaks (or table <tr>s) in theme.php

Joachim
Logged

detroitrides

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: MAIN_MENU question PLEASE HELP
« Reply #2 on: October 16, 2004, 02:21:32 pm »

what program do i edit theme.php with?
Logged

detroitrides

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: MAIN_MENU question PLEASE HELP
« Reply #3 on: October 16, 2004, 02:24:17 pm »

nm im usin notepad but where in the script is the main_menu???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: MAIN_MENU question PLEASE HELP
« Reply #4 on: October 17, 2004, 12:52:34 pm »

edit themes/yourtheme/theme.php and find
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a><br><br>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a><br><br>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a><br><br>
<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
                        <a href="{MY_PROF_TGT}">{MY_PROF_LNK}</a><br><br>
<!-- END my_profile -->
<!-- BEGIN faq -->
                        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a><br><br>
<!-- END faq -->
<!-- BEGIN enter_admin_mode -->
                        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a><br><br>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
                        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a><br><br>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
                        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a><br><br>
<!-- END upload_pic -->
<!-- BEGIN register -->
                        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a><br><br>
<!-- END register -->
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a><br>
<!-- END logout -->
                        <br />
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a><br><br>
                        <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a><br><br>
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a><br><br>
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a><br><br>
                        <a href="{FAV_TGT}">{FAV_LNK}</a><br><br>
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
                </span>
EOT;
That's the main menu. To add items to it, add a line like
Code: [Select]
<a href="yourlink.html" title="title that appears when you mouse over the link">your link description</a><br><br>right after
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">

As you can see: all plain html, no fancy coding knowledge needed.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.