10.05.2014, 10:10
Trochę to ominąłem, ale zobacz:
Kod PHP:
<table border="0" cellspacing="2" cellpadding="10" class="tborder" style="opacity: 1;">
<thead>
<tr>
<td class="thead">
<div class="thead" style="height: 40px;">
<span class="smalltext">
<strong>Shoutbox</strong>
</span>
<span style="float:right;">
<a href="{$mybb->settings[bburl]}/index.php?action=shoutbox_archive" style="color: white;">« {$lang->dvz_sb_archivelink}</a>
</span>
</div>
</td>
</tr>
</thead>
</table>
<div id="shoutbox">
<div class="panel-away" style="display:none"><button class="button" onclick="dvz_shoutbox.setBack()">{$lang->dvz_sb_away_button}</button>{$lang->dvz_sb_away}</div>
{$dvz_shoutbox_panel}
<div id="shoutbox_data" style="height:{$mybb->settings[dvz_sb_height]}px; overflow:auto;"></div>
</div>
<script type="text/javascript" src="jscripts/dvz_shoutbox.js"></script>
<script>
now = new Date;
dvz_shoutbox.userLastAction = now.getTime();
dvz_shoutbox.interval = {$mybb->settings[dvz_sb_interval]};
dvz_shoutbox.antiflood = {$mybb->settings[dvz_sb_antiflood]};
dvz_shoutbox.maxShouts = {$mybb->settings[dvz_sb_num]};
dvz_shoutbox.awayTimeout = {$mybb->settings[dvz_sb_away]}*1000;
dvz_shoutbox.lang = ['{$lang->dvz_sb_delete_confirm}', '{$lang->dvz_sb_antiflood}'];
{$dvz_shoutbox_js}
dvz_shoutbox.checkForMessages();
</script>