largersmallernormaltext version of this page

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003598phplistSubscriber Importpublic14-07-05 20:0718-02-08 14:19
Reporterjotazzu 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version2.8.12 
Target Version2.11.XFixed in Version 
Summary0003598: Import without file uploading for the topic 'import emails with different values for attributes'
DescriptionThis is a solution to import emails without file uploading for the topic 'import emails with different values for attributes' in PHPlist 2.8.12. The code to be changed is only in admin/commonlib/pages/importcsv.php. The solution is also useable for older versions of PHP (tested with v4.1.2).
Additional InformationThe basic idea is to paste the email data in a textarea field in the import form. The pronblem is to keep the email data persistent for some time between page requests. I did this by storing the email data itself in the $_SESSION["import_file"] variable instead of the file name of the temporary file. In this way the changes to be made to the code keep minimal.
TagsNo tags attached.
Attached Files? file icon importcsv.TEXTAREA.php [^] (35,121 bytes) 14-07-05 20:07

- Relationships
related to 0002705closed PHPList v2.11 release 

-  Notes
(0005674)
michiel (administrator)
15-07-05 02:23

but if you've been hacking the existing importcvs file and only made a few changes, it may be more desirable to make those changes to that file and make it optional. Otherwise, the whole process of importing a CVS-type list of emails, from whatever source would have to be updated twice in case a bug is found.

Maybe make it some "config" thing to choose whether to see one or both. Isn't that a better approach?

Alternatively, we could split importcsv into a "retrieve source" and "process source" section, where the former would be two and the latter one.

Also, if you do so, can you work from the CVS, as the latest importcsv has changed a lot to handle the translations.


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker