The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Extract email addresses from DB
Hello guys,
I need to improve my newsletter system due the vb default one is very painful... So the first step is obtain and collect all the users email addresses from my DB. I thought there was a "simply hack" to do this but after many googling and searching here on vb.org I found NOTHING. I know I could get them from the DB but for particular reasons I cannot connect to the sql server by remote and, of course, I am not skilled enough to make a query that does a simple list(ehh lol ).. Can someone help me? Any kind of help will be very appreciated! --------------- Added [DATE]1275072902[/DATE] at [TIME]1275072902[/TIME] --------------- I think a query like this could work but my problem of remote connection still exists, so.. Code:
SELECT username, email FROM user |
#2
|
||||
|
||||
Quote:
Anyway, to get only the emails run this query at the SQL tab at your phpmyadmin: Code:
SELECT email FROM `user`; Code:
SELECT email, username FROM `user`; |
#3
|
|||
|
|||
Thanks borbole for your assistance!
To be honest I had already found this kind of solution(at the upper link) but I was concentrated to have the remote mysql access(denied for some reasons).... My solution was clear and veryvery easy: run that query via acp(Maintenance --> Execute SQL Query) By the way thanks borbole, I hope this will help others with the same issue |
#4
|
||||
|
||||
Glad to hear that you got it solved. I forgot totally about the option to run queries from the acp.
|
#5
|
|||
|
|||
Thanks guys for the posts/thread. It solved my problem.
|
#6
|
|||
|
|||
Hi guys,
sorry for bump again this thread (started by me ) but I have a question.. I wanna extract from my db just users that have activated its account by email. I thought to run a query like this: Code:
SELECT username, email FROM user WHERE usergroup_id='2' AND usergroup_id='7' AND ... Code:
SELECT username, email FROM user, usergroup WHERE usergroup_id='2' AND usergroup_id='7' AND ... Sadly I don't know the vbulletin DB diagram (also googled a lot), can someone help me? Thanks in advance! --------------- Added [DATE]1300949738[/DATE] at [TIME]1300949738[/TIME] --------------- Up! It is very strange that none is interested to extract usename and emails fro the DB to make newsletter with an external software. The common documentation about this is strongly poor... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|