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

Jump to content

  • (30 Pages)
  • +
  • « First
  • 28
  • 29
  • 30
  • 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

#581 User is offline   I-NOZex 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 17-November 12
  • Location:Portugal

Posted 21 January 2014 - 07:57 AM

Yii::app()->user->data()->getAvatar(true);
(the param is true for thumbnail, and nothing or false for full size image ;)

B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#582 User is offline   jokamax 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 21-January 14

Posted 21 January 2014 - 08:16 AM

View PostI-NOZex, on 21 January 2014 - 07:57 AM, said:

Yii::app()->user->data()->getAvatar(true);
(the param is true for thumbnail, and nothing or false for full size image ;)


THANKSSSSSS !
0

#583 User is offline   I-NOZex 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 17-November 12
  • Location:Portugal

Posted 21 January 2014 - 06:33 PM

B) you'r welcome

B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#584 User is offline   AussieNeil 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 25-January 13

Posted 17 February 2014 - 03:02 PM

Hi,

I believe there is a bug in 0.9-git-wip version. I am new to php and yii so it may just be me but I was getting "Undefined variable: form" when I had installed yum, correctly after scrapping and starting again a couple of times, as I said new to php and yii.

So if I clicked on create user from main menu or from User Administration I would get the above error.

It seems the issue was that $form was not being passed to:



C:\route\to\project\protected\modules\profile\views\profile\_form.php(11)

I modified this module:

C:\xampp\htdocs\lagosrhs\protected\modules\user\views\user\_form.php

at line 76/77 as follows:

Old:

$this->renderPartial(Yum::module('profile')->profileFormView, array(
			'profile' => $profile)); ?>


New:

$this->renderPartial(Yum::module('profile')->profileFormView, array(
			'profile' => $profile, 'form'=>$form)); ?>


Now being a complete noobie I hope this is correct. Can anyone confirm?
0

#585 User is offline   georaldc 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 69
  • Joined: 08-July 11

Posted 26 March 2014 - 11:32 AM

Hopefully someone replies but I have a few questions. I already have a table setup for users with passwords generated using CPasswordHelper. My site also implements Yii's RBAC setup and I already have a couple of roles, tasks and operations setup. Is it possible to start using YUM and have it reference my accounts table and the RBAC setup I have in place?

Also, how does one actually use themes with the extension? I tried extending some controllers here and there as suggested by the author but it looks like there's too many hard coded paths for both layout and controller/action URLs. Logging in will also take me back to the module's User controller because of an absolute return url. Do I actually have to go in and make changes to the source for this to work?
0

Share this topic:


  • (30 Pages)
  • +
  • « First
  • 28
  • 29
  • 30
  • 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