[Module] Yii User Management Module

Now there are 24 pages :D

one of the most cool reasons github rocks, is, that its using git - which is decentral. Just clone the repo and do a pull request, then all your changes go back into the repository. At the beginning it feels a bit unfamiliar (when used to svn) but after that, it rocks !

Hello,

Does anybody know how I can use yum with theming? I mean I have an application with front-end and backend and just installed yum. I have 3 themes(backend, frontend and frontend logged in user) and I want to make yum use a certain theme based on user being logged in or not/being admin(also use the theme layout and not yum one). I want to implement this outside of the yum module as I don’t want to disrupt the code in case of module update.

Also I think it would be a good implement if we can make yumcontroller extend controller and not ccontroller as in this way a user could choose his own theme there and not have to modify the module(this way it only remains to change the layout- login layout).

Thanks.

Hey guys,

I’m trying to install and am going through the install_tutorial.txt following it word for word. I’m getting this exception:

Fatal error: Call to undefined method Yum::resolveTableName() in C:\xampp\htdocs\temp\yii\WebRoot\protected\modules\user\controllers\YumInstallController.php on line 439

I’ve done a search for that method in files and I’m not finding it. Something get misplaced? Or am I just missing it?

Thanks.

Update:

I threw these lines back into YumInstallController.php after looking through the git repo:




public static function resolveTableName($tablename, CDbConnection $connection=null)

{

    return $tablename;

}



I was able to complete the install after I updated user/models/Yum.php with that.

makeron: i have not used yum with themeing yet. if you have any ideas how we can achieve it, let me know. You can create your project-specific Controller that extends from YumController, so you could implement your theme-handling in it.

aka_flow: this has been fixed, thank you

Hello.

So I’m starting a project for a Spanish company and I choosed Yii User Management to implement on their app.

Because the Spanish translation isn’t complete on the last version on github, I coded some php real quick to create the SQL insert command to all the Deutch translations that doesn’t have also a Spanish traslation. Then i’ve gone to Google Translator to translate all the lines from DE to ES (by hand :D ).

The attachment has the full Spanish translation that a Spanian should check out since i’m Portuguese and never had spanish classes.

2986

es.txt

hey,

it took some time to merge them. But here you are:

thanks for your work !

Found a issue within actionCompose. While composing a message to an user, upon saving the message in the database, I get an error saying that message_read doesn’t have a default value. I think we need to have default value set in the database for message_read, or maybe it is something I miss.

How would I let yii know to use my default controller instead of YumController?

Also I have another question:how can I block all possible actions using accessRules? I want to create a demo user which cannot access any action but can’t figure out how to implement this outside yum(don’t want to modify the module).

Thanks

And now the Portuguese translation. :)

Hello,

Does anybody know how is the user_role table populated? I mean where in the code it populates the user role table as I see no model is created for this table and also tried to use the user’s role property and populate it before user save but this seems not to work.

I want to use this in order to assign user role upon registration. The admin would set in the backend the default user role each new registered user would get and upon registering the user gets the new role.

Thanks,

Vlad

is there an answer to this? i’ve been combing the web looking for a solution - no idea how to render a dropdownlist profile field on my registration form.

Hi there.

I don’t like asking this question, but I have spent way to much time now trying to figure it out.

When I implement the ‘registration’ feature, it automatically requires users to enter their firstname & lastname.

I have removed them from the view file, but I have no idea how to remove them from the ‘required’ rules, and I can’t seem to figure out where these variables belong in the first place.

So every time I try to register I get the message "First name cannot be blank. Last name cannot be blank."

Oh and by the way, where do I modify those error messages?

Thanks for a great module!

I figured it out. The required fields came from the $profile which was included in the view and the controller files. Just delete it and everything should be fine.

Btw. my install for some reason also did not create table: ‘yumtextsettings’. Thanks for posting the SQL statement on github!

Hi thyseus. I think your modules are not compatible with php > 5.3.8

sir im new in yii, i read all your installation guide. but when i got to local/myapp/index.php/user i got this error:

l error: Call to a member function get() on a non-object in C:\xampp\htdocs\BLOGERS\protected\modules\user\models\YumUser.php on line 365

Call Stack

Time Memory Function Location

1 0.0008 336296 {main}( ) …\index.php:0

2 0.0277 1902864 CApplication->run( ) …\index.php:13

3 0.0277 1902864 CWebApplication->processRequest( ) …\CApplication.php:162

4 0.0298 2128368 CWebApplication->runController( ) …\CWebApplication.php:135

5 0.0352 2797048 CController->run( ) …\CWebApplication.php:276

6 0.0358 2838656 UserModule->beforeControllerAction( ) …\CController.php:264

7 0.0391 3219544 YumWebUser->isAdmin( ) …\UserModule.php:239

8 0.0392 3219704 YumWebUser->data( ) …\YumWebUser.php:153

9 0.0455 4313176 YumUser::model( ) …\YumWebUser.php:12

10 0.0455 4313224 CActiveRecord::model( ) …\YumUser.php:49

11 0.0455 4315792 CActiveRecordMetaData->__construct( ) …\CActiveRecord.php:379

12 0.0890 5302256 YumUser->relations( ) …\CActiveRecord.php:2289

Hi,

I am new to YII , I have installed user management extention.

I am using latest version of YII and yii-user-management.

Everything working very well exclude of usergroup in this page I am getting error like

Property "UsergroupModule.usergroupTable" is not defined. please guide me to solve this error.

Thax in advance.

Just add public $usergroupTable = ‘user_group’ to usergroupModule.

I added an issue on github(check it out) it worked for me…

Thanks for reply.

After making change I got another error The table "{{usergroup}}" for active record class "YumUsergroup" cannot be found in the database.