Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-31-2000 Last Update: Never Installs: 0
 
No support by the author.

Hi everyone!

I posted this a couple weeks ago in the PHP coding section, but really didn't get any suggestions and I have been stumbling trying to do this myself. I was wondering if I could hire anyone that might be interested in writing this for me and that had a couple hours of free time.

Here is the original request:

I need to import a large number of email messages that I have stored in an Access database into vBulletin.

I guess my first step should be taking my Access data and importing it into MySQL. I think I can do this using PHPMyAdmin pretty easily, I see it handles CSV data files which I can dump from Access.

Now comes the 'difficult' part, at least for me. I need to read all of these email records by their normalized subject (the subject without the RE or FW prefixes in it), create a new thread if it doesn't already exist for that subject, then create the post itself.

My import table looks like this (this is the standard table layout created from the Outlook to Access import utility):

Code:
Table_Name         Data_Type   Sample_Contents
ID                 LongInt(4)  32193
Importance         LontInt(4)  1
Icon               Text(255)   IPM.Note
Priority           LongInt(4)  0
Subject            Text(255)   RE: Question about something
From               Text(255)   Chris Schreiber
MessageToMe        Yes/No      0
MessageCCMe        Yes/No      0
SenderName         Text(255)   owner-list@mydomain.com
CC                 Text(255)
To                 Text(255)   list@mydomain.com
Received           Date/Time   7/7/2000 2:59:32 PM
MessageSize        LongInt(4)  3023
Contents           Memo        This is my question here
Created            Date/Time   7/7/2000 2:59:32 PM
Modified           Date/Time   7/7/2000 2:59:32 PM
SubjectPrefix      Text(255)   RE:
HasAttachments     Yes/No      0
NormalizedSubject  Text(255)   Question about something
ObjectType         LongInt(4)  5
ContentUnread      LongInt(4)
I put the fields I think I need to use in bold. I tried start writing something based on the import.php script, I thought it might be a place to start, but there alot in there I don't think I will need to do.

Thanks,
-Chris

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-02-2000, 02:35 AM
Guest
 
Posts: n/a
Default

Sure, it could be done.

Question:
How would you determine the order posts would go into on a thread? By date? Sometimes mail lists screw up and send out replies before the inital message, which would be quite confusing when reading a thread.
Reply With Quote
  #3  
Old 08-02-2000, 02:54 AM
Guest
 
Posts: n/a
Default

Yes I was thinking about having them go into the thread by email date & time. I know they aren't always in order, but most of them are in pretty good order, the listserver is pretty fast at getting the messages out. I know there will be some that are missing or out of order though. This is just alot of content I'd love to add to my site.

-Chris
Reply With Quote
  #4  
Old 08-02-2000, 02:58 AM
Guest
 
Posts: n/a
Default

Alright, then it won't be much of a problem. Assuming you get all the data into mysql (I'm very unfamiliar with access ), I should be able to setup some sort of script to import the data.
Reply With Quote
  #5  
Old 08-02-2000, 03:01 AM
Guest
 
Posts: n/a
Default

That would be great! I know I can export the data from access and import into MySQL pretty easily, the script was just the hard part for me

Thanks,
-Chris
Reply With Quote
  #6  
Old 12-06-2000, 08:32 PM
Guest
 
Posts: n/a
Default

I dunno how you're doin' with this, but as a great trick for dealing with databases imports where some fields don't look exactly like you want
stick it in excel,
then use the autosort feature, it will provide a dropdown box for each field,m and you can easily see if data is looking different. So in one shot you can list all records starting with FW:
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 02:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03791 seconds
  • Memory Usage 2,232KB
  • Queries Executed 19 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (5)postbit
  • (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_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
  • 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