largersmallernormaltext version of this page

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003598 [phplist] Subscriber Import feature N/A 14-07-05 20:07 18-02-08 14:19
Reporter jotazzu View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 2.8.12
Summary 0003598: Import without file uploading for the topic 'import emails with different values for attributes'
Description This 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 Information The 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.
Tags No 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.


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker