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

Jump to content

  • (30 Pages)
  • +
  • « First
  • 18
  • 19
  • 20
  • 21
  • 22
  • 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

#381 User is offline   Hoss 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 30-January 12

Posted 30 January 2012 - 02:39 PM

Never mind, had some stuff in the wrong place (still a newbie here). But now I'm getting this:

CWebUser and its behaviors do not have a method or closure named "data".

I saw something about logging out and back in, but that didn't seem to work - what am I missing?
0

#382 User is offline   Hoss 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 30-January 12

Posted 30 January 2012 - 03:12 PM

Made it past that error, now I'm stuck with the following:

CWebUser and its behaviors do not have a method or closure named "isAdmin".
0

#383 User is offline   Anuvab 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 27-January 12

Posted 30 January 2012 - 04:40 PM

can any one please help me on my issue ??

http://www.yiiframew...ny-help-please/

:unsure: :unsure: :unsure: :unsure:

Thanks in advance
0

#384 User is offline   JaCk0 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 04-September 11

Posted 01 February 2012 - 01:43 AM

Hi, i'm using YUM for some time and i have seen issues with accessRules and filters. I have configured YUM as google code instructions (main.php config with user, registration... modules and YumWebUser component as user component class). I have this issue:

I configured filters and accessrules in a controller as below:

    public function filters()
    {
        return array(
            'accessControl',
        );
    }
	
	public function accessRules()
	{
		return array(
			array('allow', 
				'actions'=>array('contact', 'error'),
				'users'=>array('*'),
			),
			array('allow',
				'actions'=>array('index', 'inicio'),
				'users'=>array('@'),
			),
			array('deny',
				'users'=>array('*'),
			),
		);
	}


When I try access to index or inicio action i get "you don't have permissions" error, but my user is logged on and Yii::app()->user->id works properly. I can access to /user/user/admin url correctly. Can anyone help me?
0

#385 User is offline   Hoss 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 30-January 12

Posted 01 February 2012 - 05:10 PM

Error when sending registration email:

The table "{{yumtextsettings}}" for active record class "YumTextSettings" cannot be found in the database.

Any ideas on how to fix this?
0

#386 User is offline   JaCk0 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 04-September 11

Posted 01 February 2012 - 06:46 PM

View PostHoss, on 01 February 2012 - 05:10 PM, said:

Error when sending registration email:

The table "{{yumtextsettings}}" for active record class "YumTextSettings" cannot be found in the database.

Any ideas on how to fix this?


Add to you main.php YumTextSettings table alias:

    modules'=>array(
	'user'=>array(
            ...
            'textSettingsTable'=>'yum_config_idioma',  // for me
        ),
        ...
    ),


Check in database for a "yum_text_settings" table or something.
0

#387 User is offline   thyseus 

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

Posted 01 February 2012 - 09:26 PM

you can also override the sendRegistrationEmail() function and fetch
a custom text source, for example from an array, a content management
system of anywhere else. The YumTextSettings are just a example how
it could work.
0

#388 User is offline   Hoss 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 30-January 12

Posted 05 February 2012 - 07:29 PM

I figured out how to get yumtextsettings table defined (for some reason it didn't install) and I updated the user in the config to point to it, but now after registering a user I'm getting, by the way the user was added to the table:

Property "YumWebUser.textSettingsTable" is not defined.

/Library/WebServer/yii/framework/web/auth/CWebUser.php(155)

143
144 /**
145 * PHP magic method.
146 * This method is overriden so that persistent states can be set like properties.
147 * @param string $name property name
148 * @param mixed $value property value
149 */
150 public function __set($name,$value)
151 {
152 if($this->hasState($name))
153 $this->setState($name,$value);
154 else
155 parent::__set($name,$value);
156 }
157
158 /**
159 * PHP magic method.
160 * This method is overriden so that persistent states can also be checked for null value.
161 * @param string $name property name
162 * @return boolean
163 */
0

#389 User is offline   thyseus 

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

Posted 06 February 2012 - 02:45 AM

Property "YumWebUser.textSettingsTable" is not defined.

It seems like you are calling Yii::app()->user->textSettingsTable somewhere. It needs to be
Yum::module()->textSettingsTable. You can also override the function and simply set 'yum_text_settings',
or however your table is called.
0

#390 User is offline   kssk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 29-August 11

Posted 09 February 2012 - 08:24 AM

Hi,

I have installed the Yii User Management Module. I want to add customize fields in the registration form. I have read the topic posted here http://www.yiiframew...gement-module/.

I want to know how can I add new fields in the registration form comprising Yii auto complete widget and those new fields I want to save in new table other than profile table.

Thanks in advance.
0

#391 User is offline   donman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 24-December 11

Posted 18 February 2012 - 12:22 AM

I am having trouble with this whole installation(newbie) I was wondering if there is a video installation of this? I really would like to see how this works. Please!
0

#392 User is offline   StasuSS 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 20-February 12
  • Location:Kaluga, Russia

Posted 21 February 2012 - 04:59 AM

Hi all!

many thanks for this module. it works ok. but when i tried to access "TextTranslations" i got this error "Declaration of YumTranslationController::loadModel() should be compatible with that of YumController::loadModel()"

sorry. this was second error i got. first was about ajax validation. a fixed it. but seeing this error i'm not shure if i should fix it or not.

i'm using 0.8 version from yii extensions repository.

now i'm translating messages to russian. where can i submit translation when i'm finished? i took french messages as there are most of them (544)
Things are very seldom what they seem. In my experience, they’re usually a damn sight worse. (Inquisitor Titus Drake)
0

#393 User is offline   StasuSS 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 20-February 12
  • Location:Kaluga, Russia

Posted 21 February 2012 - 05:53 AM

i finished translation. sql schema in attachment. may be there is FULL list of messages?

Attached File(s)


Things are very seldom what they seem. In my experience, they’re usually a damn sight worse. (Inquisitor Titus Drake)
0

#394 User is offline   klaus007 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 21-February 12
  • Location:Europe/Germany

Posted 21 February 2012 - 09:23 AM

Hi there!

I made my first steps with yii framework (1.1.8 ). Now I want do build up a new website using the
extension yii user management.

But there is a problem I'm not able to solve.

I've downloaded the latest version (yii-user-management_0.8rc5.tar.bz2).
Did the installation discribed in Install_tutorial.txt.
Get the message that installation was successsfull.

But when I try to administrate the users I get a CException:
Alias "registration.RegistrationModule" is invalid. Make sure it points to an existing PHP file.


Browsing through my application directory structure I can't find a Registration module.
Is it a separate module or submodule? It seems not be included in yii-user-management_0.8rc5.tar.bz2?

Can anybody help?
0

#395 User is offline   StasuSS 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 20-February 12
  • Location:Kaluga, Russia

Posted 22 February 2012 - 12:00 AM

yesterday i've installed just this version and it works ok. try reinstalling. or may be you've copied not all files from tar?

the only thing is different by me - that i'm using yii 1.10... but i think that is not issue..

you should have the following folders in your /protected/modules
-membership
-avatar
-role
-profile
-usergroup
-user
-messages
-friendship
-registration

and just in last folder there is that registration module. check it out!
Things are very seldom what they seem. In my experience, they’re usually a damn sight worse. (Inquisitor Titus Drake)
0

#396 User is offline   chirvo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 30-November 10
  • Location:Venezuela

Posted 22 February 2012 - 11:14 AM

Hey there!

Thyseus, now that we have a fairly stable 0.8rc SVN version, I think we should add the StasuSS contribution and make a 0.8 final release. What do you think?

BTW, I started another project and I'm going to use YUM in it, so you have again a active developer on the front line. :)

Great, isn't it? :D
0

#397 User is offline   chirvo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 30-November 10
  • Location:Venezuela

Posted 22 February 2012 - 11:49 AM

I've updated the Installation Instructions page on the wiki with the actual content of the installation_tutorial.txt file.

http://code.google.c...ionInstructions
0

#398 User is offline   klaus007 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 21-February 12
  • Location:Europe/Germany

Posted 22 February 2012 - 02:07 PM

Hi StasuSS,

thanks for your reply. I did a new installation of yii 1.1.10.
After creating a new webapp (yiic webapp <app-path>) there is no
folder 'moduls' under folder 'protected'.

In folder 'protected' there are these folders:

commands
components
config
controllers
data
extensions
messages
migrations
models
runtime
tests
views

What's wrong????
0

#399 User is offline   chirvo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 30-November 10
  • Location:Venezuela

Posted 23 February 2012 - 06:03 PM

@klaus007 you have to create it. :)
0

#400 User is offline   klaus007 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 21-February 12
  • Location:Europe/Germany

Posted 24 February 2012 - 12:48 AM

View Postchirvo, on 23 February 2012 - 06:03 PM, said:

@klaus007 you have to create it. :)


Thanks, problem is solved! :rolleyes:
0

Share this topic:


  • (30 Pages)
  • +
  • « First
  • 18
  • 19
  • 20
  • 21
  • 22
  • 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