The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Gazette (http://www.thevbgeek.com/forumdisplay.php?f=56)
-   -   imported another db, want to add those users to subscribers (http://www.thevbgeek.com/showthread.php?t=5336)

Loco 06-22-2010 05:30 PM

okay, I know it's been a while since I've been here but I have this question again

what does this setting do?

admincp > gaz > tools >subscription tools > Subscribe all users > yes

doesn't it subscribe all users to the newsletter?

thx


ps.. I ran the query's and only show 30 subscribers
when I sent an email out earlier this week, it was 1800 or so
How can I get these 1800 setup on the newsletter?

thx

Morgan 06-24-2010 07:29 PM

Subscribe all users does this:
Code:

if ($action == 'savesubscriptiontools')
{
        $vbulletin->input->clean_array_gpc('p', array(
                'formatall'                => TYPE_UINT,
                'subscribeall'        => TYPE_ARRAY_BOOL
        ));

        $format        = $vbulletin->GPC['formatall'];
        $subscribe        = $vbulletin->GPC['subscribeall'];

        if ($format)
        {
                $db->query_write("UPDATE " . TABLE_PREFIX . "gaz_subscriptions SET emailformat = " . intval($format));
        }

        if (count($subscribe))
        {
                foreach($subscribe AS $newsletterid => $value)
                {
                        $newsletterid = intval($newsletterid);
                        $db->query_write("UPDATE " . TABLE_PREFIX . "gaz_subscriptions SET newsletter$newsletterid = 1");
                }
        }

        redirect('tools', 'gaz_saved');
}

It depends on what queries you ran. The values in the newsletterX columns in the gaz_subscriptions table are 1 for subscribed and 0 for not.


All times are GMT. The time now is 12:13 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.