[BETA] Deny Permission

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
starfoxtj
Registered User
Posts: 3714
Joined: Tue Jul 29, 2003 2:01 am
Contact:

Post by starfoxtj »

Hmmm...the link to download the mod is not active :(

Do you know if the location has been moved? If so could you please let me know.

Thanks
theanimewizard
Registered User
Posts: 646
Joined: Tue Jul 08, 2003 9:24 pm
Contact:

Post by theanimewizard »

This mod is to deny a person from accessing a forum right? more of a forum ban than banned all together?

if it is, this will be great for teachin spammers some lessons =)
User avatar
the-snake
Registered User
Posts: 41
Joined: Fri Aug 08, 2003 6:41 pm
Location: Sweden

Post by the-snake »

Hi!

Looking for this me too.... anyone got it?
pm it to me or send me an mail with it or point me to new location would be really frindly and nice :)

Know there are a lot of really friendly ppl in the world pls pls someone i want it badly :)
canver.net
Registered User
Posts: 9
Joined: Sat Jun 21, 2003 5:42 pm
Location: 127.0.0.1
Contact:

Post by canver.net »

http://www.orvp.net/deny_permission_0_6_2.txt --> ERROR 404 ?

Okey, now work.
Last edited by canver.net on Sun Nov 16, 2003 10:25 pm, edited 1 time in total.
creativeminds
Registered User
Posts: 174
Joined: Tue May 20, 2003 12:11 am
Contact:

Post by creativeminds »

canver.net wrote: http://www.orvp.net/deny_permission_0_6_2.txt --> ERROR 404 ?


Works for me :mrgreen:
Game Central <-- Cool site! Please visit.
GC Premod
User avatar
the-snake
Registered User
Posts: 41
Joined: Fri Aug 08, 2003 6:41 pm
Location: Sweden

Post by the-snake »

Hi me to now got the mod now :)
urk
Registered User
Posts: 7
Joined: Mon Nov 03, 2003 10:01 pm

Post by urk »

Can you modify this mod to do the EXACT opposite?

I want to make a post in a forum and be able to assign "who can reply by username."

In other words, I have 2500 people on my messageboard. But if I want to have only 4 people reply to the post but have everyone view it...THAT's what I want...

Any way to do this?

Thanks

-Urk
urk
Registered User
Posts: 7
Joined: Mon Nov 03, 2003 10:01 pm

Post by urk »

bump
Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet »

Anyone have this MOD or a working link to download?


PLEASE?
...
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3511
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

User avatar
Rakshasas
Registered User
Posts: 54
Joined: Thu Jan 16, 2003 11:19 pm
Location: Ontario, Canada

Post by Rakshasas »

Question is, does this work fine with 2.0.14?

If it does, then I love this mod!
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3511
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

It does.
User avatar
Rakshasas
Registered User
Posts: 54
Joined: Thu Jan 16, 2003 11:19 pm
Location: Ontario, Canada

Post by Rakshasas »

I'll have to try it sometime soon then.

And because google wont cache it forever, I'll paste it here

Code: Select all

##############################################################
## MOD Title: Deny Permsission
## MOD Author: LifeIsPain <brian@orvp.net> (Brian Evans)
## MOD Description: Adds an option to a users or groups permissions settings to deny them access
##                  to a given setting. This will override any setting that would give them
##                  permission to do that action. The folder permission level must be set to
##                  Private / ACL for you to deny someone permission. Board Adminis will not be
##                  denied rights of the group.
## MOD Version: 0.6.2
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: includes/auth.php, language/lang_english/lang_admin.php, admin/admin_ug_auth.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes: NEW: Board Admins can be set not to be banned with the rest of the group. If you
##               need to be able to ban yourself (remember, any admin can unban himself) for some
##               reason, use the commands under [ OR ] for legacy support If you need to ban a
##               user from a setting normally for registered users, install Niels Chr. Denmark's
##               Auto Group mod as well.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/auth.php

#
#-----[ FIND ]------------------------------------------
#
switch($type)
{
	case AUTH_ACL:
		$result = $u_access[$j][$key];

	case AUTH_MOD:
		$result = $result || $u_access[$j]['auth_mod'];

	case AUTH_ADMIN:
		$result = $result || $is_admin;
		break;
}

$auth_user = $auth_user || $result;

#
#-----[ REPLACE WITH ]------------------------------------------
#
switch($type)
{
	case AUTH_ACL:
		$result = $u_access[$j][$key];

	case AUTH_MOD:
		$result = $result | $u_access[$j]['auth_mod'];
		break;
}

$auth_user = $auth_user | $result;

#
#-----[ OR ]------------------------------------------
#
switch($type)
{
	case AUTH_ACL:
		$result = $u_access[$j][$key];

	case AUTH_MOD:
		$result = $result | $u_access[$j]['auth_mod'];

	case AUTH_ADMIN:
		$result = $result | $is_admin;
		break;
}

$auth_user = $auth_user | $result;

#
#-----[ FIND ]------------------------------------------
#
return $auth_user;

#
#-----[ REPLACE WITH ]------------------------------------------
#
return ( $auth_user == 1 || $is_admin );

#
#-----[ OR ]------------------------------------------
#
return ( $auth_user == 1 );

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['OFF'] = 'OFF'; 

#
#-----[ ADD, AFTER ]------------------------------------------
#
$lang['DENY'] = 'DENY'; // This is for Deny Permission Mod

#
#-----[ FIND ]------------------------------------------
#
$lang['Group_auth_explain']

#
#-----[ IN-LINE FIND ]------------------------------------------
#
entry to forums, etc.

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 unless the group permission is set to deny.

#
#-----[ FIND ]------------------------------------------
#
$lang['User_auth_explain']

#
#-----[ IN-LINE FIND ]------------------------------------------
#
entry to forums, etc.

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 unless the user permission is set to deny.

#
#-----[ FIND ]------------------------------------------
#
$lang['Disallowed_Access'] = 'Disallowed Access';

#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Disallowed_Access'] = 'Default Access';
$lang['Denied_Access'] = 'Denied Access'; // This is for Deny Permission Mod

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_ug_auth.php

#
#-----[ FIND ]------------------------------------------
#
switch($type)
{
	case AUTH_ACL:
		$result = $u_access[$j][$key];

	case AUTH_MOD:
		$result = $result || $u_access[$j]['auth_mod'];

	case AUTH_ADMIN:
		$result = $result || $is_admin;
		break;
}

$auth_user = $auth_user || $result;

#
#-----[ REPLACE WITH ]------------------------------------------
#
switch($type)
{
	case AUTH_ACL:
		$result = $u_access[$j][$key];

	case AUTH_MOD:
		$result = $result | $u_access[$j]['auth_mod'];

	case AUTH_ADMIN:
		$result = $result | $is_admin;
		break;
}

$auth_user = $auth_user | $result;

#
#-----[ FIND ]------------------------------------------
#
$allowed = 1;

for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++)
{
	if ( !$auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]] )
	{
		$allowed = 0;
	}
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
$allowed = 3;

for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++)
{
	$allowed = $allowed & $auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]];
}

#
#-----[ FIND ]------------------------------------------
#
else if ( $allowed )
{
	$optionlist_acl .= '<option value="1" selected="selected">' . $lang['Allowed_Access'] . '</option><option value="0">'. $lang['Disallowed_Access'] . '</option>';
}
else
{
	$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0" selected="selected">' . $lang['Disallowed_Access'] . '</option>';
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
else if ( $allowed == 1 )
{
	$optionlist_acl .= '<option value="1" selected="selected">' . $lang['Allowed_Access'] . '</option><option value="0">'. $lang['Disallowed_Access'] . '</option><option value="3">' . $lang['Denied_Access'] . '</option>';
}
else if ( $allowed == 0 )
{
	$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0" selected="selected">' . $lang['Disallowed_Access'] . '</option><option value="3">' . $lang['Denied_Access'] . '</option>';
}
else
{
	$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0">' . $lang['Disallowed_Access'] . '</option><option value="3" selected="selected">' . $lang['Denied_Access'] . '</option>';
}

#
#-----[ FIND ]------------------------------------------
#
if( !$auth_field_acl[$forum_id][$field_name] )
{
	$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option>';
}
else
{
	$optionlist_acl_adv[$forum_id][$k] .= '<option value="1" selected="selected">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option>';
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
if( $auth_field_acl[$forum_id][$field_name] == 0 )
{
	$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option><option value="3">' . $lang['DENY'] . '</option>';
}
else if( $auth_field_acl[$forum_id][$field_name] == 1)
{
	$optionlist_acl_adv[$forum_id][$k] .= '<option value="1" selected="selected">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option><option value="3">' . $lang['DENY'] . '</option>';
}
else
{
	$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option><option value="3" selected="selected">' . $lang['DENY'] . '</option>';
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
bluebird501
Registered User
Posts: 21
Joined: Fri Jul 01, 2005 11:14 pm

Post by bluebird501 »

i just installed this on 2.0.17 and I got no errors. Just I can't seem to figure out how to deny permissions to anyone. Can somone please give me a step by step guide on how to deny a certain user? ThanX
Post Reply

Return to “[2.0.x] MODs in Development”