Jump to content

Important Announcement!

Torrenttrader v3.0.0 public beta will be a rewrite and touch up
*Add udp support for all popular udp trackers
*Change the mailing system to ensure a better users interface.
*Change the way mods are added they will know use a plugin system
*Change the admin system in order to improve security
*Change the member management system like ip-board style in order to
have more control over site this is a must as it annoying that you can't setup
different group permission
*Change Theme system in order to make like easy and add smarty in
*Add a option in admincp buy support package etc they pay £5/mo for support from the
tt crew and have us fix the issues this also help fund the forum just a idea
*Rewrite the forum in order to give uses a better ui
*Rewhite torrent-details by adding comment system auto image resize based on setting in admincp more ajax refresh means less kicking to do.
*Rewrite the way sidebar works using plugins rather then php files
*and many more stuff to come

*torrenttrader v2.0.8 mods will need convert or may not be supported

If you like to help us in anyway please Donate to help keep tt alive :)

[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
Guest_mostvotedplaya_*

Guest_mostvotedplaya_*
  • Guests
  • thanks
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

#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
  • 0 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