"Casey, post: 64456":How can i implement this into ajax shout?
works with cooly's ajax shout no problem.
"Casey, post: 64456":How can i implement this into ajax shout?
ALTER TABLE `users` ADD `shoutboxpos` enum('yes','no') NOT NULL default 'yes';
Quote:This is the correct code work?: /if ($site_config['SHOUTBOX']){if($CURUSER["shoutboxpos"] == 'no'){
begin_frame("Disabled");
echo "<center><b>You dont have permissions to use the Shoutbox! Contact the staff!</b></center>";
end_frame();
}
if($CURUSER || !$CURUSER){
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>';
end_frame();
}
}
require_once("backend/functions.php");
dbconn(false);Ajouter ensuite:if ($CURUSER["shoutboxpos"] == 'yes')
{
Ensuite Rechercher:
else{
echo T_("SHOUTBOX_DISABLED");
}
Ajouter ensuite:
}
else
{
echo "<h2> </h2><table width='100%' border='1' cellspacing='0' cellpadding='1'><tr class='f-title f-border'><td class=text>";
print("<center><b>Vous avez malheureusement été banni de la ShoutBox. Si vous pensez qu'il y s'agit d'une erreur, veuiller contacter un modérateur<br><br>Vous avez tenter de rentrer de force, veuillez respecter votre bannissement !<br>vous êtes le seul responsable de vos actes !</b></center>");
print("</td></tr></table><br>");
}
Passage à la 2.08:
Veuiller reprendre le tutoriel LegionFX. Les modifications se passent uniquement dans admin-modtasks.php
dans admin-modtasks.php
Rechercher:
$warned = sqlesc($_POST["warned"]);
Ajouter ensuite:
$shoutboxpos = sqlesc($_POST["shoutboxpos"]);
Rechercher:
SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated, forumbanned=$forumbanned, warned=$warned, modcomment=$modcomment, enabled=$enabled, invites=$invites WHERE id=$userid");
Après:
warned=$warned,
Rajouter:
shoutboxpos=$shoutboxpos,
$shoutboxpos = $_POST["shoutboxpos"];
,No users online
Torrents
Members
Online