[Module] Yii User Management Module

It runs fine after some corrections:

[list=1]

[*]look for the database, some table names are incorrect

[]check our php version, i use now 5.3.8 because installer dont like my old version 5.2.

[*]set error_reporting(0); makes problem in translation module

[/list]

after deleting a comment the app don’t redirect correctly and crash

fix it by patching YumProfileCommentController line 50:

BUG $this->redirect(array(Yum::module()->profileView, ‘id’ => $comment->profile->user_id));

FIX $this->redirect(array(’//profile/profile/view’, ‘id’=>$comment->profile->user_id));


$this->redirect(array(Yum::module('profile')->profileView,						'id' => $comment->profile->user_id));

is a even better fix. Thanks for noting this! I have fixed it in the svn.

There is a completely new version with singular table and module names in the svn. As

soon as my final tests are done, i will release a new rc7. This tests should avoid the

brown-bag-errors from prior yum releases ;)

vision: any ideas why PHP 5.2 does not work?

my pleasure. with your code i get

please note that also when inserting a comment there’s a little bug: pressing “insert comment” button don’t refresh the page and don’t ajax add comment to the page

now i’m tryin to get facebook login working using html5 code and not the old xfbml provided in your wiki :)

for now i can authenticate but then nothing happens (no new user | new session), and I discovered that’s because loginbyfacebook() is never called because facebook->getsession does not work for some reasons

P.S.: i am developing over php 5.3 with no problems for now

:( overwrited my working copy with your in svn, reinstalled, i got this error

this is because the installer generate a config array with deprecated values… deleting those values from config/main.php I managed it to work again :)

why in YumAuthController.php you have the facebook login into the POST YumUserLogin check? this way loginByFacebook() is never called

editing authcontroller i can call the function but something goes wrong, yii can’t load yumprofile class:

then, if i add this:


Yii::import('application.modules.profile.models.*');

i can go through but this line return null:


$profile = YumProfile::model()->findByAttributes(array('facebook_id' => $fb_uid));

The breaking install has somethin todo with the mysql functions. I forget what special it was.

On time i search for the send_digest view in the messenger. What was that?

Another thing is the send message for an unser who is not to find.

Greez from Berlin

Ok, updated to last trunk in cvs.

This bug:

Comes in the profile visits in the img link

Unable to resolve the request "profile/view".

Hey guys, yii newb here:)

I get this error when installing yum 0.8rc5


Property "CWebUser.isAdmin" is not defined.

Source File

[..]\yii\framework\web\auth\CWebUser.php(108)

when I visit index.php/user/user/login

Could you help me find out why this occurs?

Also, what is the CVS url to download the latest trunk?

Thanks a lot for a great module,

//Catalin

Hi Cata,

you have to set YumWebUser as user component in your application config file.

‘components’ =>

‘user’ => ‘application.modules.user.components.YumWebUser’

are you sure you followed every step in the installation instructions?

let me know if it works or if you encounter additional problems or even bugs

the latest svn is always at code.google.com/p/yii-user-management

Thanks for the answer, indeed I had a setup from version 0.5, and had installed version 0.8.

Now another error: Property "Role.title" is not defined. I look in the database and my tbl_role DOES contain a title field.

One error in the latest build is the name of member variable userHasRoleTable in class RoleModule. Should be ‘userRoleTable’.

Looks great,

Hello again, guys.

With all respect for your great work, I was wondering: I notice version 0.8 has the users module working (with small glitchces, such as an error when clicking the "text translations" link), but other modules somehow are still under development, such as registration and usergroup.

Am I missing something?

For instance, when I visited the url /usergroup/usergroup/index, I got errors indicating that usergroupTable and usergroupMessagesTable variables had not been set on module level. Overcome that step (I create these members), I get 404 error.

The same for registration module: registration/registration (registration/registration/index, registration/registration/admin) show no page, just 404.

Thanks

Hey Cata,

please give the latest SVN version a try. It has many bugs fixed. Please try this on a fresh installation since some table names have been changed (to singular, user instead of users, …)

i should really prepackage the svn version. how about a yii-user-management-XMAS2011 version? :)

I have installed version 0.7 with different tablenames: tb_user etc.

Changed tablenames in config/main.php and UserModule.php too.

although i got the follwing error:

"The table "users" for active record class "YumUser" cannot be found in the database."

I found out that tablename is always set $this->_tableName = ‘users’ in YumUser.php line 61

Missing Brace?




public function tableName()

{

    	if (isset(Yii::app()->controller->module->usersTable))

      		$this->_tableName = Yii::app()->controller->module->usersTable;

    	elseif (isset(Yii::app()->modules['user']['usersTable'])) 

      		$this->_tableName = Yii::app()->modules['user']['usersTable'];

    	else

      		$this->_tableName = '{{users}}'; // fallback if nothing is set

// missing brace ?

      		$this->_tableName = 'users'; // fallback if nothing is set


		return YumHelper::resolveTableName($this->_tableName,$this->getDbConnection());

}




yii-user-management-XMAS2011 version

good idea

Maigret: Indeeed! Thats a missing brace ;) He always overrides everything above with ‘users’…

Please upgrade to one of the more current versions, i suggest 0.8rc or svn

I actually ran into a couple issues 2wks ago with a fresh install from svn (r418) due to the table names as well…also, I remember having to declare some public properties in the module in order for it to recognize the tables called out in config.

Hello,

Is there a way to automatically login a user upon successful registration?

I currently use this code, but for some reason is not working a 100%:




  $login = new YumUserIdentity( $profile->email, $form->password ); 

  $login->authenticate();

  Yii::app()->user->login( $login );



thx,

–iM

Imehesz: thats a good question. I don´t like automatic login upon successful registration for security reasons;

but there should be a (default off) option in Yum! Good idea! Already any ideas why your code does not work?

Nevertheless i will implement this feature and release a new version. More and more people are interested in yum, thats great! Time for a (at least) bug-free “stable” release… ;)