logo

Member
Member
Offline Offline
Posts: 46
SVN 658: Admin-News Add Category button displayed incorrectly w/FIX

What's going on is "Add Category" is too long for the button, who's width is defined in css. Since the css isn't set up to wrap (only repeats background on x), need to make the button wider.

This doesn't affect the Add Category button if there are categories, since that button's width is based on a table cell width, only when there isn't a category defined.

Open
Code:
Layouts/Admin/News.php


Find
Code:

   $body ='<div class="admin-panel2">'.theme('title', 'Notice').theme('start_content').'You must add a category before you can make any news items<div class="imagebutton"><a href="'.$settings['site_url'].'/index.php?act=admin&opt=news&type=category&amp;'.$authid.'">Add Category</a></div>'.theme('end_content').'</div>';


Replace With
Code:

   $body ='<div class="admin-panel2">'.theme('title', 'Notice').theme('start_content').'You must add a category before you can make any news items<div class="imagebuttonwide"  style="margin-left:auto;margin-right:auto;"><a href="'.$settings['site_url'].'/index.php?act=admin&opt=news&type=category&amp;'.$authid.'">Add Category</a></div>'.theme('end_content').'</div>';


Next, time to make the css for it

Open
Code:
themes/default/style.css


Find
Code:

.imagebutton a {
   color: #e7e7e7;
}
.imagebutton a:hover {
   color: #fff;
}


Replace With
Code:

.imagebuttonwide {
   background: url(images/button.png) repeat-x;
   width : 100px;
   padding : 5px 12px 4px 9px;
   position: static;
   font-size: 10pt;
   color: #e7e7e7;
   border-left: 1px solid #006db3;
   border-right: 1px solid #006db3;
   margin-bottom: 2px;
}
.imagebutton a, .imagebuttonwide a {
   color: #e7e7e7;
}
.imagebutton a:hover, .imagebuttonwide a:hover {
   color: #fff;
}

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: SVN 658: Admin-News Add Category button displayed incorrectly w/FIX

Fixed

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: SVN 658: Admin-News Add Category button displayed incorrectly w/FIX

This bug has been deemed [Fixed] by an eoCMS developer. If you dispute the Fix, please PM a developer, giving details of why. This topic can then be unlocked allowing for further discussion.

Please do not PM me requesting support or anything, use the forums, thats what they are here for

Jump to:


0.06 seconds Queries: 13