How do I get profile fields of an active user (Yii:app()->user)?
How do I get profile fields of an active user (Yii:app()->user)?
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:
there is no activkey action, that’s a paremeter. Anybody able to explain what’s happening?
Thanks
Cheers.
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.
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!
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!
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
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.
you can extend the YumProfileController and let this render his own view files.
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
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.
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.
Best regards
Peter
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)
i updated the 1.66 with the bugfixes prevously mentioned, heres the patch
917
You might want to look at the activities table I made in the sql dump to be sure the types are correct.
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
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
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.
registration bug on the latest revision 168
YumRegistrationController line 82 should be YumActivityController::logActivity($user, ‘registration’);
YumActivityController line 15 should be ‘registration’