Code:
function getshoutbox($sid) { $shbox .= "<form action=\"genproc.php?action=shout&sid=$sid\" method=\"post\"><center>"; $shbox .= "<b></b>"; $lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id FROM ibwf_shouts ORDER BY shtime DESC LIMIT 3")); $shnick = getnick_uid($lshout[1]); $shbox .= "<i><a href=\"index.php?action=viewuser&sid=$sid&who=$lshout[1]\">".$shnick."</a></i> - "; $text = parsepm($lshout[0], $sid); $shbox .= $text; $shbox .= "<br/>"; $shbox .= "<a href=\"lists.php?action=shouts&sid=$sid\">more</a>"; if (ismod(getuid_sid($sid))) { $shbox .= " <a href=\"modproc.php?action=delsh&sid=$sid&shid=$lshout[2]\">delete</a>"; } if(getplusses(getuid_sid($sid))<75) { $shbox .= "<br/>You need at least 75 plusses to shout!"; }else{ $shbox .= "<br/>ShoutBox Message:<br/><input name=\"shtxt\" maxlength=\"100\"/><br/>"; $shbox .= "<input type=\"Submit\" name=\"shout\" Value=\"Add Shout\"></center></form>"; } return $shbox; }
Comment