largersmallernormaltext version of this page

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003980 [phplist] Subscriber Import feature always 07-09-05 09:21 18-02-08 14:19
Reporter chronarc View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 2.8.12
Summary 0003980: Subscriber page id when importing multiple users
Description The subscriber page id was being set to null when importing users.
I tweaked the code to use the default subscriber page id. However it would be great to be able to specify which subscriber page id to use when importing.
Additional Information code change to use default subscriber page id in /admin/import1.php
Line 150…
# ****** find default subscriber page id and apply to NEW users ONLY
    if (!$page_id) {
      $page_id = getConfig("defaultsubscribepage");
      # fix the true/false issue
      if ($page_id == "true") $page_id = 1;
      if ($page_id == "false") $page_id = 0;
      if (!$page_id) {
        # pick a first
        $req = Sql_Fetch_row_Query(sprintf('select ID from %s where active',$tables["subscribepage"]));
        $page_id = $req[0];
      }
    }
    # *******

and line 200

# **** my changes add subscribepage $page_id to INSERT statement
          $query = sprintf('INSERT INTO %s (email,entered,confirmed,uniqid,htmlemail,subscribepage) values("%s",now(),%d,"%s","%s","%d")',
            $tables["user"],$email,$notify != "yes",$uniqid,$htmlemail,$page_id);
 # **** end of my changes
Tags No tags attached.
Attached Files

- Relationships
related to 0002705closed PHPList v2.11 release 

-  Notes
(0006657)
chronarc (reporter)
07-09-05 09:45

Also when I specify that a confirmation email be sent to users in import file, the confirmation message comes from defaults on “Configure” menu option NOT the default subscriber page. If one could set the subscriber page id on import it would make sense to use that pages confirmation message.


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