Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD]Bann user from sending pms
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-05-11 02:15:27
This mod allows u to ban a user from using the pm system

[size=14px]UPDATE 12/07/2011   for those having problems with the submit going back to no i forgot 1 code u need to put this in[/size]

Admin-Modtasks.php

Around line 72

Find

UPDATE users SET





Find



warned=$warned,



add after



mailbanned=$mailbanned,

ALTER TABLE `users` ADD `mailbanned` ENUM( 'yes', 'no' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'no'







Open account-details.php



find



$warned = $user["warned"] == 'yes';





Add Below



$mailbanned = $user["mailbanned"] == 'yes';





Find



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 bellow



print("<tr><td>mail Banned: </td><td align=left><input name=mailbanned value=yes type=radio" . ($mailbanned ? " checked" : "") . ">Yes <input name=mailbanned value=no type=radio" . (!$mailbanned ? " checked" : "") . ">No</td></tr>\n");





Open mailbox.php



Find



 $type = "Overview";

}





Add bellow



////////////////////////bann PM by foz ///////////////////////////////////////////////////

$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND mailbanned='no' LIMIT 1") or err('Tracker error (1)');

if (mysql_num_rows($subbanned) < 1){

stdhead("Pm Banned");

begin_frame("You are Banned from Sending Pm's ");

echo "<center><br><BR><B>A Admin has banned you from Sending Pm's.<br><b>";

echo "<br>If you have any complaints, contact us :<a href=mailto:". $site_config['SITEEMAIL'] .">". $site_config['SITEEMAIL'] ."</a><br><BR></center>";

end_frame();

stdfoot();

exit;

}



/////////////////////////////////////////////////////////////////////////////////////////////////





Open admin-modtasks.php



Find



warned='$warned',





Add after



mailbanned='$mailbanned',





find



$warned = $_POST["warned"];





after add



$mailbanned = $_POST["mailbanned"];
Unknown User
2009-05-16 15:21:03
thx m8

admin-modtasks.php

find

$warned = $_POST["warned"];

after add

$mailbanned = $_POST["mailbanned"];
Unknown User
2009-12-08 18:44:26
i can't for the life of me get this to work , i got the option to mail ban them , but if i click yes then submit, it just reverts back to no ......... any idea what i may of done wrong would be a help, THANKS ................. I'm using tt v 2.05
Unknown User
2009-12-12 22:21:13
And you did what's in the post above yours?
Unknown User
2009-12-16 18:11:14
Yes TS , i just went through everything exactly the same , replacing with copy and paste again , and still exactly the same ;)
Unknown User
2010-05-30 19:21:24
Thanks work number one :blink:
2010-10-18 23:54:39
Thanks :D
Unknown User
2010-10-28 12:12:46
Thanks for this one :D
Unknown User
2010-10-30 19:25:33
Thanks :D
Unknown User
2010-11-09 09:48:07
Thanks works fine :D
Unknown User
2010-11-13 01:46:41
thanks work fine
Unknown User
2011-04-15 18:57:16
Thanks for this  :lol:
Unknown User
2011-08-14 16:44:38
Hi Fozshell,

Thanx for your share of this MOD and more, for updating it!  Thought, I was wondering if these features could be added:

1) Banned from ADMIN PANEL with a REASON and WHO banned this user would be awesome! More, to have a SEARCH OPTION who got BANNED from PM 'ing!

2) A sort of automatic BAN wich would give back the user automatically the access. Has per example, 2 weeks notice!

3) Send automatic PM to the member that got banned!

4) Maybe a new PM could be send with the HEADER 1 DAY LEFT BEFORE RESTORED FROM BANNED... by example.

3) Lastly, but not the least, would be nice to REPLACE their AVATAR with any kind of IMAGE...

Thanx. Regards.

Cheers m8.
Unknown User
2011-08-22 12:30:35
tHAKX
Unknown User
2011-11-17 12:49:28
"Mush, post: 61309":
i can't for the life of me get this to work , i got the option to mail ban them , but if i click yes then submit, it just reverts back to no ......... any idea what i may of done wrong would be a help, THANKS ................. I'm using tt v 2.05

yes same here :)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728