Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-28-2010, 05:48 PM
Gnappy Gnappy is offline
 
Join Date: Sep 2003
Location: Italy
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-28-2010, 05:55 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gnappy View Post
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!
Do you want only the email addresses or the usernames associated with those email addresses as well?

Anyway, to get only the emails run this query at the SQL tab at your phpmyadmin:

Code:
SELECT email FROM `user`;
To get the email addresses and the usernames associated with those email addresses, run this query instead:

Code:
SELECT email, username FROM `user`;
If your db tables have prefix, include that as in well in the query.
Reply With Quote
  #3  
Old 05-28-2010, 06:06 PM
Gnappy Gnappy is offline
 
Join Date: Sep 2003
Location: Italy
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 05-28-2010, 06:14 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to hear that you got it solved. I forgot totally about the option to run queries from the acp.
Reply With Quote
  #5  
Old 10-09-2010, 07:34 PM
terracore terracore is offline
 
Join Date: Dec 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys for the posts/thread. It solved my problem.
Reply With Quote
  #6  
Old 03-23-2011, 09:37 PM
Gnappy Gnappy is offline
 
Join Date: Sep 2003
Location: Italy
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ...
or a code like this:
Code:
SELECT username, email FROM user, usergroup WHERE usergroup_id='2' AND usergroup_id='7' AND ...
This code is NOT correct but is just to explain my idea, if it's correct..

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07698 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete