Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    1. There is no support for Email Users on the front end. Everything is driven from the Dashboard. I’ve never explored whether or not it would be possible to do it on the front end but off the top of my head I don’t believe it would be.
    2. There is no support for such a feature but that doesn’t mean there couldn’t be. Since roles are somewhat arbitrary, what would you suggest handling the cases where some types of users (e.g. Admin) need to see all roles? Besides admin, other WordPress roles (e.g. Editor)?
    Thread Starter dave.smith.candata.com

    (@davesmithcandatacom)

    1. Sorry for my ignorance but what infrastructure does the dashboard provide that a regular page does not? This just does not seem that hard to me…

    2. I would suggest that admin role should show all, otherwise you have to be in the role to the group you want to send to.

    Thread Starter dave.smith.candata.com

    (@davesmithcandatacom)

    For option 1. Could you not use this plugin ..

    http://wordpress.org/plugins/insert-php/

    And just include the email-group php page that is embedded in the Dashboard?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    1. I was going say wp_editor() would be my biggest concern but it appears a few people have managed to make it work on the front end, mostly for comments.
    2. I agree with admin visibility to all and role based visibility for others. I’ll try and take a look at this soon, I have a fair amount of airplane time next week flying back and forth to Europe. I will likely make this an on/off option (default to off) so the current functionality continues. Email-Users has quite a few users and I wouldn’t want to make a significant change like this the default behavior.

    Back to item #1 – while it may be possible to do this on the front end, I think it is risky. Based on my experience with my Google Forms plugin (which embeds a Google Form in a post or a page), there are a lot of theme related issues which affect front end plugins.

    It isn’t unusual for a theme (or other plugin) to have a minor Javascript error and while minor, these sort of errors usually prevent any Javascript after the error is encountered from running. Because wp_editor() is all Javascript based I envision numerous support questions basically stating that it doesn’t work on such and such a site.

    So while it might be technically possible, it comes with the potential of a high support burden.

    As for the Insert PHP plugin, you can certainly try it although I don’t think it will work just including the existing PHP files which expect WordPress’ Dashboard page framework to be present.

    Is there a reason the existing Dashboard implementation won’t suffice?

    Thread Starter dave.smith.candata.com

    (@davesmithcandatacom)

    Firstly I want to say WOW, what awesome support!

    The reason I do not want to use the dashboard is that these people sending only have that one function. I do not want to confuse them with the dashboard, plus I think it looks much neater to embed it. What is the name of the php page that has email group in it? I will give it a try and report back …

    Plugin Author Mike Walsh

    (@mpwalsh8)

    The way Email-Users is assembled there isn’t a single file which includes the functionality you need.

    For example, Send to Users consists of two files, one which defines the form (email_users_user_mail_form.php) and one which processes the form submission (email_users_send_user_mail.php).

    Additionally, the core plugin file (email-users.php) contains a number of functions shared by all parts of the plugin. I believe this core plugin file will be loaded are part of the plugin loading process even on the front end however some of the init actions are set up to only fire on the Dashboard (admin_init vs init).

    As I think about it, I suspect it wouldn’t be too much trouble getting the form to render but I am not sure about the actual form processing step. Speaking from experience, form processing on the front end is different than on the back end. I am not sure what you’d run into in the code as it currently exists.

    A regular user will typically have a pretty simple Dashboard. While I don’t disagree that being able to use Email-Users from the front end would be nicer and look better, I think it would be easier and less time consuming to simply train your users to use the Dashboard.

    What do you do for profile updates? Do you have a front end version of that already in place?

    Thread Starter dave.smith.candata.com

    (@davesmithcandatacom)

    For the record …

    [insert_php]
    remove_filter( ‘the_content’, ‘wpautop’ );
    include(ABSPATH . ‘wp-content/plugins/email-users/email_users_send_group_mail.php’);
    [/insert_php]

    Work great. The only problem is loading a style sheet to format it nicely.

    I wonder if you could add wp_enqueue_style() to the php page so we get a default style sheet if we are loading outside the admin page

    I tried mentioned solution of Dave but it doesn’t work for me. Anything else to do then installing the insert-php plugin and adding mentioned code to a page? Thanx.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Couple of questions’ is closed to new replies.