WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Feature Idea (19 posts)

  1. crackedjar
    Member
    Posted 7 months ago #

    It would be great if subscribers could comment on and/or "like" our post right from the notification email. This is available with Jetpack subscriptions but I love some of the other features of Subscribe2, so I want to keep using it. :)

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

  2. mattyrob
    Member
    Plugin Contributor

    Posted 7 months ago #

    @crackedjar,

    I'll see what I can do.

  3. crackedjar
    Member
    Posted 7 months ago #

    :D Thanks!

  4. mattyrob
    Member
    Plugin Contributor

    Posted 7 months ago #

    @crackedjar,

    I'm trying to implement new features through filters rather than options.

    This feature would only be available in HTML emails and since there are over 300 social sharing networks supporting them all within Subscribe2 is not going to be possible.

    So, I'm looking at using AddThis to add the links via a filter with perhaps Facebook, Twitter and Google+ as defaults.

    So, would you expect this to be turned on for all three by default or would you be happy with applying a little code to enable the feature?

  5. crackedjar
    Member
    Posted 7 months ago #

    I was actually thinking about the likes within WordPress that I have enabled on my posts. If there is a code to enable this, I believe I could add it.

  6. mattyrob
    Member
    Plugin Contributor

    Posted 7 months ago #

    @crackedjar,

    Those will be coming from another plugin though and there are lots of social media plugins. I can't support them all and if they change their code the feature breaks so it becomes a lot of work.

    As you've sort of indicated too, everyone is going to have their own preferences for which social media links they want on their site and in their email.

    To deliver this feature it needs to be flexible but easy and that might make it very difficult too.

  7. crackedjar
    Member
    Posted 7 months ago #

    Ah, ok. I understand.

  8. crackedjar
    Member
    Posted 4 months ago #

    Would there be a way for me to add commenting by replying to the notification email OR a link in the email that readers could click to take them directly to the comment form (the one that comes with WordPress)? Thank you!

  9. crackedjar
    Member
    Posted 4 months ago #

    It would be the permalink followed by /#respond, but I can't figure a way to add that.

  10. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    Only when I release code that adds such a feature - it's coming soon. Just need to do some more testing.

  11. crackedjar
    Member
    Posted 4 months ago #

    Great, thank you! :)

  12. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    In fact, if you like you can test out the development version.
    http://downloads.wordpress.org/plugin/subscribe2.zip

    It introduces custom {KEYWORDS}, so a little code would be needed to define what replaces the keyword and it'll also define the keyword, but something like this works in my tests:

    add_filter('s2_custom_keywords', 'respondlink_keyword');
    
    function respondlink_keyword($message) {
    	global $post;
    	$permalink = get_permalink($post->ID) . "/#respond/";
    	return str_replace("{RESPONDLINK}", $permalink, $message);
    }

    Then, the final step is to place the {RESPONDLINK} keyword into the email template and preview it to check it works and produces the right link.

  13. crackedjar
    Member
    Posted 4 months ago #

    I will be happy to try it. Where do I place the above code?

  14. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    You create your own plugin with it.

  15. crackedjar
    Member
    Posted 4 months ago #

    So, I would download the plugin from the link above and add the code you provided to that and then upload it? Thanks.

  16. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    Almost there. Download the development version from the link above and install it. Then create and upload another plugin using that code snippet.

  17. crackedjar
    Member
    Posted 4 months ago #

    I know how to do the first part, but not the second. I think I'm in over my head. lol

  18. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    There is a lot of information in the WordPress Codex:
    https://codex.wordpress.org/Writing_a_Plugin

    But if you don't feel confident enough to try it might be best leaving it for now.

  19. mattyrob
    Member
    Plugin Contributor

    Posted 4 months ago #

    @crackedjar,

    Actually, having thought about it I really think you should give a try at writing your first small plugin, if you want custom keywords this is going to be necessary with the new code anyway.

    If you upload a plugin with errors in on more recent versions of WordPress you will get error messages on activation without taking down your site so you can't really mess things up too badly.

    You can always delete the plugin file from the server to restore your site too.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.