MyBB Community Forums

Full Version: How to do this change in the MyBB portal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just like here: http://spicefuse.com/
The scroll thingy. Is it possible?
What scrolliing things? everything looks default too me.
This one:
Oh you mean the scrolling announcement boxes? Not quite sure but it wont be hard to do.

I'll have a pop at it an get back to you.

Ok go into your ACP > Templates > Portal > Portal Announcements.. And replace with this.

<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">

	<tr>

{$avatar}
		<td class="trow1">
<p>
				<div style="width:100%;height:100px;overflow:auto;border-width:1px;border-color:fff;border-style:solid;">
{$message}</div>
			</p>
			{$post['attachments']}
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2" valign="bottom">
			<span class="smalltext">
				<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
			</span>
		</td>
	</tr>

</table>
</td>
</tr>
</table>
<br />

You need to edit this line though to match you theme + size.. whatever else.

<div style="width:100%;height:100px;overflow:auto;border-width:1px;border-color:fff;border-style:solid;">
Thank you Doobie. I'll check it right now.

EDIT: Can't you make it look more like SpiceFuse?
Here's the final result. But thanks for helping.
You need to edit this line to match the rest of your theme.
<div style="width:100%;height:100px;overflow:auto;border-width:1px;border-color:fff;border-style:solid;">
Oh right, let's see what I can do.
btw can you post the code again between [php] tags please?
Try adjusting the height and width works for me fine.
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">

    <tr>

{$avatar}
        <td class="trow1">
<p>
                <div style="width:100%;height:100px;overflow:auto;border-width:1px;border-color:fff;border-style:solid;">
{$message}</div>
            </p>
            {$post['attachments']}
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2" valign="bottom">
            <span class="smalltext">
                <a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
            </span>
        </td>
    </tr>

</table>
</td>
</tr>
</table>
<br />