largersmallernormaltext version of this page

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003980phplistSubscriber Importpublic07-09-05 09:2118-02-08 14:19
Reporterchronarc 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version2.8.12 
Target Version2.11.XFixed in Version 
Summary0003980: Subscriber page id when importing multiple users
DescriptionThe 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 Informationcode 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
TagsNo 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.


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker