Welcome, Guest. Please Login or Register.
April 12, 2021, 05:31:29 PM
Home Help Search Login Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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



Prevent certain members from posting [v1.0]
« on: January 10, 2004, 01: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:

Code: [Select]
  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.

Code: [Select]
  $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 10, 2004, 09:02:48 PM by jeff124 » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: 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.0.15 | SMF © 2017, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 34 queries.