• 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…

    https://www.ads-software.com/extend/plugins/navayan-subscribe/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joseamirandavelez

    (@joseamirandavelez)

    Moved this post to correct place.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notification checkbox checked for default for new posts’ is closed to new replies.