forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: detroitrides 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!
-
remove the line breaks (or table <tr>s) in theme.php
Joachim
-
what program do i edit theme.php with?
-
nm im usin notepad but where in the script is the main_menu???
-
edit themes/yourtheme/theme.php and find
// 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 <a href="yourlink.html" title="title that appears when you mouse over the link">your link description</a><br><br>
right after// 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