Tested and working 100 %
SQL CODE
Below
Thanks TBDEV for the idea.
And Thanks to all
SQL CODE
ALTER TABLE `users` ADD `shoutboxpos` enum('yes','no') NOT NULL default 'yes',Open account-details.phpBelow
print("<tr><td>Warned: </td><td align=left><input name=warned value=yes type=radio" . ($warned ? " checked" : "") . ">Yes <input name=warned value=no type=radio" . (!$warned ? " checked" : "") . ">No</td></tr>\n");
Add
print("<tr><td class=rowhead>Use Shoutbox</td><td colspan=2 align=left><input type=radio name=shoutboxpos value=yes" .($user["shoutboxpos"]=="yes" ? " checked" : "") . ">Yes <input type=radio name=shoutboxpos value=no" .($user["shoutboxpos"]=="no" ? " checked" : "") . ">No</td></tr>\n");
Open admin-modtasks.php
Below
$warned = $_POST["warned"];
Add
$shoutboxpos = $_POST["shoutboxpos"];
Find
mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar',
After
warned='$warned',
Add
shoutboxpos='$shoutboxpos',
Open Index.php
Find
if ($site_config['SHOUTBOX']){
begin_frame("Shoutbox");
echo '<IFRAME name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" width=350 scrolling="no" align="middle"></IFRAME>';
echo "(Shoutbox will auto-refresh every 5 minutes)<BR>";
end_frame();
}
Replace By
if ($CURUSER["shoutboxpos"] == 'yes')
{
if ($site_config['SHOUTBOX']){
begin_frame("Shoutbox");
echo '<IFRAME name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" width=350 scrolling="no" align="middle"></IFRAME>';
echo "(Shoutbox will auto-refresh every 5 minutes)<BR>";
end_frame();
}
}
else
{
echo "<h2> </h2><table width='100%' border='1' cellspacing='0' cellpadding='1'><tr><td class=text>";
print("<center><b>You dont have permissions to use the Shoutbox! Contact the staff!</b></center>");
print("</td></tr></table>");
}Thanks TBDEV for the idea.
And Thanks to all