
01-14-2011, 03:25 PM
|
|
|
Join Date: Feb 2002
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by sung
4.0.8 seems to have changed something (CSS probably?) so now the tabs in the user profile don't look quite right.
Notice the extra space around the tab between the light and dark blue lines as I'm hovering over the tab in the screen shot.
I haven't had a chance yet to look to see what needs to be changed to fix, but iTrader also had this issue until its newest update, so maybe that could help in narrowing down the problem?
|
Fixed this myself, which requires 2 changes.
- Add a new template called: "dbtech_username_change_membertab_css"
with the following contents:
Code:
#usernamehistory-tab, #usernamehistory-tab a:hover {
height:25px;
display:inline;
background-color:transparent;
margin:0px;
padding:0px;
text-align:center;
border:none;
<vb:if condition="$stylevar['textdirection'] == 'rtl'">
float: {vb:stylevar left};
<vb:else/>
clear:both;
</vb:if>
}
a:hover#usernamehistory-tab {
background:transparent;
}
- Add this to the bottom of the "Member Profile: Add Username History Tab" plugin (the one that uses the member_build_blocks_start hook):
Code:
if (version_compare($vbulletin->options['templateversion'], '4.0.8', '>='))
{
$template_hook['memberinfo_css'] .= vB_Template::create('dbtech_username_change_membertab_css')->render();
}
|