Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Setting default user permissions
How can I set the default preferences that are assigned to newly created users?
I’ve got a site (running 4.4.1) with a customized write screen, using bot_write_tab_customize and a custom admin theme. When new users are created, certain things are invisible by default. Setting certain preferences fixes it, but that’s a pain.
Some examples would be pane_article_image_visible, pane_article_meta_visible, pane_article_more_visible, etc.
While smd_prefalizer allows me to fix preferences (as does editing the database directly), what I’d really like is for new users to just get a certain suite of preferences.
Any suggestions?
Offline
#2 2012-11-29 01:32:01
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Setting default user permissions
Hi,
if I understood correctly and you want to hide certain items in the admin side only for certain users via css you can use bot_admin_body_class. It’s not exactly what you are asking for but maybe can help.
Offline
Re: Setting default user permissions
Thanks redbot, but no, that’s not what I need. My problem is certain things are already hidden by default. There are preferences for these things, but I’m unsure where the default values for them are being set.
(I might be able to hack around the problem by making what these preferences do irrelevant, but I’d rather find a more “correct” solution.)
Offline
#4 2012-11-29 02:14:16
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Setting default user permissions
Hm, reminds me of this config.php way of showing/hiding stuff. Is that what you’re after? Phil dropped some more examples at different spots of the forum during the last few weeks.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Setting default user permissions
uli wrote:
Hm, reminds me of this config.php way of showing/hiding stuff. Is that what you’re after? Phil dropped some more examples at different spots of the forum during the last few weeks.
Hive theme’s own configuration options can be found from the readme.
Offline
Re: Setting default user permissions
That config.php approach looks interesting … for 4.5 and above!
I ended up finding a CSS workaround. Would still love to know how to affect these “hidden” prefs. Some day.
Offline
Pages: 1