Forums

Subscribe2
Prevent Site Admins from manually adding emails? (4 posts)

  1. MadtownLems
    Member
    Posted 5 months ago #

    Hey again,

    I am looking to prevent our Site Admins from manually adding email addresses via the Tools->Subscribers page, but would like to keep the page that lets them view, confirm, remove subscribers.

    Of course, I'd love to avoid hacking the plugin if possible. Do you have any suggestions for accomplishing this without touching your code?

    If not - what are the chances of getting something added that would allow this?
    Such as setting something in config... define('S2_DISALLOW_IMPORT', true)', or putting this section of the form into a hook/action that would allow me to remove via plugin code, etc?

    Make sense? Any thoughts or ideas? Thanks a ton!

    http://wordpress.org/extend/plugins/subscribe2/

  2. MattyRob
    Member
    Posted 5 months ago #

    @MadtownLems,

    This is not currently possible without hacking the code.

    If these users are Admins then any code to remove that function would remove it for everyone on the site. Is that what you are after?

    Also, consider that if you do this via an option or even by editing the code, that could easily be reverted by the Admins as they can normally access the options page and the plugin Editor pages in WordPress.

    To be honest I think this is a fringe usage and any attempt to code this is would be at best a crude hack anyway. Not sure I think it's a good idea to commit such changes to the core code.

  3. MadtownLems
    Member
    Posted 5 months ago #

    Ideally, Site Admins (admins of individual sites on the network) would not be able to use the top half of that page, where they can bulk add users - but Network Admins could (in very rare cases).

    I totally understand it's a fringe use and wasn't very optimistic about changes...

    However, would the following be too much to ask? Perhaps just a few more classes and ID's on form elements, so they could at least be hidden that way? (either CSS or jQuery)

    For example, if on the Tools->Subscribers, you put a simple:
    <div id='s2-add-remove-subscribers'> just before the Add/Remove subscribers heading and then obviously a </div> just before the Current Subscribers?

    Make sense? Then at least I could easily hide it with css/jquery.

  4. MattyRob
    Member
    Posted 5 months ago #

    @MadtownLems,

    Adding some more DIV elements is quite feasible. I'll see what I can do for the next release.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags