Modifying the menus Modifying the menus
 

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

Modifying the menus

Started by pitzerwm, September 18, 2009, 02:51:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pitzerwm

Just stating that I have been reading and playing with this for 5 hours.  Learned alot, but still lost.

I wanted to remove the "Last Comment" & "Top Rated" menu options.  I originally commented them out in Theme.inc.php but reading the docs, it is recommended against that.  I'm using Rainy day.  I read http://forum.coppermine-gallery.net/index.php/topic,24107.0/prev_next,prev.html#newhttp://forum.coppermine-gallery.net/index.php/topic,25197.0/prev_next,next.html#new.

I moved the parts of Sample as instructed and experimenting with the fruity template, it worked fine, but when I moved it over to Rainy Day (actually My_Rainy_Day) obviously the buttons were missing, so I brought in the info for the buttons:

Quote// 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;

I then get a blank page.  If I remove the one of the menu "groups" I get a "parsed .... extra }"  If I remove the other one I get something about template error, missing "custom lnk"

I know that it is a simple thing, but I am not seeing it.  Any help would be appreciated.

Website, http://www.autocareforum.biz/photogallery/

pitzerwm

Ok, I didn't learn anything, but I messed around copying and pasting in different directions and now it works.  I know that it was me missing some thing, but it now works as desired. ;D

I did want to say thanks to all of the people that have worked so hard and long to produce and support this great product. ;D