Jump to content


[ADDON] Ban users from shoutbox


  • Please log in to reply
25 replies to this topic

#21
Guest_matchbox_*

Guest_matchbox_*
  • Guests
  • thanks
this mod not working on the 206 code at all any mod for it please only for 206 tt ?

#22
drean179

drean179

    Advanced Member

  • Pirates
  • PipPipPip
  • 36 posts
  • 0 thanks
Faille détecte:

shoutbox.php

Corrections:

dans shoutbox.php:

Rechercher:

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>&nbsp;</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,

Désolé je ne parle pas anglais.Si vous avez ne corriger pas la faille, certains petits malins pourront trouver l'astuce ;)

#23
spank-d

spank-d

    Advanced Member

  • Pirates
  • PipPipPip
  • 214 posts
  • 0 thanks
what a wast of time and no its not working for the 208

#24
mostvotedplaya

mostvotedplaya

    Unknown

  • Pirates
  • PipPipPip
  • 1,681 posts
  • 0 thanks
  • LocationEngland, UK
You must of done something wrong because the code in the first post should be ok for v2.08 with an exception of using sqlesc over

$shoutboxpos = $_POST["shoutboxpos"];
,

And using SQL_Query_exec
Software Engineer

Sucuri Inc.

Malware Scans, DDos protection & more...

#25
spank-d

spank-d

    Advanced Member

  • Pirates
  • PipPipPip
  • 214 posts
  • 0 thanks
sorry done the first page and its not working at all and add the SQL_Query_exec it would be a good idea to post up for the 208 mos many thax

#26
ValVanDeCamp

ValVanDeCamp

    Advanced Member

  • Pirates
  • PipPipPip
  • 77 posts
  • thanks
Thanks but with ajashout what is the code I must put and where ? Index or getshout ? to display shout for membres bans

sorry for my english :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users