WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe To Comments Reloaded
[resolved] Create "Subscribe Without Commenting" widget (22 posts)

  1. Perryb2006
    Member
    Posted 3 years ago #

    Hi,
    Is there a way to create a separate widget for subscribing without commenting instead of the link?
    What code needs to be used?

    http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/

  2. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Hi there,

    you mean a widget with a text field to subscribe? Yes, this can be done by copying and pasting the following HTML code into a PHP widget:

    <form action="/URL_OF_YOUR_MANAGEMENT_PAGE?srp=<?php echo $post->ID ?>&sra=s" method="post" onsubmit="if(this.subscribe_reloaded_email.value=='' || this.subscribe_reloaded_email.value.indexOf('@')==0) return false">
    <fieldset style="border:0">
    	<p><label for="subscribe_reloaded_email">Email</label> <input type="text" class="subscribe-form-field" name="subscribe_reloaded_email" value="email" size="22"
    		onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue"/>
    	<input name="submit" type="submit" class="subscribe-form-button" value="Invia" /></p>
    </fieldset>
    </form>

    Please let me know if this worked for you and don't forget to vote for my plugin :D

    Camu

  3. Perryb2006
    Member
    Posted 3 years ago #

    I have enabled the widget below comment form. Check here: http://www.techvorm.com/download-angry-birds-for-nokia-s60v5-symbian1-mobile-phones-unofficial.html

    When i clicked on InVia (Should be "Submit" or somethng similar) it returned a 404 page. Any help?

  4. Perryb2006
    Member
    Posted 3 years ago #

    Replaced "URL_OF_YOUR_MANAGEMENT_PAGE" with "comment-subscriptions.html" and now it is taking to the generic subscription page and not post specific.

  5. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Yeah, sorry for the wrong text on the button, it should be Submit. As for the "generic page" issue, it looks like the PHP code

    <?php echo $post->ID ?>

    I had added in the HTML code here above, is not being properly executed. That's the reason why it's not working. Is this "widget" inside the WordPress loop?

    Camu

  6. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Hi again,

    are you using PHP Code Widget? If so, try this code here below:

    <?php global $post ?>
    <form action="/URL_OF_YOUR_MANAGEMENT_PAGE?srp=<?php echo $post->ID ?>&sra=s" method="post" onsubmit="if(this.subscribe_reloaded_email.value=='' || this.subscribe_reloaded_email.value.indexOf('@')==0) return false">
    <fieldset style="border:0">
    	<p><label for="subscribe_reloaded_email">Email</label> <input type="text" class="subscribe-form-field" name="subscribe_reloaded_email" value="email" size="22"
    		onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue"/>
    	<input name="submit" type="submit" class="subscribe-form-button" value="Submit" /></p>
    </fieldset>
    </form>

    Of course the widget only makes sense if shown within a single post context.

    Camu

  7. Perryb2006
    Member
    Posted 3 years ago #

    I am using Ad codes widget (supports php) and I have placed the box using a widget. Don't know about loop :P Am a commerce student, bad with coding :)

  8. Perryb2006
    Member
    Posted 3 years ago #

    Added the new code and it's working just fine! Check the link shared above. Great work mate!
    Voted too :))

  9. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Awesome! Hopefully this will be useful to other people who want to do the same thing!

    Best,
    Camu

  10. Perryb2006
    Member
    Posted 3 years ago #

    I found this feature of subscribing without commenting pretty useful. And a small request, not related to topic though, why don't you develop a mobile plugin for wordpress? Except for 1 or 2 none of them are supported for latest version of wordpress.

    Just a lame request seeing the awesome support you provide :)

  11. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Creating a mobile plugin would be nice, unfortunately developing for iPhone can be expensive and I don't have the adequate equipment to do it, I'm a PC guy :D

    Camu

  12. Perryb2006
    Member
    Posted 3 years ago #

    iPhone? I was hoping for a generic version. Though WpTouch Pro does the work but it's kinda limited to certain devices.

  13. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Wait, I guess I misunderstood what you meant. StCR is already compatible with mobile browsers, you can manage your subscriptions from a mobile device. I thought you meant developing an iPhone app.

    Camu

  14. Perryb2006
    Member
    Posted 3 years ago #

    I did mean developing a mobile app but NOT specific to iphone. I meant something which will work for all the phones.

  15. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Unfortunately Apple doesn't have such a thing like cross-platform compatibility :(

    Camu

  16. Ovidiu
    Member
    Posted 3 years ago #

    regarding the subscribe without commenting, how about this feature suggestion:

    - have an option in your plugin's options to inject a link underneath the comments so that a user that has read the comments sees this link to subscribe without commenting. In my opinion it doesn't make that much sense to have it in the sidebar as a widget

  17. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Ovidiu, could you please elaborate on your request?

    Thanks,
    Camu

  18. Perryb2006
    Member
    Posted 3 years ago #

    @Ovidiu Yes, it's of no use in sidebar but it's worth it when shown just above/blow comment form.

    Regarding your suggestion, I think putting a 'check box' below comment form will only confuse the reader i.e to write a comment and submit or submit by just entering the emaill address.

  19. Ovidiu
    Member
    Posted 3 years ago #

    ah, sorry I might not have described it very accurately. what I meant is that I'd like a link, not a checkbox underneath the comment form, right next to the checkbox for subscribing to comments by email that will subscribe the user without him having to comment.

    I have never checked the code given above but I think that is what I am looking for...

  20. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Ovidiu, I was confused because the link is already there, when you install Subscribe to Comments Reloaded. Please review the tab "Other messages" for further details and to customize the look and feel of that link :)

    Camu

  21. Ovidiu
    Member
    Posted 3 years ago #

    sorry guys its all my fault.

    I was reviewing a few plugins that offer this functionality liek the original subscribe to coments, gurkend version and some others trying to figure out which one to use...

    then I found this thread and misunderstood. I thought the user wanted this in the widget because it is not there by default :-)

    really sorry, please ignore all my posts in this thread :-)

  22. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Not a problem, thank you for clarifying :)

    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic