WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Subscribe To Comments Reloaded] Create "Subscribe Without Commenting" widget

[Resolved] [Plugin: Subscribe To Comments Reloaded] Create "Subscribe Without Commenting" widget

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Contributor Jason Crouse
    Participant

    @coolmann

    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 😀

    Camu

    Perryb2006
    Member

    @perryb2006

    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?

    Perryb2006
    Member

    @perryb2006

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

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

    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

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

    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

    Perryb2006
    Member

    @perryb2006

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

    Perryb2006
    Member

    @perryb2006

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

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

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

    Best,
    Camu

    Perryb2006
    Member

    @perryb2006

    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 🙂

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

    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 😀

    Camu

    Perryb2006
    Member

    @perryb2006

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

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

    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

    Perryb2006
    Member

    @perryb2006

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

    Plugin Contributor Jason Crouse
    Participant

    @coolmann

    Unfortunately Apple doesn’t have such a thing like cross-platform compatibility 🙁

    Camu

    Ovidiu
    Participant

    @ovidiu

    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

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Resolved] [Plugin: Subscribe To Comments Reloaded] Create "Subscribe Without Commenting" widget’ is closed to new replies.