Yii Framework Forum: [Module] Yii User Management Module - Yii Framework Forum

Jump to content

  • (30 Pages)
  • +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[Module] Yii User Management Module Discussion, Bug Reports and Feature Requests for the User Management Rate Topic: ***** 5 Votes

#141 User is offline   Drewniacki 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 19-July 10
  • Location:Gdańsk, Poland

Posted 24 September 2010 - 03:58 AM

How do I get profile fields of an active user (Yii:app()->user)?
0

#142 User is offline   pingala 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 14-July 10
  • Location:Dublin, Ireland

Posted 24 September 2010 - 04:24 AM

Hi,

I have managed to solve most of my problems with the integration of this module into my application, unfortunately I had to tweak some of the code to make it to work so an upgrade will be quite painful. Anyhow I'm still having a little problem with the recovery password controller.

Everything works up to the email sent to reset the password, I receive the email which has this url:
http://localhost/myapp/index.php/user/recovery/activkey/9a24eff8c15a6a141ece27eb6947da0f/email/test@localhost.com

the recovery password controller action is just one: actionRecovery and it is set as default action, it works fine for the email thing.

Whenever I open the url above I get this error message:

Quote

exception 'CHttpException' with message 'The system is unable to find the
requested action "activkey".'


there is no activkey action, that's a paremeter. Anybody able to explain what's happening?

Thanks
Cheers.
0

#143 User is offline   Drewniacki 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 19-July 10
  • Location:Gdańsk, Poland

Posted 24 September 2010 - 06:38 AM

@pingala,
You probably have to request index.php/user/user/recovery/activkey/. user goes twice as the first one is to specify the module and the second one specifies controller.
0

#144 User is offline   pingala 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 14-July 10
  • Location:Dublin, Ireland

Posted 24 September 2010 - 06:56 AM

View PostDrewniacki, on 24 September 2010 - 06:38 AM, said:

@pingala,
You probably have to request index.php/user/user/recovery/activkey/. user goes twice as the first one is to specify the module and the second one specifies controller.


I don't really think this is correct, the link is created by the extension in that way. This is the code

$activation_url = 'http://' . $_SERVER['HTTP_HOST'].
                  $this->createUrl(implode(Yii::app()->controller->module->recoveryUrl),
                                   array("activkey" => $user->activkey, "email" => $user->email));


However I have tried with no success.

Thanks anyway.
Cheers
T.
0

#145 User is offline   Drewniacki 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 19-July 10
  • Location:Gdańsk, Poland

Posted 24 September 2010 - 07:05 AM

One thing for sure -- Yii is trying to interpretate activekey as an action, while recovery is an action and activekey is only a name of parameter. So there is sth missing.

If it conforms you -- I also had some problems with URLs generated by the module and had to wrewrite some parts of code to make it work properly. Good luck!
0

#146 User is offline   welworx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 25-September 10

Posted 25 September 2010 - 03:29 PM

Hi guys,

I've tried to install yum and i always get the following errors:

Alias "application.modules.user.components.YumWebUser" is invalid. Make sure it points to an existing PHP file.
and
CException
Description

Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file.
Source File

/var/www/yii/framework/YiiBase.php(260)


After removing
array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest) 


from the main.php file inside the testdrive I could get rid of the first alias problem.



I have tried all of these:
index.php?r=user/install
index.php/user/install
user/install/installation
user/install/installer
user/installation/start

but nothing was working.


Details: YiiUserManagement_0.6 and yii-1.1.4.r2429


Does anybody know what is going wrong?

... hope you could help me!
0

#147 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 27 September 2010 - 05:41 AM

Hey everyone,

i am really close to release yii-user-management 0.8 as a public, prepackaged version. I am only finishing the new permission
subsystem that i am introducing in this Version. I think all of the bugs and problems mentioned here in this thread should be solved in this new Version. Here is the changelog so far:

Added avatar upload possibility for users
- Added 'visitors' to profiles (who visited whom when, and display it)
- Added support for send emails out of SwiftMailer (docs/swiftMailer.txt)
- Added DROPDOWNLIST field type to profile fields. see docs/dropdownlist_in_registration_form.txt for information on how to use this (thyseus)
- Added possibility to make roles selectable on registration (thyseus)
- Added user Generator (available under 'other' when debug mode is enabled)
- New default URL route '<app>/user/login' instead of less beautiful '<app>/user/user/login' (thyseus)
- Refactored Registration Process into YumRegistrationController (makes YumUserController less fussy) (thyseus)
- Removed AllowInactiveAccountLogin (don't needed anymore because of the new registration Options) (thyseus)
- Possibility to show administration hierarchy by HierarchyController (thyseus)
- Prepared ROLE_has_ROLE to determine what users of which role can administrate user that have which Role (thyseus)
- Added User Statistics (thyseus)
- Removed adminpanel (thyseus)
- prepared mail_send_method (thyseus)
- added password expiration date (experimental) (thyseus)
- reworked messaging System (thyseus)
- added new Relation widget that fixed MANY_MANY DropDownList problems (thyseus)
- Wrapped Yum::t() around Yii::t() to allow easier translations (thyseus)
- Renamed YumHelper to Yum (thyseus)
- changed menu Navigation to one big, hierarchical menu displayed as a treeview (thyseus)
- added yumSettings and yumTextSettings (thyseus)
- added differences between profile versions in admin View (thyseus)
- repaired Messages Validation (thyseus)
- Yum now tries to use the application layout by default. This can be
configured in the application configuration (thyseus)
- Added CEmailValidator to email profile field (thyseus)
- Made users/admin CGridView filterable (thyseus)
- Added AllowRegistration & AllowRecovery in Module Configuration
- Added quick Login widget (thyseus)
- Fixed registration form and enabled YumPasswordValidator to registration Form
- added qwerty's CPasswordValidator and ability to configure the password requirements in the Application configuration (renamed to YumPasswordValidator)

for people who can´ t wait there is always the SVN access at

http://code.google.c...ser-management/
0

#148 User is offline   iceblock 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 03-August 10

Posted 29 September 2010 - 07:52 PM

If I want to change the layout of some view files (eg user profile page) from this extension, is there a way to do it without actually hacking the codes from this extension? I don't want to redo the changes if it's upgraded.
0

#149 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 01 October 2010 - 12:08 PM

you can extend the YumProfileController and let this render his own view files.
0

#150 User is offline   thanhh83 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 22-May 10

Posted 13 October 2010 - 10:58 PM

Bugs in:
user/models/YumUser.php line 59 and 60 tablename always assign to "users". If you use custom tables name you will got error

Fist found one bugs :)
Learn Yii from beginning and build big project in feature :)
0

#151 User is offline   brauchlik 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 14-October 10

Posted 14 October 2010 - 06:30 AM

in the last release availabel for download I had the same error (oct 2010)

Error 500
YumUserController does not have a method named "generateActivationKey".



In user/model/YumUser.php I change line 152 from

$find->activationKey = $this->generateActivationKey(true);

to

$find->activationKey = $find->generateActivationKey(true);

and everything works fine.
0

#152 User is offline   pharsan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 09-October 10

Posted 03 November 2010 - 01:49 PM

Hi,
I'm new kid in the yii and sorry but my english is poor.
I'm happy when i find the Yii-User-Management modul.
I check out the revision 164 from Google SVN.
I found some anomaly.
- When I install and run from "http://localhost/testdrive/index.php/user/install", I get an error in YumUserContoller line 59. When I change the "new Profile()" to "new YumProfile()", the install done completly.
- After I logging in by admin, I try click on "Send message notifier emails" I get an error: "YumMessagesController cannot find the requested view "send_digest"."
-I try switch language but don't worked, it's true?
-I think the "'loginUrl' => array('//user/user/login')" setting can't readable in the main Yii menu setting like "'url'=>Yii::app()->getModule('user')->loginUrl". The "'label'=>Yii::app()->getModule('user')->t('Login')" don't work to.

- After the updating to r165 I get an error in login process. I go back to r164 and I write down from memory: the activities table is missing.

Best regards
Peter
0

#153 User is offline   mithereal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 14-April 10
  • Location:The Radioactive Desert, AZ

Posted 04 November 2010 - 02:55 AM

i added an update to the issues list, it fixes the bugs you are mentioning,
i also fixed the forgot password function it had wrong quotes. sorry was for 164
0

#154 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 04 November 2010 - 03:15 AM

View Postmithereal, on 04 November 2010 - 02:55 AM, said:

i added an update to the issues list, it fixes the bugs you are mentioning,
i also fixed the forgot password function it had wrong quotes. sorry was for 164

mithereal, pharsan:

thanks for reporting and even fixing this bugs. i will take care of this today. as you may have seen in the svn i added a new user activity logging yesterday. maybe that's useful for you, too. (r165)
1

#155 User is offline   mithereal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 14-April 10
  • Location:The Radioactive Desert, AZ

Posted 04 November 2010 - 03:53 AM

View Postthyseus, on 04 November 2010 - 03:15 AM, said:

mithereal, pharsan:

thanks for reporting and even fixing this bugs. i will take care of this today. as you may have seen in the svn i added a new user activity logging yesterday. maybe that's useful for you, too. (r165)

i updated the 1.66 with the bugfixes prevously mentioned, heres the patch
Attached File  patch_1.66.zip (4.55K)
Number of downloads: 34 .
You might want to look at the activities table I made in the sql dump to be sure the types are correct.
0

#156 User is offline   mithereal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 14-April 10
  • Location:The Radioactive Desert, AZ

Posted 05 November 2010 - 10:30 PM

heres a patch that adds the manage profiles functionality that was missing
also which issues listed are valid ones vs duplicates, some of the functionality seems to be implemented.

Attached File(s)


0

#157 User is offline   thyseus 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 300
  • Joined: 18-April 09
  • Location:Leipzig, Germany

Posted 06 November 2010 - 11:14 AM

View Postmithereal, on 05 November 2010 - 10:30 PM, said:

heres a patch that adds the manage profiles functionality that was missing
also which issues listed are valid ones vs duplicates, some of the functionality seems to be implemented.


thanks for that patch. i will integrate that one too over the weekend. how about svn access? you could commit that appreciated patches on your own into trunk/ directly? just need your email address and i add you to the commit list
0

#158 User is offline   mithereal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 14-April 10
  • Location:The Radioactive Desert, AZ

Posted 09 November 2010 - 03:53 PM

View Postthyseus, on 06 November 2010 - 11:14 AM, said:

thanks for that patch. i will integrate that one too over the weekend. how about svn access? you could commit that appreciated patches on your own into trunk/ directly? just need your email address and i add you to the commit list

ya you added me to thecommit list before and i see that i am in it, im te only mithereal, but i get an error when i try to commit
0

#159 User is offline   fellow sufferer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 17-October 10

Posted 09 November 2010 - 10:29 PM

Good job fellas, I just setup rev 168 and still see some unfinished parts such as statistics view, Property "YumUser.users" is not defined. etc, hope release 0.8 won't be far off.
0

#160 User is offline   fellow sufferer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 17-October 10

Posted 11 November 2010 - 05:44 AM

registration bug on the latest revision 168

YumRegistrationController line 82 should be YumActivityController::logActivity($user, 'registration');

YumActivityController line 15 should be 'registration'
0

Share this topic:


  • (30 Pages)
  • +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users