Welcome, Guest. Please Login or Register.
April 19, 2024, 10:31:37 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Prevent certain members from posting [v1.0] « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Prevent certain members from posting [v1.0]  (Read 3556 times)
jeff124
Noobie
*
Posts: 15


Prevent certain members from posting [v1.0]
« on: January 10, 2004, 06:30:01 PM »
Reply with quote

This is actually a very simple mod, and may have already been done before. ;)

If it was, sorry. :P

Okay, here are the steps.  Open Post.php in your favorite code editor, and then find this line:


  if ($board == '' )


After you find that, put the following code 2 lines below it.  The parts in bold are the parts that need to be edited.

Quote
// this is where we prevent certain members from posting
// it is simple to do, but the person that isn't allowed to post wont know ;-)
 
$nopost[ 0 ] = "username";
$nopost_length = count($nopost);
for($x=0;$x<$nopost_length;$x++){
if($username==$nopost[$x]){
fatal_error("Sorry, but your posting privilages have been suspended.  Please contact the administrator of this forum for further details");
}}




After you do that, you can add more members, just copy this line and increment the number 0 by 1.


  $nopost[ 0 ] = "username";


Note that you have to copy and paste this line with the new number each tiem you want to block a member. ;-)


Notes
Do NOT enter the users display name!  You must enter their username in the quotes.  Otherwise they will still be allowed to post.  Also, I would advise that before taking the following steps, that you take a moment to backup Post.php.

Have fun.

Jeff. :)
« Last Edit: January 11, 2004, 02:02:48 AM by jeff124 » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Prevent certain members from posting [v1.0] « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 21 queries.