cotonti.com : Custom Plugin to be accessed by Moderator https://www.cotonti.com Laatste forum onderwerpen Cotonti en Fri, 14 Nov 2025 20:25:37 -0000 medj I figured out an alternative method to let my staff edit a part of the site by just including a certain file in another folder.

By the way, does cotonti have the ability to do what I was explaining above?]]>
Vr, 20 Feb 2009 02:02:47 -0000
Kilandor
For plugins W/A(1-5) do nothing unless you code them to.
Read, allows users to access the plugin, if they do not have atleast R, the hook/plugin will not load for them.

But you can create a standalone plugin, and use a SQL query to update the config.
That is the only way to allow someone to modify a config without giving them access to the admin panel.]]>
Di, 17 Feb 2009 14:35:00 -0000
medj Di, 17 Feb 2009 05:44:51 -0000 Trustmaster Di, 17 Feb 2009 03:10:01 -0000 medj
My plugin works fine in terms of how it works on my site and I'm also able to edit the field in my admin panel in the plugins category.

The only thing I was hoping to do was give the Group "Moderators" to be able to go into the admin panel and edit this one plugin. Specifically to edit the text field which I made using the code below in the setup file:

[BEGIN_SED_EXTPLUGIN_CONFIG]
feature=01:text:::This is the HTML code for the announcement box
[END_SED_EXTPLUGIN_CONFIG]

From what you wrote above, I think you thought that I wanted a certain thing to show on the site for moderators.

I would almost go as far as to say that there could be a bug here only because I have the privileges set so that Moderators should be able to edit "admin" the plugin yet access is still blocked to the plugin page from a Moderator level.

Thanks for your reply though.]]>
Di, 17 Feb 2009 01:48:46 -0000
Trustmaster
if(sed_auth('plug', 'yourplugin', 'A'))
{
  // Some actions here
}
else
{
  // You are not allowed to do this
}
]]>
Ma, 16 Feb 2009 21:41:40 -0000
medj Is this something I should be calling in the setup file or in the main file?

By the way, I have these in the setup.

Auth_guests=R
Lock_guests=RW12345A
Auth_members=RW
Lock_members=12345

I just duplicated the settings from another plugin.]]>
Ma, 16 Feb 2009 16:10:10 -0000
Trustmaster Ma, 16 Feb 2009 15:44:46 -0000 medj
First of all, I am using Seditio.
I made a plugin for my site and it has a setup field in the admin of the plugin to change some HTML code.

I even changed the Auth settings in the setup.php file to enable moderators of the site to be able to change this HTML code, or so I thought.

Even though the plugin has Moderator admin privileges, my moderators are not able to access this plugin.

Can anyone offer any insight on this?

Thanks.]]>
Ma, 16 Feb 2009 15:21:11 -0000