| Anonymous | Login | Signup for a new account | 21-11-09 09:32 GMT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| 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 |
||||||
|
||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |