Hello All,
I have begun exploring the wonderful world of XOOPS theme editing :) Everything was going great untill I wanted to add a top and bottom graphic to a block to make it look more professional. I then wanted to change the background color of the block inbetween those two graphics. I want all content to be shown inbewteen those two graphics. Also, where it says Main Menu in text with default settings, I would like that to be replaced by the top graphic completely. Here is the code from the admin panel of editing the block for main menu. The code I added is in bold.
======
<table cellspacing="0">
<tr>
<td><img src="<{$xoops_imageurl}>/themes/images/phpkaox/block_top.gif" alt="" align="left" /></td> <td id="usermenu">
<a class="menuTop" href="<{$xoops_url}>/user.php"><{$block.lang_youraccount}></a>
<a href="<{$xoops_url}>/edituser.php"><{$block.lang_editaccount}></a>
<a href="<{$xoops_url}>/notifications.php"><{$block.lang_notifications}></a>
<a href="<{$xoops_url}>/user.php?op=logout"><{$block.lang_logout}></a>
<{if $block.new_messages > 0}>
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}></span>)</a>
<{else}>
<a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}></a>
<{/if}>
<{if $xoops_isadmin}>
<a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}></a>
<{/if}>
</td>
</tr>
</table>
============================
I am assuming this is wrong since when I press view, nothing happens and it reloads the page. It is using css from looks of it by the "<td id="usermenu">
<a class="menuTop" "
commands, but I am not sure which css file it is using. Maybe I need to edit the .css files associated with blocks to get it to work correctly? Please help! Oh, one other thing, I want the width of the main menu to only be as wide as the image itself. Here is a picture of what I am trying to make it look like:
EDIT:After thinking this over, I decided this is not the best way to go about this. Have the image constrict how wide the menu would be is not smart. If you take a look at
gooberhead.net she has it with two corner images and a middle background that can have text on it. I want to know how to do that.