• Hello
    I use Subscribe to Comments Reloaded plugin, so to let the users subscribe to their favorite posts. I believe STCR is the best comment-subscription plugin, although it has failings too. I think WordPress still lacks a sophisticated comment and post subscription system. There is a problem with STCR, which can not be solved by the plugin author. It should be modified by WordPress team. When we activate the plugin, the subscription checkbox appears below comment “submit” button, while it is very illogic to put a checkbox below “submit” button. I say it is illogic, because for one thing, “submit” button must be the last element of every form, but also blind users like me can not see that option before clicking on “submit” button. Most of times, they forget to check or uncheck that option before clicking on “submit” button, because they don’t read it before “submit” button.

    In order to solve the above problem, I go to wp-includes, to “comment-templates.php” in WordPress, and fine the following line:
    <?php echo $args[‘comment_notes_after’]; ?>

    Then I change that line into:
    <?php echo $args[‘comment_notes_after’];
    if (function_exists(‘subscribe_reloaded_show’)) subscribe_reloaded_show();

    ?>

    This solves my problem and takes the checkbox to above the “submit” button, but whenever I upgrade WordPress, that file gets replaced and the feature gets deactivated. I would like to wish 3 things:
    1- Add the above code to “comment-template.php”, so I won’t have to add it manually every time after upgrading to a new version of WP. You can do the same thing for the subscription checkboxes of mail-poet, subscribe2 and other comment-subscription plugins as well.
    2- Add STCR to the default plugins that come with WordPress.
    3- Create a sophisticated subscription system for WordPress, which has the same features as the subscription system of VBulletin. I believe VBulletin has the best subscription system. I can explain the reasons if needed.

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter javad2000

    (@javad2000)

    By the way, the same problem applies for your own subscription system in this forum. When I want to post a message here, the checkbox of “Notify me of follow-up posts” appears after the “post” button, because you have contrived no hook for the plugin authors, so they can add that checkbox before “post” or “submit” button. Of course I am not a plugin-author. Maybe you have contrived the hook, but the author of STCR said he doesn’t know how to move the checkbox above the submit button.

    Thank you

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    In order to solve the above problem, I go to wp-includes, to “comment-templates.php” in WordPress, and fine the following line:

    This really is not a WordPress problem. Have you approached the plugin author about this?

    The reason I’m suggesting that is because the comment system is massively customizable. You can replace the form, you can modify the form, you can even implement a 3rd party comment system and all without ever modifying WordPress core files as you are doing.

    What you are describing isn’t for WordPress core but should remain in a plugin. Especially when you say you want this just to support this one add-on plugin. ??

    Thread Starter javad2000

    (@javad2000)

    Hello and thanks for the reply.

    > This really is not a WordPress problem. Have you approached the plugin author about this?

    Yes, it is not a WordPress problem, but I posed it as a feature request. I have contacted the plugin author and requested this feature. The topic has been discussed in Github and other users also confirmed that the checkbox should appear above the “Submit” button. The author also agreed about that, but he said, “I don’t know which WordPress hook I can use for this purpose”. Do you mean there is already a hook that allows taking the checkbox above “submit” button? What hook is it? What should the author do? I am not a plugin developer, so I don’t know much about WordPress functions, but I see even your own forum has contrived the checkbox below the “Post” button. If there is a hook that allows taking the checkbox above “Post” button, why don’t you take your own checkbox above the “Post” button?

    Thank you

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m moving this to the Hacks sub-forum as it’s not really for Requests and Feedback. You have a request related around one plugin but you really want to know how to modify the comments form.

    if (function_exists('subscribe_reloaded_show')) subscribe_reloaded_show();

    I’ll look at it later or perhaps someone else will reply. There are many plugins that hook into the comment form so I’m sure this does not need a change to WordPress core files. ??

    Moderator bcworkz

    (@bcworkz)

    There’s a slew of actions and filters available for the comment form, many of which occur before the submit button. Prior to the textarea being moved to the top, the ‘comment_form_after_fields’ action was not optimal, but it now fires exactly where you want the checkbox to appear.

    Another way to add fields is the ‘comment_form_fields’ filter, which allows one to put additional fields anywhere amongst the default fields, as well as removing or changing fields. This was also not optimal until the textarea was moved. But now there’s no excuse!

    I suspect these forum’s checkbox location suffered from the same prior restriction that is resolved by the moving of the text area, someone just needs to make the adjustment. Unfortunately, there are many things that are in need of adjustment in these forums, so it’ll take time. First, be sure that a ticket has been filed regarding, this, and if not, you may file an enhancement request. Start here: https://meta.trac.www.ads-software.com/newticket

    To be clear, the link above is for tickets regarding the www.ads-software.com site, including forums, they are not related to the WordPress core code. Like Jan said, core code will not change because core has no subscribe checkbox by default.

    I have added this new feature on a beta code, since the code needs debug and feedback from the users it is not release yet, although you can test the beta code located here:

    https://github.com/stcr/subscribe-to-comments-reloaded/tree/pre_release?files=1

    Just download the zip file of the pre_release branch.

    Thread Starter javad2000

    (@javad2000)

    Thank you Reedyseth
    I am happy you came here to answer the topic. I was looking for your email address so to inform you about the topic. I went to the above link, but I couldn’t find the zip file. Maybe that is because I am blind and I am using screen reader. There was no “zip” item in the page as a text or link or button. Would you please give me the direct link?

    Did you include my Persian translation as well?

    Thank you

    @javad2000

    Here is the direct link: https://github.com/stcr/subscribe-to-comments-reloaded/archive/pre_release.zip

    By the way I lost the track of the latest persian language file, can you email it to reedyseth at gmail dot com?

    Thread Starter javad2000

    (@javad2000)

    Hello again Reedyseth
    Thank you for providing the direct download link. I tested the beta release of this plugin, and I write a review here:

    A review on the new version of STCR:
    Pros:
    1- It has a new feature called “Checkbox Position”, which can move the checkbox to above the submit button.

    Cons:
    1- When I installed the plugin, I could hardly get rid of the lots of announcements appearing on the page.
    2- The Farsi translations are available, but they don’t work at all. I wonder why.
    3- In STCR options, the “Notifications” page did not work for me.
    4- The subscription checkbox does not appear at all in my theme (Travelify). This theme had no problem with the previous version.

    In a nutshell, the beta version did not work at all for me. I also have a question for you:
    Which subscription plugin do you recommend us to use now: STCR or Comment Mail?

    Best Regards

    @javad2000

    When I installed the plugin, I could hardly get rid of the lots of announcements appearing on the page.

    On this case the notice are there for let you know about all the recent changes, they will remain visible until you click on the button Got it and you will not see it any more.

    The Farsi translations are available, but they don’t work at all. I wonder why.
    3- In STCR options, the “Notifications” page did not work for me.

    This is because the Farsi Translation is missing the references, I will update this on the pre_release branch and let you know.

    The subscription checkbox does not appear at all in my theme (Travelify). This theme had no problem with the previous version.

    This is because since the code base changed now they way subscribe to comments subscription box is call is a bit different, instead of having this:

    <?php
    /* Template Name: Subscribe To Comments */
    if (isset($wp_subscribe_reloaded)){ global $posts; $posts = $wp_subscribe_reloaded->subscribe_reloaded_manage(); }
    ?>

    Have this:

    <?php
    /* Template Name: Subscribe To Comments */
    if (isset($wp_subscribe_reloaded)){ global $posts; $posts = $wp_subscribe_reloaded->stcr->subscribe_reloaded_manage(); }
    ?>
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Feature Request In Comments Template’ is closed to new replies.