Hi,
It is possible, but there is no built-in support for this. It can be done with a custom PHP script or a MySQL import.
HiHow do I add multiple users with csv? is it possible?
--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/c5175ff9-2020-4751-acd1-1806e48bbb3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sincerely,
Pablo Tejada
From Mobile
$user = new User();
// If all you have is the username and password then you must disable the email requirement
$user->addValidation('Email','0-50','');
// Assuming $allUsers is a multi-dimensional array representation of the rows and columns
foreach($allRows as $row)
{
/*
* Assign each element of the array to a variable, this assumes there are only two elements:
* the username and the clear text password
*/
list($username, $password) = $row;
/*
* Register the user
*/
$user->register(array(
'Username' => $username,
'Password' => $password,
));
}
use ptejada\uFlex\User;
$user = new \ptejada\uFlex\User();
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/127b98ad-2132-46c2-8bac-c56186abe495%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kodu burainclude './uFlex/core/config.php';include './uFlex/core/validations.php';$user = new ptejada\uFlex\User();$user->start();
// If all you have is the username and password then you must disable the email requirement$user->addValidation('Email','0-50','');
// Assuming $allUsers is a multi-dimensional array representation of the rows and columns
$allRows = array( array("User1", "123456","as...@aaaa.com"), array("User2", "34455","asaft...@aaaa.com"), array("User3", "65656","as...@atyytaa.com"));
foreach($allRows as $row){ /* * Assign each element of the array to a variable, this assumes there are only two elements: * the username and the clear text password */ // print_r($row); list($username, $password, $email) = $row;
/* * Register the user */ $user->register(array( 'Username' => $username, 'Password' => $password, 'Email' => $email, 'Activated' => 1 )); }ya girin...Hi