Support » Plugins and Hacks » [Plugin: Post Notification] Auto Subscribe When New User Registering doesn’t work

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem. I have to manually add new subscribers !

    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. ^__^

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

    datapharmer

    (@datapharmer)

    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);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Post Notification] Auto Subscribe When New User Registering doesn’t work’ is closed to new replies.