coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Betti ^.^ on November 26, 2006, 11:52:42 PM

Title: problemes on skinning my navigation
Post by: Betti ^.^ on November 26, 2006, 11:52:42 PM
I'd like to use images for sys menu and sub menu aswell.
Here's what my theme.php looks like

define('THEME_HAS_NO_SYS_MENU_BUTTONS', 1);
define('THEME_HAS_NO_SUB_MENU_BUTTONS', 1);



// sys_menu
$template_sys_menu = <<<EOT

<table border="0" cellpadding="0" cellspacing="0" width="380" align="center">
  <tr>
    <td width="33%" align="center"><a href="{HOME_TGT}"><img src="images/home.png" border="0" width="98" height="18"></a></td>
<!-- BEGIN my_gallery -->
    <td width="33%" align="center"><a href="{MY_GAL_TGT}"><img src="images/gallery.png" border="0" width="98" height="18"></a></td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
    <td width="34%" align="center"><a href="{MEMBERLIST_TGT}"><img src="images/memberlist.png" border="0" width="98" height="18"></a></td>
<!-- END allow_memberlist -->
  </tr>
  <tr>
<!-- BEGIN enter_admin_mode -->
    <td width="33%" align="center"><a href="{ADM_MODE_TGT}"><img src="images/admin.png" border="0" width="98" height="18"></a></td>
<!-- END enter_admin_mode -->
<!-- BEGIN leave_admin_mode -->
    <td width="33%" align="center"><a href="{USR_MODE_TGT}"><img src="images/usermode.png" border="0" width="98" height="18"></a></td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
    <td width="34%" align="center"><a href="{UPL_PIC_TGT}"><img src="images/upload.png" border="0" width="98" height="18"></a></td>
<!-- END upload_pic -->
  </tr>
  <tr>
<!-- BEGIN register -->
    <td width="33%" align="center"><a href="{REGISTER_TGT}"><img src="images/register.png" border="0" width="98" height="18"></a></td>
<!-- END register -->
<!-- BEGIN login -->
    <td width="33%" align="center"><a href="{LOGIN_TGT}"><img src="images/login.png" border="0" width="98" height="18"></a></td>
<!-- END login -->
<!-- BEGIN logout -->
    <td width="34%" align="center"><a href="{LOGOUT_TGT}"><img src="logout.png" border="0" width="98" height="18" /></a></td>
<!-- END logout -->
  </tr>
</table>
EOT;



//sub_menu
$template_sub_menu = <<<EOT
<table border="0" cellpadding="0" cellspacing="0" width="380" align="center">
  <tr>
<!-- BEGIN album_list -->
    <td width="33%" align="center"><a href="{ALB_LIST_TGT}"><img src="images/index.png" border="0" width="98" height="18"></a></td>
<!-- END album_list -->
    <td width="33%" align="center"><a href="{LASTUP_TGT}"><img src="lastuploads.png" border="0" width="98" height="18"></a></td>
    <td width="34%" align="center"><a href="{TOPN_TGT}"><img src="mostviewed.png" border="0" width="98" height="18"></a></td>
  </tr>
  <tr>
    <td width="33%" align="center"><a href="{TOPRATED_TGT}"><img src="toprated.png" border="0" width="98" height="18"></a></td>
    <td width="33%" align="center"><a href="{FAV_TGT}"><img src="myfavs.png" border="0" width="98" height="18" /></a></td>
    <td width="34%" align="center"><a href="{SEARCH_TGT}"><img src="search.png" border="0" width="98" height="18"></a></td>
  </tr>
</table>

EOT;


I got the following error message

Template error
Failed to find block 'my_profile'(#(<!-- BEGIN my_profile -->)(.*?)(<!-- END my_profile -->)#s) in :

<table border="0" cellpadding="0" cellspacing="0" width="380" align="center">
  <tr>
    <td width="33%" align="center"><a href="{HOME_TGT}"><img src="images/home.png" border="0" width="98" height="18"></a></td>
<!-- BEGIN my_gallery -->
    <td width="33%" align="center"><a href="{MY_GAL_TGT}"><img src="images/gallery.png" border="0" width="98" height="18"></a></td>
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
    <td width="34%" align="center"><a href="{MEMBERLIST_TGT}"><img src="images/memberlist.png" border="0" width="98" height="18"></a></td>
<!-- END allow_memberlist -->
  </tr>
  <tr>

<!-- BEGIN leave_admin_mode -->
    <td width="33%" align="center"><a href="{USR_MODE_TGT}"><img src="images/usermode.png" border="0" width="98" height="18"></a></td>
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic -->
    <td width="34%" align="center"><a href="{UPL_PIC_TGT}"><img src="images/upload.png" border="0" width="98" height="18"></a></td>
<!-- END upload_pic -->
  </tr>
  <tr>
<!-- BEGIN register -->
    <td width="33%" align="center"><a href="{REGISTER_TGT}"><img src="images/register.png" border="0" width="98" height="18"></a></td>
<!-- END register -->

<!-- BEGIN logout -->
    <td width="34%" align="center"><a href="{LOGOUT_TGT}"><img src="logout.png" border="0" width="98" height="18" /></a></td>
<!-- END logout -->
  </tr>
</table>


Please let me know what I done wrong!
Title: Re: problemes on skinning my navigation
Post by: Sami on November 27, 2006, 07:23:29 AM
Always read the stickies ,
http://forum.coppermine-gallery.net/index.php?topic=26897.0
Title: Re: problemes on skinning my navigation
Post by: Betti ^.^ on November 29, 2006, 02:59:27 PM
geez, terribly sorry! I think next time I must put on my glasses :D