WordPress.org

Forums

Navayan Subscribe
Notification checkbox checked for default for new posts (3 posts)

  1. joseamirandavelez
    Member
    Posted 2 years ago #

    Hi,

    I could not find a seeting for having the checkbox checked by default for new posts so I made this...

    /***************************************************
    	* ADD NOTIFICATION CHECKBOX TO 'PUBLISH' METABOX
    	* *************************************************/
    	function nys_Box(){
    		global $metaSlug;
    		global $pagenow;
    		echo '<div id="nySubscribeBox" style="position:relative; padding: 8px 10px; border-bottom:1px solid #DFDFDF">';
    		if(in_array( $pagenow, array( 'post-new.php' ) ))
    		{
    			echo '<label><input type="checkbox" checked value="1" name="'. $metaSlug .'" />&nbsp; ';
    		}
    		else
    		{
    			echo '<label><input type="checkbox" value="1" name="'. $metaSlug .'" />&nbsp; ';
    		}
    		_e( 'Notify Subscribers' );
    		echo '</label> <span style="position:absolute; right: 10px"> <a style="text-decoration:none" href="tools.php?page='. CONST_NYS_SLUG .'">';
    		_e( 'Settings' );
    		echo '</a>';
    		echo ' | '. nys_original_post( __('Help') );
    		echo '</span></div>';
    	}

    It just checked it the url contains 'post-new.php' and outputs the corresponding HTML.

    I think this should be a setting in the plugin.

    Also, I'm having the same issue some people is having here: all new subscribers are added with a role of "none". Does it affect if the person gets the email or not? I changed them all to 'Subscriber' just in case...

    http://wordpress.org/extend/plugins/navayan-subscribe/

  2. joseamirandavelez
    Member
    Posted 2 years ago #

    Moved this post to correct place.

  3. Lars-Andreas Kvisle
    Member
    Posted 2 years ago #

    I second the suggestion of having an option to make "Notify subscribers" checked a default option. I intend to publish by e-mailing articles to my blog. Readers will not be notified about articles published by e-mail unless the default setting is "Notify subscribers" checked.

    However, I'd like to say that this plugin appears excellent so far.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Navayan Subscribe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic