I found a way to import users from an other database:
First I made my "Import table" in the phplist database:
- Code: Select all
CREATE TABLE `phplist_import_user` (
`id` int(11) NOT NULL auto_increment,
`email` varchar(255) NOT NULL default '',
`confirmed` tinyint(4) default '0',
`blacklisted` tinyint(4) default '0',
`bouncecount` int(11) default '0',
`entered` datetime default NULL,
`modified` timestamp(14) NOT NULL,
`uniqid` varchar(255) default NULL,
`htmlemail` tinyint(4) default '0',
`subscribepage` int(11) default NULL,
`rssfrequency` varchar(100) default NULL,
`password` varchar(255) default NULL,
`passwordchanged` date default NULL,
`disabled` tinyint(4) default '0',
`extradata` text,
`foreignkey` varchar(100) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`),
KEY `idx_phplist_user_user_uniqid` (`uniqid`)
) TYPE=MyISAM AUTO_INCREMENT=497 ;
and copied my email adresses who I like to import into the email colum
Then I copied the phplist_user_attribute table and renamed to phplist_import_attribute. The same with phplist_user_attribute to phplist_import_user_attribute
That's it for the database.
The last step is in the php admin interface:
open manage user and click on import users and then import emails from another database.
Server: localhost
User: databaseuser
Password: databasepasswort (NOT phplist admin password)
Database Name: phplist (in my case)
Table prefix: phplist_
Usertable prefix: phplist_import_
And don't forget to choose a list.
That's it
(I tried first do make my tmp folder readable but without success )
