You are not logged in.
…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
read the plugin code, around line 62 you’ll find the instructions for doing what you want.
BTW probably this plugin should be considered dead given that the new smd_user_manager does a lot more.
Does anybody happen to know how I might use this plugin to allow staff writers access to the admin tab for adi menu? […] it resides in section but allowing access to section still results in restricted area.
If you want to use bot_privs, you will need to modify the source code of bot_privs. Alternatively you could (as easily) just directly modify adi_menu’s source code’s add_privs() statements to include the groups you want. Open adi_menu’s source code, search for
add_privs from the code and change the list of numbers in the statement to include those you want.
If you want to use bot_privs, you will need to add the adi_menu’s privilege strings to the bot_privs’
$bot_used_privs array, i.e.
'adi_menu_admin' => 'Access adi_menu',
And then set wanted groups for the item via bot_privs’ user interface. You will also have to give same privileges for the main tab the adi_menu resides in, if the tab has stricter privileges.
Rah-plugins | What? I’m a little confused… again :-)
Thanks very much for the reply. I would really love to be able to edit the php source of adi_menu but I am having lots of problems. It crashes when I try and save the plugin regardless of whether I have modified it or not. I really need to limit the sections it pulls into the admin table, and slightly modify the markup of the generated menus.
I asked the author but he wasn’t able to help. Perhaps I can modify the plugin and inject the new source straight into the db using phpmyadmin?
I like your plugin, it makes it really handy to update permissions on the fly without having to update the admin_config.php. I though your plugin needed a little css/js help in the list to make it look a little cleaner, so here’s an update. I added a new bot_css() function that adds some js and css to the head on bot privs’s tab
Feel free to add it to yours if you want.
… I added a new bot_css() function that adds some js and css to the head on bot privs’s tab
Thank you very much Nate!
I’ll add your function for sure when (if) I’ll release a new version. Consider anyway this is a semi-useless plugin after the release of smd_user_manager which is a lot more advanced.
smd_user_manager… is a lot more advanced.
Thanks for the recommendation although, ahem, it does need a visual spruce up since 4.5 came out. Still works, as far as I can tell.
It’s on me list, but it’s gonna be a long journey.
I can’t quite believe this, but I have kind of fixed a small minor display problem :)
if you replace this line:
with this line
echo form(startTable('', '', 'txp-list')
then this plugin displays perfectly with the new admin themes… I can only guess that startTable has more arguments, one for a class rather than id
@tye, Thanks for that smart fix! Worked perfectly for me as well (Textpattern 4.5.4, bot_privs 0.3.2).
Quick note for anybody doing a quick search-and-replace:
The plugin’s original line is
echo form(startTable('list') (not: txp-list) – the fix is
echo form(startTable('', '', 'txp-list').
@redbot, please do continue to support bot_privs, and don’t consider it obsolete. I bet there are lots of people (like myself) that prefer a nicely packaged one-trick pony over something more complex and slightly overwhelming. (No offense to Stef, there are numerous plugins of yours I love dearly!). I’ve got bot_privs in use on multiple sites and would love to stick to it, for those and many txp installs to come.