Support » Plugin: Subscribe To Comments Reloaded » injection doesn't work

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Reedyseth

    (@reedyseth)

    Hello @guenstig-kochen.at,

    Please if you can find the stcr-plugin.js file under the path

    /subscribe-to-comments-reloaded/includes/js/

    Replace this line:

    var submit_button = $('form input.Cbutton');

    for this line:

    var submit_button = $('form input[type="submit"]');

    Then set to Yes on the StCR Box Position option.

    worked like a charm!

    thanks a lot 🙂

    Plugin Author Reedyseth

    (@reedyseth)

    worked like a charm!

    Cool !

    I will add that change to the code, thank you for report it.

    otoraby

    (@otoraby)

    Thank you!
    This worked for me too 🙂
    But I have another problem, message and link of changing subscription there is beside “Submit” button, how can I move it to above of the “Submit” button?

    otoraby

    (@otoraby)

    Also I suggest to use name selector instead of type selector:
    var submit_button = $('form input[name="submit"]');
    Because [type=”submit”] will affect on every available button in page.

    Plugin Author Reedyseth

    (@reedyseth)

    Also I suggest to use name selector instead of type selector:
    var submit_button = $(‘form input[name=”submit”]’);
    Because [type=”submit”] will affect on every available button in page.

    @otoraby,

    I search in the code for the name = submit, but on some themes that button does not take the name. This is a quick fix for the position, although is better to modify the form and add the checkbox with WordPress instead of just jQuery, so the next effort to control the checkbox position will be the WordPress way

    otoraby

    (@otoraby)

    Yes, WordPress way is much better; The current suggestion ( using comments_template.php ) is not an interesting way too!

    Hope you find a sweet way 🙂

    mcheow721

    (@mrose721)

    @reedyseth, When do you think the WP (not jquery) way will make it to an update? Thanks.

    Plugin Author Reedyseth

    (@reedyseth)

    @mrose721,

    Right now there is not a estimated time, but for sure this is on the improvements queueu.

    Regards.!!

    Hi ReedySeth,

    Thanks a lot for your work, your great plugin and your answers!

    I tried the mentioned solution but I dont know why it doesnt work with my child-theme. I desactivated all other plugins but the problem remains.
    Do you have an idea where I should look at, what I should do?

    Many thanks in advance for your help!

    Plugin Author Reedyseth

    (@reedyseth)

    Hi @tche111,

    I am checking your webpage, I will let know the finding on the GitHub issue:

    https://github.com/stcr/subscribe-to-comments-reloaded/issues/153#issuecomment-217514708

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘injection doesn't work’ is closed to new replies.