Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:16 pm EST

Geeklog Forums

Newsletter Plugin is only adding new members SOMETIMES


Status: offline

kilerb

Forum User
Regular Poster
Registered: 03/19/08
Posts: 119
It's weird... We added the newsletter plugin to my site, and we checked the option off that says to add new users to the newsletter list.

It's almost 50/50 on whether it does or doesn't. The last 2 people that signed up for the site, were not added. They did complete registration and are active. Their Emails are not on the newsletter list. I tested it twice, once at home and once at work. 1 ended up on and one didn't. Someone else did it, and they ended up on. It's really strange...

Here's the code that is supposed to add new users to the newsletter list. Can you see anything wrong wtih it?


Text Formatted Code
/**
 * This function will inform all plugins when a new user account is created.
 *
 * @param     int     $uid     user id of the new user account
 *
 */
function plugin_user_create_newsletter($uid) {
    global $_TABLES, $_NL_CONF;

    if ($_NL_CONF['subscribe_new_users']) {
        $email = DB_getItem($_TABLES['users'], 'email', "uid = '{$uid}'");
        NL_addEmail($email);
    }
}


Thanks a lot!
 Quote

All times are EST. The time is now 09:16 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content