when i try to edit it, i get a blank page, while other blocks work fine with me
i use xoops 2.5.1a , server php 5.2
flipse wrote:
I don't have the answer but I am also curious howto resize the shoutbox. I want to use it on a crowded frontpage and would also like to remove the input box from the block. So you only see the scrollbox with shouts and have to open another box for shouting. The current shoutbox I find too big and dominant.
<center>
<iframe name="shoutFrame" width="<{$block.iframe_width}>" src="<{$xoops_url}>/modules/shoutbox/shoutframe.php" height="<{$block.iframe_height}>" frameborder="<{$block.iframe_border}>" scrolling="auto"></iframe>
</center>
<{if $block.may_guests_post==1}>
<font color="#990000">*</font><{$block.shoutbox_anonymous}>
<{/if}>
<{if $block.shoutbox_access != "no"}>
<form name="shoutform" action="<{$xoops_url}>/modules/shoutbox/shoutframe.php" method="post" style="this.style.margin=0px'" target="shoutFrame">
<{if $block.show_smileybar==1}>
<{$block.shoutbox_smibar}>
<{/if}>
<{if !$xoops_isuser && $block.guests_may_chname=='1'}>
<br /><b><{$smarty.const._MB_SHOUTBOX_NICK}>:</b><br /><input id="shoutnick" onFocus="shoutform.shoutnick.select();" type="text" name="username" size="18" maxlength="20" class="shttxt" value="<{$block.shoutbox_blockuser}>" />
<{else if !$xoops_isuser && $block.guests_may_chname=='0'}>
<input type="hidden" name="username" value="<{$block.shoutbox_blockuser}>" />
<{/if}>
<br /><b><{$smarty.const._MB_SHOUTBOX_SHOUT_TITLE}>:</b><br />
<{if $block.input_type=='1'}>
<script type="text/javascript">
function limitText(limitField) {
fldValue = limitField.value;
var limitNum = <{$block.text_maxchars}>;
var chars = limitNum - fldValue.length;
//alert (chars); // delete after testing
<{if $block.input_alerts=='1'}>
if (chars <= 0) {
alert ("You are trying to enter more than the limit of " + limitNum + " characters! ");
fldValue = fldValue.substring(0,limitNum-1)
window.document.shoutform.shoutfield.value = fldValue;
}
if (chars == 20) {
alert ("You are approaching the limit of " + limitNum + " characters and have only 20 characters left! ")
}
<{else}>
if (chars <= 0) {
fldValue = fldValue.substring(0,limitNum-1)
window.document.shoutform.shoutfield.value = fldValue;
}
<{/if}>
}
</script>
<textarea id="shoutfield" name="shouttext" rows="<{$block.textarea_rows}>" cols="<{$block.textarea_cols}>" maxlength="<{$block.text_maxchars}>" onKeyDown="limitText(shoutfield)";
onKeyUp="limitText(shoutfield)"></textarea>
<{else}>
<input type="text" id="shoutfield" name="shouttext" size="<{$block.text_linelength}>" maxlength="<{$block.text_maxchars}>" />
<{/if}>
<{if $block.captcha_caption}>
<br />
<b><{$block.captcha_caption}></b>
<br />
<{$block.captcha_render}>
<{/if}>
<br />
<input type="hidden" name="myid" value="<{$block.shoutbox_myid}>" />
<input type="submit" value="<{$smarty.const._MB_SHOUTBOX_SHOUT}>" />
<{if $xoops_isadmin}>
<input type="submit" name="clear" value="<{$smarty.const._MB_SHOUTBOX_CLEAR}>" onClick="return(confirm('<{$smarty.const._MB_SHOUTBOX_CONFIRMDEL}>'))"/>
<{/if}>
<br /><br />
<table width="100%" height="10px" cellpadding="0" cellspacing="0" style="border-top: 1px solid #8B898B; border-left: 1px solid #8B898B; border-right: 1px solid #000000; border-bottom: 1px solid #000000; padding-left: 2px; padding-right: 2px; font-size: xx-small;">
<tr>
<td valign="top" align="left" width="10%">
<form><input type="button" value="<{$smarty.const._MB_SHOUTBOX_REFRESH}>" onClick="parent.shoutFrame.location='<{$xoops_url}>/modules/shoutbox/shoutframe.php'"/></form>
</td>
<{if $block.popup==1}>
<td valign="top" align="left">
<form><input type="button" value="<{$smarty.const._MB_SHOUTBOX_POPUP}>" onClick="javascript:openWithSelfMain('<{$xoops_url}>/modules/shoutbox/popup.php','<{$smarty.const._MB_SHOUTBOX_TITLE}>',<{$block.popup_width}>,<{$block.popup_height}>);"/></form>
<{/if}>
</td>
<{if $block.block_autorefresh==1}>
<td valign="top" align="right">
<b><{$smarty.const._MB_SHOUTBOX_AUTOREFRESH}></b>
<input id="shoutrefresh" type="checkbox" name="shoutrefresh" value="checkbox" onchange="parent.shoutFrame.location.reload();" />
<select id="refreshtime" name="refreshtime">
<option value="10000">10 s</option>
<option value="20000" selected="selected">20 s</option>
<option value="40000">40 s</option>
<option value="60000">60 s</option>
<option value="120000">2 m</option>
<option value="240000">4 m</option>
<option value="480000">8 m</option>
</select>
</td>
<{/if}>
</tr>
</table>
<table><tr><td align="right" colspan="3" id="blockfooter" style="font-size : xx-small;">Powered by <a href="http://www.customvirtualdesigns.com" target="_blank">CVD</a></td></tr></table>
</form>
<{/if}>
<<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
color: #006196;
font-style: italic;
font-weight: bold;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<a href="#"><img src="staff.png" alt="staff" width="196" height="149" border="0" onclick="MM_openBrWindow('staffchat.html','LiveSupport','status=yes,scrollbars=yes,width=200,height=350')" /></a>
</body>
</html>>
voltan wrote:
yes
open style.css file in body tag you can find ((background )) or (( background-color)) and you can change color code