FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » how to create an automatic process to add a list of users (how to create an automatic process to add a list of users)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
how to create an automatic process to add a list of users [message #167981] Sun, 02 December 2012 21:16 Go to next message
peterz   Australia
Messages: 8
Registered: March 2011
Location: melbourne
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I want to create a process to automatic add a list of users which from csv file.
Can I direct insert to fud30_users table. Which tables related to add new users.

Thanks.

Peter

[Updated on: Sun, 02 December 2012 22:27]

Report message to a moderator

Re: how to create an automatic process to add a list of users [message #167982 is a reply to message #167981] Mon, 03 December 2012 00:25 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
I guess you can, but I would rather use the FUDAPI. See last example on the wiki page.
Re: how to create an automatic process to add a list of users [message #167983 is a reply to message #167982] Mon, 03 December 2012 00:50 Go to previous messageGo to next message
peterz   Australia
Messages: 8
Registered: March 2011
Location: melbourne
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks,
can I ask where is file fudapi.inc.php?

and can I just insert to table fud30_users , sql like: INSERT INTO fud30_users (login, alias, passwd, salt, name, email, time_zone, join_date, theme, users_opt, last_read) VALUES (...?

Re: how to create an automatic process to add a list of users [message #167986 is a reply to message #167983] Mon, 03 December 2012 12:41 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Fudapi.inc.php is in the forums FUDdata/scripts directory.

Yes, you can.
Re: how to create an automatic process to add a list of users [message #167988 is a reply to message #167986] Mon, 03 December 2012 19:55 Go to previous message
peterz   Australia
Messages: 8
Registered: March 2011
Location: melbourne
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thank you again.

If I want to remove all old users except admin, can I just remove users from one table named fud30_users?

What about their posts?


Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: User name in 2-byte
Next Topic: SQL Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 17 14:36:41 EST 2017

Total time taken to generate the page: 0.00712 seconds