Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2010-10-21 17:19:58

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

mrdale wrote:

just played with this plugin. I would love to be able to selectively hide nav items. That in the cards?

This plugin lets you modify standard roles and permissions with ease, nothing more.
Among other things, it allows to selectively show/remove tab/subtabs in the textpattern admin, based on the logged-in user role.
So the question is: what do you mean by “nav items”?

Last edited by redbot (2010-10-21 17:21:17)

Offline

#50 2010-10-22 15:15:21

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: bot_privs: edit user level privileges

Sorry. let me clarify.

After playing with it breifly, I tried unchecking certain admin tabs for the admin role. They continued to display, but disallowed access via a message when clicked on. I’d love to be able to selectively remove all tabs that are not pertinent to my users.

I am using a custom theme, in case this is how it already is intended to work.

Offline

#51 2010-10-22 15:55:42

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

Ok, let’s try to narrow it down

1) have you installed the correct version? As stated in the first post there are two different plugins for txp v.4.2 and for pre 4.2
2) which tabs you removed?
3) what do you mean for “admin role”? Maybe “publisher”?
4) which message is displayed?

P.S. custom theme should not be a problem since this plugin does not rely on js or css

Last edited by redbot (2010-10-22 15:57:57)

Offline

#52 2010-10-22 16:59:40

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

Re: bot_privs: edit user level privileges

redbot wrote:

P.S. custom theme should not be a problem since this plugin does not rely on js or css

That depends on the theme and how it builds the menu. If the theme correctly uses uses the classes and the provided pre-build array, then yes. But if the theme entirely rebuilds the menu from the data TXP provides (which is possible too, to have extended control – like for example to always show the tabs no matter what), and doesn’t use has_privs() etc, then no.

Offline

#53 2010-10-22 17:06:25

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

Gocom wrote:

That depends on the theme and how it builds the menu. If the theme correctly uses uses the classes and the provided pre-build array, then yes. But if the theme entirely rebuilds the menu from the data TXP provides (which is possible too, to have extended control – like for example to always show the tabs no matter what), and doesn’t use has_privs() etc, then no.

Sure, but I would call this a very customized theme. I don’t think it is the case with the majority of themes out there (but I could always be wrong – I use my own css-only themes)

Last edited by redbot (2010-10-22 17:12:27)

Offline

#54 2010-10-22 17:20:27

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

Re: bot_privs: edit user level privileges

redbot wrote:

Sure, but I would call this a very customized theme. I don’t think it is the case with the majority of themes out there (but I could always be wrong – I use my own only-css themes)

Well, TXP uses PHP classes for themes and if you want to change the menus at all (look, structure, anything), you need to (re-)build the menu.

To me it seems that it would be highly possible that anyone could accidently use the source block instead of the redifined product. It’s really easy mistake to make, especially if you are not familiar with TXP’s source code.

Last edited by Gocom (2010-10-22 17:28:32)

Offline

#55 2010-10-22 17:25:11

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

Gocom wrote:

Well, TXP uses PHP classes for themes and if you want to change the menus at all, you need to build the menu it using the class…

Useful infos as usual, thanks!

Offline

#56 2010-10-22 18:07:40

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: bot_privs: edit user level privileges

yar. I’m using a modded version of sandspace with svn builds. I think it is a theme that monkeys with rebuilding the nav. I’ll bet that’s why I’m not getting the same experience.

how does bot privs show/hide nav elements?

Offline

#57 2010-10-22 18:18:18

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

Hi mrdale,
as I said before using this plugin is exactly the same than doing this (look at third paragraph) .
This means – in a standard txp installation – that tabs are not hidden, they are not output at all in the html.

Last edited by redbot (2010-10-22 18:21:26)

Offline

#58 2011-04-12 22:39:29

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: bot_privs: edit user level privileges

Hi redbot,
sorry to bother you, but I’m currently behind the curve with things.

I have bot_privs installed on some sites. Is the current version compatible with 4.4.0 and/or has its functionality been integrated into one of your other admin plugins?

Offline

#59 2011-04-13 03:16:42

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: bot_privs: edit user level privileges

masa wrote:

Is the current version compatible with 4.4.0 and/or has its functionality been integrated into one of your other admin plugins?

Hi masa,
bot_privs has not been integrated into another admin plugin and should work ok with txp 4.4

Offline

#60 2011-08-23 09:32:08

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: bot_privs: edit user level privileges

Hi,

Does anybody happen to know how I might use this plugin to allow staff writers access to the admin tab for adi menu? the event is

/index.php?event=adi_menu_admin

it resides in section but allowing access to section still results in restricted area.

I have also tried using rah tabtor to move it somewhere else but still no joy.

Thanks for any pointers.

best,
Mike

Offline

Board footer

Powered by FluxBB