Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (Harold, Mark S, packlite, Ruben Rocha, Sirdude), 27 Guests and 22 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/04/09
Posts: 1
Top Posters (30 Days)
Ruben Rocha 95
Rick 85
Mark S 74
Gizmo 49
Thelockman 49
driv 35
Sirdude 32
ntdoc 28
AllenAyres 26
packlite 26
Latest Photos
bear test
Beach Barbie-Q
Sunset
Accept the challenge!
Trees
Topic Options
Rate This Topic
#218466 - 10/27/08 07:19 PM How Do I generate an email list of new registrant this month?
24hourcampfire Offline
journeyman

Registered: 11/02/06
Posts: 56
Hi Guys:

I'm sending out a monthly newsletter using third-party software, and I'd like to generate a list of all new registrants for the month (since the last newsletter) so that I can add them to my sorted list.

How To? Mysql command maybe?

BTW, I'm running 7.1.

Thanks!
_________________________
Rick Bin
24hourcampfire.com

http://www.24hourcampfire.com/ubbthreads/ubbthreads.php

Top
#218468 - 10/28/08 01:18 AM Re: How Do I generate an email list of new registrant this month? [Re: 24hourcampfire]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1316
Loc: Breda, NL
Method 1:
Sql Query:
SELECT USER_DISPLAY_NAME
FROM ubbt_USERS
WHERE USER_REGISTERED_ON >=1222560000


This works based on the date. You can calculate that date on this site.

Method 2:

I would prefer this one. Just make a note with each newsletter of the highest USER_ID and use this query:

Sql Query:
SELECT USER_DISPLAY_NAME
FROM ubbt_USERS
WHERE USER_ID >5000
_________________________

Top
#218472 - 10/28/08 07:35 AM Re: How Do I generate an email list of new registrant this month? [Re: blaaskaak]
driv Offline
Pooh-Bah
****

Registered: 01/10/04
Posts: 1747
Loc: Essex, UK
Is there anyway that this could be tweaked to give a list of email addresses rather than usernames?
_________________________
Oi Oi Saveloy!
(Courtesy of Sd - well known Anglophile...!?!)
My True star rating wink

Top
#218565 - 10/30/08 01:22 PM Re: How Do I generate an email list of new registrant this month? [Re: driv]
driv Offline
Pooh-Bah
****

Registered: 01/10/04
Posts: 1747
Loc: Essex, UK
I guess I need this?

SELECT USER_REAL_EMAIL FROM ubbt_USER_PROFILE

but how do you tie it in with another table i.e. ubbt_USERS?

SELECT USER_DISPLAY_NAME
FROM ubbt_USERS
WHERE USER_REGISTERED_ON >= .....
_________________________
Oi Oi Saveloy!
(Courtesy of Sd - well known Anglophile...!?!)
My True star rating wink

Top
#218568 - 10/30/08 01:42 PM Re: How Do I generate an email list of new registrant this month? [Re: driv]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1316
Loc: Breda, NL
Sql Query:
SELECT t1.USER_DISPLAY_NAME,t2.USER_REAL_EMAIL
FROM ubbt_USERS as t1,
     ubbt_USER_PROFILE as t2
WHERE t1.USER_ID=t2.USER_ID
and t1.USER_ID >5000


Something like that, above is untested.
_________________________

Top


Shout Box

Today's Birthdays
theregit
Recent Topics
7.4.1 show/hide category bug
by Seattlebrian
Today at 11:56 AM
7.4.2 Discussion
by Rick
Today at 10:21 AM
UBBCentral now running 7.4.2
by Rick
Today at 10:21 AM
New members don't get access and are not displayed in the config panel
by Yomar
Yesterday at 03:32 AM
How to Change Link Color / Underline in styles?
by ECNet
01/07/09 10:00 PM
Forum Stats
4298 Members
33 Forums
30692 Topics
156038 Posts

Max Online: 978 @ 06/24/07 08:19 PM