26.05.2006, 08:26
Okay also, wie schon gesagt im index Template musst du $shoutbox über <if($showuseronline==1)> machen.
Und das shoutbox Template ersetzt du mit:
Bin mir aber nicht sicher ob es funktioniert. Könnte aber sein
Und das shoutbox Template ersetzt du mit:
Code:
<script type="text/javascript" src="./js/bbcode.js"></script>
<script type="text/javascript">
function clear() {
document.bbform.message.value='';
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
function mboxshow(id) {
if(document.getElementById)
document.getElementById(id).style.display = "inline";
}
function mboxhide(id) {
if(document.getElementById)
document.getElementById(id).style.display = "none";
}
//-->
</script>
<tr>
<td>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr >
$mboxsmiliesleft
<td class="tableb"style="width:97%" align="center">
<table style="width:100%;">
<tr><td style="padding:3px;text-align:center;" colspan="2">
<if($wbbuserdata['xy_can_shoutbox_admin'])>
<then>
<form name="kill" action="xy_megashoutbox.php" method="post" target="chat">
<input type="hidden" name="shouts" value="kill" >
<input type="hidden" name="sid" value="$session[hash]" />
<input type="submit" value="{$lang->items['LANG_XY_MEGASHOUTBOX_KILLALLFORM']}" style="vertical-align:center" />
</form>
</then>
<else>
<br />
</else>
</if>
<iframe name="chat" src="xy_megashoutbox.php?page_shout=chat&setting=$setting&comment=$comment{$SID_ARG_2ND}" style="width:100%" height="150"></iframe>
</td></tr>
<tr>
<td>
<form name="bbform" action="xy_megashoutbox.php" method="post" target="chat" onsubmit="setTimeout('clear()',100)">
<input type="hidden" name="setting" value="save" />
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="page_shout" value="chat" />
<input type="button" value="{$lang->items['LANG_XY_MEGASHOUTBOX_SPECIALFORM']}" onclick="javascript:mboxshow('mboxspecial');" class="input" ondblclick="javascript:mboxhide('mboxspecial');" />
$mbox_specialmenu
</td>
<td nowrap="nowrap"> <a href="xy_megashoutbox.php?page_shout=chat{$SID_ARG_2ND}" target="chat"><img src="./sbox_img/refresh1.gif" id="mboxrefresh" border="0" style="vertical-align:middle" alt="{$lang->items['LANG_XY_MEGASHOUTBOX_REFRESH']}" title="{$lang->items['LANG_XY_MEGASHOUTBOX_REFRESH']}" onmouseover="document.images.mboxrefresh.src='sbox_img/refresh.gif';" onmouseout="document.images.mboxrefresh.src='sbox_img/refresh1.gif';" /></a> <input type="text" name="message" size="65" maxlength="$xy_megaboxinputlength" /> <input type="submit" class="input" value="{$lang->items['LANG_XY_MEGASHOUTBOX_SHOUTFORM']}" />
</form>
</td>
</tr>
</table>
<div style="text-align:center"><span class="smallfont"><a href="http://www.xundy.com" target="_blank" style="text-decoration:none"><b>XundY Megashoutbox</b>© V1.2</a></span></div>
</td>
$mboxsmiliesright
</tr>
</table>
</td></tr>
Bin mir aber nicht sicher ob es funktioniert. Könnte aber sein