WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Post Notification] Auto Subscribe When New User Registering doesn't work (5 posts)

  1. sky9085
    Member
    Posted 4 years ago #

    Hello! Since i upgraded WordPress the function AutoSubscribe when new user regist. doesn't work. The email of new user infact doesn't appear in the list of post subscriber and they don't receive email anymore....Plaese help me! Thanks!

    http://wordpress.org/extend/plugins/post-notification/

  2. sidd82
    Member
    Posted 4 years ago #

    I have the same problem. I have to manually add new subscribers !

  3. vacharaphol
    Member
    Posted 4 years ago #

    I try to fix this error in functions.php which you will fine in wp-content\plugins\post-notification

    if change
    function post_notification_get_link(){
    $page = get_option('post_notification_url');
    if(is_numeric($page)) return get_permalink($page);
    return $page;
    }

    with this
    function post_notification_get_link(){
    $page = "http://www.dhammada.net/post_notification_header-4/";
    return $page;
    }

    where "http://www.dhammada.net" is my website and "post_notification_header-4" is register page for post notification.

    It's only temporary solution. ^__^

  4. vacharaphol
    Member
    Posted 4 years ago #

    I think the problem my come from "get_permalink($page)"

  5. datapharmer
    Member
    Posted 4 years ago #

    vacharaphol is correct. The page number is being returned instead of the url which is what is expected. To fix, do the following:

    replace code from above (starting line 72) with:

    /// returns a link to the Post Notification Page.
    function post_notification_get_link(){
    	$page = get_option('post_notification_url');
    	if(is_numeric($page)) $the_page = get_permalink($page);
    	return $the_page;
    }

    Another problem you will likely find is that some hosts don't like the trailing & left on confurls in the email templates. To fix, just change this:

    $confurl .= "code=$code&addr=" . urlencode($addr) . &;

    to this:

    $confurl .= "code=$code&addr=" . urlencode($addr);

Topic Closed

This topic has been closed to new replies.

About this Topic