[Solved]: hardwired theme? [Solved]: hardwired theme?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: hardwired theme?

Started by biggestanafan, June 04, 2008, 07:31:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biggestanafan

I edited the css and template before and had it how i liked, but since i did the upgrade i cant change the buttons or the admin menu to display how it was, the admin menu displays as the css styls it but it doesnt display in one row right on top of the gallery.. just displays a row up and in 2 rows?

http://anastaciadreams.com/gallery - the menu wasnt those blocks with navy backgrounds and an icon next to it, they were how i styled them

steveeh131047

Can you explain in more detail what you are trying to do with the buttons? And, if you want us to look at an Admin menu problem, post some test user account info.

biggestanafan

i just need to know how to change the buttons, as i see it can't be changed in style.css  and here is a cap of my current admin menu



i want the admin buttons to be on the same row like before, the the   user buttons (home, login, lougout.. etc..)  to be the same as the admin buttons

thanks for repyling  :)

biggestanafan

#3
[Edit GauGau] Replaced hotlinked image with attachment [/Edit]

i figured it, you have to edit theme.php  in  the hardwired folder . please can someone edit it to display my custom css instead of custom buttons please i canrtseem to figure it? those who have galleries will know :/

steveeh131047

Your problem is that in this theme "sys_menu" and "sub_menu" are styled using tables containing multiple image components, whereas "admin_menu" is styled using CSS.

Look in themes/hardwired/theme.php for the $template_sys_menu definition and the $template_sub_menu definition and delete all the <td></td> lines which contain the image definitions. Retain the <td></td> lines containing the {tokens}, but set the <td> class to class="admin_menu". That way all your sys_menu and sub_menu links will be styled the same as your admin_menu links which is what I think you are trying to achieve.

So, for example change:

$template_sys_menu = <<<EOT

                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN home -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>[/s]
                                        <td style="background: url(themes/hardwired/images/buttoncenter.gif);">
                                                <a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a>
                                        </td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0"  alt="" /></td>
<!-- END home -->


to:

$template_sys_menu = <<<EOT

                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN home -->
                        <td class="admin_menu"><a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a></td>
<!-- END home -->



and repeat this for all the blocks within the $template_sys_menu and the $template_sub_menu definitions.

Steve

steveeh131047

Oh, I forgot .....

..... to put all the Admin menu links on the same line, find the $template_gallery_admin_menu definition and remove the </tr><tr> tags here:

<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
                                </tr><tr>
<!-- BEGIN log_ecards -->


change to:

<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
                               
<!-- BEGIN log_ecards -->

biggestanafan