MyBB Community Forums

Full Version: Advanced Sidebox 2.1.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Css:

#asb_right_column_id td.thead {
text-align: center;
}

or

#asb_left_column_id td.thead {
text-align: center;
}
(2014-05-09, 03:13 PM)Tanweth Wrote: [ -> ]Sideboxes by default use the thead CSS class that MyBB uses for all table headers. To center the text, you'd have to modify your theme's global.css file (find .thead, then add "text-align: center;"). But that will center headers everywhere. If you just want sidebox headers centered, the easiest way to do it would be to go to the Templates section of your Admin CP, then Advanced Sidebox Templates, then asb_wrapped_sidebox, then find:

<td class="thead">

And replace with:

<td class="thead" style="text-align: center">

I'm not sure what you mean by "and in two languages present." Can you clarify that point?

Ahh... Man. This is great. Thanks. I was looking how to stylize the new functionality of thead links, but couldn't figure out where thead was coming from. I was looking in asb_latest_threads_thread template, not asb_wrapped_sidebox.

Added
.theadasb {
     background: #273a46 url(images/twilight/thead.png) top left repeat-x;
	color: #ffffff;
	padding: 8px;
}
.theadasb a:link, .theadasb a:visited {
        color: #00FF00;
        font-size: 14px;
	border-bottom: 2px dotted #0274BE;
}
.theadasb a:active, .theadasb a:hover {
        color: #00FF00 !important;
	border-bottom: 3px dotted #0274BE;
text-decoration: none !important;
}
.theadasb, .rounded_top {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

and changed the td class to theadasb. Butter.
(2014-05-09, 03:41 PM)Leefish Wrote: [ -> ]Css:

#asb_right_column_id td.thead {
text-align: center;
}

or

#asb_left_column_id td.thead {
text-align: center;
}

works great.

two language. the sidebox is in one language. i have the header in english or german, when logged in in german or english
I have a problem with the Staff_Online Box.

[attachment=31557]

As you see in my screenshot, the group image is so big, that it influences the height of the box, as well as teh size of the avatar.

Since I dont wanna change the groupimage, how can I resize the displayed group image in the box?

My staff_online template looks like this:

<tr>
					<td class="{$bgcolor}">
						<table cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
							<tr rowspan="2">
								<td style="text-align: center;" rowspan="2" class="{$bgcolor}" width="30%">
									<a href="{$staff_profile_link}"><img src="{$staff_avatar_filename}" alt="{$staff_avatar_alt}" title="{$staff_avatar_title}" width="110%"/></a>
								</td>
								<td style="text-align: center;" class="{$bgcolor}" width="10%">
									<a href="{$staff_profile_link}" title="{$staff_link_title}" width="10%">{$staff_username}</a>
								</td>
							</tr>
							<tr>
								<td style="text-align: center; text-size: 2" rowspan="1" width="10px">
									{$staff_badge}
								</td>
							</tr>
						</table>
					</td>
				</tr>

Thanks Smile
It's hardcoded in inc/plugins/asb/modules/staff_online_box.php module in $staff_badge variable:
$staff_badge = <<<EOF
<img src="{$staff_badge_filename}" alt="{$staff_badge_alt}" title="{$staff_badge_title}" width="{$staff_badge_width}"/>
EOF;

Scale it with CSS height or the outdated HTML height attribute.
(2014-05-09, 10:07 PM)Destroy666 Wrote: [ -> ]It's hardcoded in inc/plugins/asb/modules/staff_online_box.php module in $staff_badge variable:
$staff_badge = <<<EOF
<img src="{$staff_badge_filename}" alt="{$staff_badge_alt}" title="{$staff_badge_title}" width="{$staff_badge_width}"/>
EOF;

Scale it with CSS height or the outdated HTML height attribute.

Thanks a lot Shy
Hello, the Box "who is online", when activated, then showing avatar, although disabled
I just tested on 2.1 and it is working as expected. What version of ASB are you using?
hi wildcard! just a slight problem... after upgrading to the new version, my FB like box transferred from the sidebox to the footer... no matter what i do it wont go to the sidebar, any idea why? thanks in advance...

[Image: qZSeIXi.png]
ok, my fault. a file from newer version. as I can in the box can be displayed as the user?

my english is bad. use google translator