Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-15 00:17:52

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Add a user to the DB but remove writing privileges...for now

I’m in need of capturing users that want to be part of one camp, but they will not have access to writing articles, just registering to belong to that particular camp.

So Johnny decides he wants to become a part of Camp 1. He fills out a contact form, makes sure he checked off that he’s done all the things required to become eligible, adds a URL or profile information and the information is stored in the DB. Then I’d like to be able to pull the users for that camp and display their name.

In the future, when blog posting or writing is open to the community, we’ll send the users that have registered and opted in a message with instructions.

I’m not sure if there’s a plug-in that restricts privileges or does something similar or how difficult this would be to do. Any help would be welcome.

Zeus

Offline

#2 2008-11-15 00:41:44

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Add a user to the DB but remove writing privileges...for now

There is the in-build core none (0) privs-level. You can use that, it basically is just public user level, the user doesn’t even have access to the backend. If you want automate that with self-registering, it can be done with mem_self_register plugin.

You can also edit privs level, and their access permissions by editing $txp_permissions -array in /textpattern/lib/admin_config.php, starting on line 185. Just add privs level number to the your desired event needle. In example you could remove lesser priv, in example 6 from all article/other editing related stuff, and adjust that to new users.

Last edited by Gocom (2008-11-15 00:42:40)

Offline

#3 2008-11-15 06:34:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Add a user to the DB but remove writing privileges...for now

Gocom wrote:

You can also edit privs level, and their access permissions by editing $txp_permissions -array in /textpattern/lib/admin_config.php, starting on line 185. Just add privs level number to the your desired event needle. In example you could remove lesser priv, in example 6 from all article/other editing related stuff, and adjust that to new users.

or use a plugin


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2008-11-26 20:35:41

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Add a user to the DB but remove writing privileges...for now

Sorry gents to be so disconnected from this conversation. I’m trying to asses the best way to move forward researching plug-ins rather than mods. I’d rather not make direct changes to the TXP framework to ease any future updates.

I guess what I envision or am looking for is not to grant users full access to the core txp admin interface because the front end is a bit intimidating since users can see everyone’s posts rather than just theirs. When a user registers I’d like to limit users to specific sections or even category rather than giving them complete access. When they log in, I want TXP to automatically know where the post should go. Make sense?

Also, I have limited access to the DB since it’s hosted using IIS and I’ve had some issues already with some plugins.

Any suggestions? Should I request a custom plugin? I’ve searched for so many to do what I’m attempting…

Offline

Board footer

Powered by FluxBB