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
Ban comments
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-02-01 12:48:43
SQL



ALTER TABLE users ADD `commentbanned` CHAR(3) NOT NULL DEFAULT 'no' AFTER `forumbanned`;






account-details.php



find





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




add after





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






find





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




add after





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






admin-modtasks.php



find





$forumbanned = sqlesc($_POST["forumbanned"]);




add after





$commentbanned = sqlesc($_POST["commentbanned"]);






find in the big query





forumbanned=$forumbanned,




change for





forumbanned=$forumbanned, commentbanned=$commentbanned,






comments.php



find





begin_frame(T_("COMMENTS"));






change for





if($CURUSER["commentbanned"]=="yes")

show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);

else

{

begin_frame(T_("COMMENTS"));






find





end_frame();

stdfoot();




change for





end_frame();

}

stdfoot();






torrents-details.php



find





begin_frame(T_("COMMENTS"));




change for





if($CURUSER["commentbanned"]=="yes")

show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);

else

{

begin_frame(T_("COMMENTS"));






find





end_frame();

stdfoot();




change for





end_frame();

}

stdfoot();

Unknown User
2013-02-08 02:17:11
thank you very much
Unknown User
2013-02-08 15:18:38
Thank you mate.
Unknown User
2013-06-14 19:20:35
working on 2.08

Thanks mate.
Unknown User
2013-06-14 22:07:34
Not worked for me..Doesnt show Error message when user is banned for comments..
Unknown User
2013-06-15 20:47:50
"zamunda, post: 90783":
Not worked for me..Doesnt show Error message when user is banned for comments..
You could prob try changing both in comments.php and torrents-details.php this
if($CURUSER["commentbanned"]=="yes")

to
if($CURUSER["commentbanned"]=="yes" || !CURUSER)

In theory would fix it too so have to be logged in to comment, witch is always an good thing LOL!
2024-05-15 11:09:05
Thanks.
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