FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Basic scripted user manipulation
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=33820&th=7073#msg_33820
lives in the scripts directory
Small patch for rename to work in forum_data dir:-
--- src/users_reg.inc.t.orig 2006-09-20 23:35:16.000000000 +0100
+++ src/users_reg.inc.t 2006-09-20 23:37:15.000000000 +0100
@@ -178,6 +178,7 @@
$this->html_fields();
q("UPDATE {SQL_TABLE_PREFIX}users SET ".$passwd."
+ login="._esc($this->login).",
name="._esc($this->name).",
alias="._esc($this->alias).",
email="._esc($this->email).",
]]>pssc2006-09-22T17:27:28-00:00Re: Basic scripted user manipulation
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=34956&th=7073#msg_34956
I have saved an Excel file of my users in CSV format. It is my understanding that I could use PHP's fgetcsv() function to fetch users one at a time and for each user perform the create user. In other words, I don't want to add users one by one as follows:
I would like to read a file and create the users until I hit the end of the file.
Could someone assist me in adding this logic into users.php (see original script attachment)? I have about 2000 users I want to add as users in the next day or so.]]>appscontent2006-11-27T13:45:26-00:00Re: Basic scripted user manipulation
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161393&th=7073#msg_161393
appscontent het op Mon, 27 November 2006 15:45 geskryf:
I would like to read a file and create the users until I hit the end of the file.
See example, "Add a list of users from a CSV file" at FUDAPI.]]>naudefj2009-12-20T07:37:14-00:00