problemes on skinning my navigation problemes on skinning my navigation
 

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

problemes on skinning my navigation

Started by Betti ^.^, November 26, 2006, 11:52:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Betti ^.^

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!

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Betti ^.^

geez, terribly sorry! I think next time I must put on my glasses :D