Yii PHP Framework extension for registration and management users accounts.

protectedreturn array( ... // autoloading model and component classes 'import'=>array( 'application.models.*', 'application.components.*', 'application.modules.user.models.*', 'application.modules.user.components.*', ), ... 'modules'=>array( 'user', ), ... // application components 'components'=>array( ... 'user'=>array( // enable cookie-based authentication 'allowAutoLogin'=>true, 'loginUrl' => array('/user/login'), ), ... ), ... );
array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
Default users:
Total 20 comments
This extension is awesome !! Worked perfectly ..
I loved the profile fields management feature, this is what i need exactly.
I am new to yii. I have been able to deploy this extension. I am looking for documentation or instructions for adding/removing user profile fields. Can anyone help?
Comon guys.. if you like the module show it. Don't be lazy.
Great job, everything went smooth.
I changed views/admin/_form.php and views/profile/edit.php , where $field->widgetEdit($profile) is called twice with no apparent reason...
change this :
into :
Hi!
In order to display the image in case it is one, I changed viewAttribute in UWfile.php :
I also changed the editAttribute method to display the actual file when editing :
Hello, congrats, really cool module. Let me make a small notice: ProfileFieldController.php in line 66 tries to register a js file "form.js" what is nowhere. Can it cause some problems?
Hi I was trying to put the user create form in a dialog to be called on demand as an ajax popin to create a new user. but strangely the same form has all it's required fields properly set when rendered normally as a page , but when in the dialog called by ajax, only the $profile fields are required and the $model validation always passes even though some parts are mandatory ? any idea ?
Hey guys, I couldn't find any mass import ability for Yii-User, so I wrote an extension. You can find it here:
http://www.yiiframework.com/extension/yii-userimport/
Tried installing this module on a new Yii installation and kept getting this error. 'Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file.'
I realised i was moving the contents of the modules directory that comes with this extension download, instead of moving the whole modules directory and dropping it into my protected directory.
this module has css files within it's folders, but views and grids and links are as simple as default views of Yii. does it have a special style? if so, how can I config it? I've tried to attach it's css files manually but nothing has changed.
I'm trying to disable auto login and have set autoLogin to false in main.php as follows:-
but it doesn't seem to make any difference.
I am presuming that the 'autoLogin' parameter in the module section is autoLogin after Registration and doesn't affect cookie based login.
Thanks
There's a mysterious line in WebUser.php where it instantiates UserLoginStats class.
It's like this:
where does this class come from? I've grepped all sources and even sources in yii framework directories and there is no such class definition.
I am confused.
How can i display some existing users' informations in yii-user's module plz ? i need to display these informations in session value after.
Hello,
How can I allow the admin to see a users hidden fields?
I want to implement Facebook & Google Login but facing hard time in implementing them. Will OAuth work for FB and Google both? Please guide me on How to implement.
A very nice module. But there's two buts: 1. Pity cannot use it as a module inside a module 2. Pity that a user can be either just a user or a superadmin and no roles functionality is implemented.
@awilum: schema.mysql.sql is under /protected/modules/user/data/
I read somewhere about a new release coming out any time. I am wondering if salted passwords might be part of that?
great
Leave a comment
Please login to leave your comment.