How do i Move the Sys Menu items onto the same line as Sub Menu Items How do i Move the Sys Menu items onto the same line as Sub Menu Items
 

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

How do i Move the Sys Menu items onto the same line as Sub Menu Items

Started by stan85in, November 26, 2010, 07:56:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stan85in

I am using Rainy_day Theme version 1.5 and i need to move the sys menu items (Home, Register, Login) onto the same row line as Sub Menu (Albums, Last Uploads, Last Comments, Search). Also, i would like to add some more buttons onto the sub menu line (Besides the Search buttons). I read the coppermine documentation but no answer so far. The Minicms plugin available works for version 1.4 only and not for version 1.5. Any help would be appreciated.

My Theme.php looks this:

<?php

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_HAS_PROGRESS_GRAPHICS', 1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;

?>

Αndré

You have to edit the template.html file. Search for {SYS_MENU} and {SUB_MENU}.

stan85in

I placed {SYS MENU} and {SUB MENU} beside each other in template.html but they are both appearing on a different line. Is there a way to put them in the same line besides each other?

Also, is there a way i can modify the sys_menu items (Home, Register, Login) and the sub_menu items (Albums, Last uploads, Last viewed, Search), there seem to be no way to change it for this rainy_day theme. What file should i need to edit. Any help is appreciated.

Jeff Bailey

Please post a link and attach your theme to your next post as a zip.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

stan85in

I finally found a way to edit the themes settings for rainy day theme for the {Sys_menu} and {Sub_Menu}. As you will notice that when you open http://yourwebsite/themes/rainy_day/theme.php, it consist only of several few lines as below:

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_HAS_PROGRESS_GRAPHICS', 1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This theme.php doesn't have the rest of the information to modify for {Sys_menu} and {sub_menu}, so instead the solution is to go to http://yourwebsite/include/themes.inc.php and you will see all the codes contained. Look for{sys_menu} and {sub_menu} settings and change accordingly. But remember to make a backup of your Themes.inc.php first before modifying the file.

Αndré

Quote from: stan85in on November 29, 2010, 03:39:51 AM
instead the solution is to go to http://yourwebsite/include/themes.inc.php and you will see all the codes contained. Look for{sys_menu} and {sub_menu} settings and change accordingly.
Quote from: http://documentation.coppermine-gallery.net/en/theme.htm#theme_engineyou mustn't edit includes/themes.inc.php, under no circumstances, as all your changes will be lost when upgrading in the future. Everything that possibly could be accomplished by editing include/themes.inc.php can be accomplished by editing themes/yourtheme/theme.php as well - stuff defined in your custom theme will take precedence over the core theme functions.