Previous Thread
Next Thread
Print Thread
Rate Thread
#235564 02/07/2003 1:42 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
NAME: User Privileges
VERSION: 1.0.0
DESCRIPTION: Allows limiting of certain user privileges.
WORKING UNDER: UBB.threads 6.2.2
PREREQUISITES: none
AUTHORS: Dave_L
CREDITS: none
DEMO: none
FILES ALTERED: addpost.php, doratethread.php, dorateuser.php, editpost.php,
mess_handler.php, newpost.php, newreply.php, sendprivate.php,
ubbt.inc.php
DATABASE ALTERED: yes
NEW FILES: none

HISTORY:
2003-02-07 Dave_L - 1.0.0 Original release

********
ABSTRACT
********

The following columns are added to the Banned table for limiting certain user privileges:

B_X_NoEditPost - do not allow editing of posts
B_X_NoEditProfile - do not allow editing of profile (basic section only)
B_X_NoMessage - do not allow sending or receiving of private messages
B_X_NoPost - do not allow posting
B_X_NoRate - do not allow rating of users or threads

Each of these columns is set to 1 to deny the privilege, and 0 to allow the privilege.

There is no user interface provided for changing these privileges. That can only be done with MySQL queries, phpMyAdmin or an equivalent.

If a user name or IP address is added to the Banned table via the Admin page, each of the above columns is set to 1 by default, denying all the privileges.
Attachments
67952-user_privileges_1-0-0.zip (0 Bytes, 20 downloads)

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Sounds great Dave

Perhaps the banning page could pass some check box variables so that the new field values could be set 1 or 0 at the time of banning?

Just a thought.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
It is my intention to include this in the ban interface.
That's why i forced Dave_L to post it.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Ahh... ok.

Looking forward to seeing the end result.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Great work Dave_L. (As always)

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Excellent tool

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Forgot to mention it here.
I created a GUI for this nice hack and expanded it a bit.

See details



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)