Hi, i seem to need some help with a small script for the ToG Shoutbox since all i know from scripting is only enough to pass by. What i wanted to do was to only show the message and submit button to users logged in, while hidding it from who isn't.
This is the original code:
---------------------------------------------------------------------------------------------------------------------------------------------
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="/template/code/tog_main.css"/>
</head>
<body onload="window.scrollTo(0,99999)" id="msgBody">
{.$files.}
<form name="shout" action="/template/shoutbox/process_posts/" method="post" id="msgForm">
<center>
<input type="text" name="user" size="17" maxlength="30" value="{.if|%user%|%user%|{.!lv_guest.}.}" class="formInput" onclick="if(this.value=='{.!lv_guest.}')this.value=''"/><br/>
<input type="text" name="msg" size="17" maxlength="150" value="{.!lv_msg.}" class="formInput" id="msgInput" title="{.!lv_smileys.}: :) :D ;D ;) :S :$ :P :o :'( :( (h)" onclick="if(this.value=='{.!lv_msg.}')this.value=''"/><br/>
<input type="submit" value="{.!lv_shout.}" id="msgSubmit"/>
</center>
</form>
</body>
</html>
---------------------------------------------------------------------------------------------------------------------------------------------
Been trying for a few hours but can't seem to actually understand the code enough to do so.