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

Jump to content

  • (30 Pages)
  • +
  • « First
  • 24
  • 25
  • 26
  • 27
  • 28
  • 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

#501 User is offline   Yerlt 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 16-December 12

Posted 18 December 2012 - 12:14 PM

Hello,

is there any way to change the routes for a better user-experience?

Now the route is profile/profile/view/id/X, it would be nice it it could be something like profile/X to the profile with the id X.

Any suggestions where i have to look or change the routes?

Greetings
0

#502 User is offline   I-NOZex 

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

Posted 28 December 2012 - 10:06 PM

View PostDG Esteban A. Pérez, on 12 September 2011 - 03:58 PM, said:

Something is missing? I've done each one of the steps you mention on this tutorial, but still not working... is there anything else that i can do or try to implement it?

Perhaps, in the config file (main.php where the modules are parametrized?... I tried with:

'registration' => array(   //'registrationUrl'  => array('/registration'),
//'registrationUrl'  => array('/registration/registration'),  
 'registrationUrl'  => array('//registration/registration'),  
  //'registrationView' => '/views/registration',  
  //'registrationView' => '//views/registration',  
  //'registrationView' => '/registration',  
  //'registrationView' => '/views',  
  //'registrationView' => array('/views/registration'),  
  //'registrationView' => array('//views/registration'),   
  //'registrationView' => array('/registration'),   
  //'registrationView' => array('/views'), 
),

But the "registration" procedure it's working as default.


PS: I tried all variants, including the "crazy" ones :S

If some one has a full implemented and working installation, my humble offer is to write how to use the YUM, but I need some kind of support from the author (from YUM or who offer his implementation)


http://www.yiiframew...ndpost&p=167620
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#503 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 14 January 2013 - 12:38 PM

hi thyseus..I'm newbie..I follow your user/docs/install_tutorial.txt but still can't work for install..this is my report alert :
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
what should I do?
this is my.. config/main.php :

return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'testdrive',

// preloading 'log' component
'preload'=>array('log'),

// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),

'modules'=>array(

'user' => array(
'debug' => true,
),


// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),

// application components
'components'=>array(

'user'=>array(
'class' => 'application.modules.user.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),

),

/*'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
*/
'urlManager'=>array(
'urlFormat'=>'path',
/*'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),*/
),

/*'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
// uncomment the following to use a MySQL database
*/
'db'=>array(
'connectionString' => 'pgsql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'postgres',
'password' => 'root',
'charset' => 'utf8',
// prior to yum0.8rc7 tablePrefix is not necessary anymore, but it can not hurt
'tablePrefix' => '',
),



'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),

// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);

please help me
0

#504 User is offline   I-NOZex 

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

Posted 14 January 2013 - 01:43 PM

View Postari ratic, on 14 January 2013 - 12:38 PM, said:

hi thyseus..I'm newbie..I follow your user/docs/install_tutorial.txt but still can't work for install..this is my report alert :
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
what should I do?
this is my.. config/main.php :

return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'testdrive',

// preloading 'log' component
'preload'=>array('log'),

// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),

'modules'=>array(

'user' => array(
'debug' => true,
),


// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),

// application components
'components'=>array(

'user'=>array(
'class' => 'application.modules.user.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),

),

/*'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
*/
'urlManager'=>array(
'urlFormat'=>'path',
/*'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),*/
),

/*'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
// uncomment the following to use a MySQL database
*/
'db'=>array(
'connectionString' => 'pgsql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'postgres',
'password' => 'root',
'charset' => 'utf8',
// prior to yum0.8rc7 tablePrefix is not necessary anymore, but it can not hurt
'tablePrefix' => '',
),



'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),

// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);

please help me

change to this, in components configuration:
 		'user'=>array(
        	'class' => 'application.modules.user.components.YumWebUser',

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

Posted Image
0

#505 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 14 January 2013 - 06:56 PM

View PostI-NOZex, on 14 January 2013 - 01:43 PM, said:

change to this, in components configuration:
 		'user'=>array(
        	'class' => 'application.modules.user.components.YumWebUser',


I did but I have alert like this :

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

so I fix path like this:
'user'=>array(
        	'class' => 'application.modules.user.user.components.YumWebUser',


still can't work.. :(
0

#506 User is offline   I-NOZex 

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

Posted 14 January 2013 - 06:59 PM

View Postari ratic, on 14 January 2013 - 06:56 PM, said:

I did but I have alert like this :

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

so I fix path like this:
'user'=>array(
        	'class' => 'application.modules.user.user.components.YumWebUser',


can you show me your directory listing, of the modules folder, please
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#507 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 14 January 2013 - 07:14 PM

View PostI-NOZex, on 14 January 2013 - 06:59 PM, said:

can you show me your directory listing, of the modules folder, please

like this :
htdocs\
testdrive
\protected
\modules
\|_avatar
|_firendship
|_membership
|_message
|_profile
|_registration
|_role
|_user
|_usergroup
|_README.md
0

#508 User is offline   I-NOZex 

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

Posted 14 January 2013 - 07:18 PM

it should be
'user'=>array(
        	'class' => 'application.modules.user.components.YumWebUser',

try change to this in components, and in models config, change to this
'user' => array(
              	'debug' => false,
              	'userTable' => 'TABLE_NAME',


if you still get error's, try reinstall, and check carefully all steps
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#509 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 14 January 2013 - 07:38 PM

View PostI-NOZex, on 14 January 2013 - 07:18 PM, said:

it should be
'user'=>array(
        	'class' => 'application.modules.user.components.YumWebUser',

try change to this in components, and in models config, change to this
'user' => array(
              	'debug' => false,
              	'userTable' => 'TABLE_NAME',


if you still get error's, try reinstall, and check carefully all steps

still can't work bro :( ...it's third time I have been install :(
0

#510 User is offline   I-NOZex 

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

Posted 14 January 2013 - 07:41 PM

View Postari ratic, on 14 January 2013 - 07:38 PM, said:

still can't work bro :( ...it's third time I have been install :(

you downloaded the last release? from github?
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#511 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 14 January 2013 - 07:50 PM

View PostI-NOZex, on 14 January 2013 - 07:41 PM, said:

you downloaded the last release? from github?

yup..I downloaded from github and yii framework site too
0

#512 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 16 January 2013 - 10:15 AM

View Postthyseus, on 03 March 2010 - 06:07 AM, said:

Please take a look in your protected/config/main.php. Activate your Url Manager by removing the Comments at

// uncomment the following to enable URLs in path-format


this enables to use index.php/user/install instead of index.php?r=user/install

i think this will become the default in the near future, so i didn't wrote this step in my tutorial.

the route 'user/install' already calls the user-module. Install is the action of the default Controller. This is why you don't need to use user/user/install. But you can, if you want.

all other bugs have been collected and will be fixed in the next version.
i will also implement a 'who has watched your profile' and a 'profile guestbook' where guestbook entries can be moderated by the profile owner in the next version.

If anyone wants to contribute to this project with some submodules or something, i can give access to the svn repository to everyone interested. Thank you.


I have problem install from your link github. can you help me ..please
I have got this alert :
"Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable. "
0

#513 User is offline   I-NOZex 

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

Posted 16 January 2013 - 10:23 AM

i cant help you more, im newbie too, im sorry, i tried... :/ but i cant see what is wrog... try explain your problem in Yii IRC Chat room...
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#514 User is offline   I-NOZex 

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

Posted 16 January 2013 - 10:23 AM

i cant help you more, im newbie too, im sorry, i tried... :/ but i cant see what is wrog... try explain your problem in Yii IRC Chat room...
or in stackoverflow...
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#515 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 16 January 2013 - 11:05 AM

View PostAlan YII, on 12 May 2012 - 09:54 AM, said:

The zip file has been extracted in /modules/user/user however the instructions and the svn checkout check the files out into /modules/user/.

To solve your problem move /modules/user/user/ up one directory.


Hi Alan..what do you mean move up one directory?do you mean like this :
\modules
\|_avatar
|_firendship
|_membership
|_message
|_profile
|_registration
|_role
|_user
|_usergroup
|_README.md

but still can't work bro..and more problem I've got..help me please
0

#516 User is offline   yiijco 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 03-September 12

Posted 16 January 2013 - 11:11 AM

View PostI-NOZex, on 16 January 2013 - 10:23 AM, said:

i cant help you more, im newbie too, im sorry, i tried... :/ but i cant see what is wrog... try explain your problem in Yii IRC Chat room...
or in stackoverflow...

okay..thanks bro
0

#517 User is offline   elnina 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-December 12

Posted 18 January 2013 - 12:49 PM

I have same problem:

Quote

, 'ldap_port' => '', 'ldap_basedn' => '', 'ldap_protocol' => '', 'ldap_autocreate' => '', 'ldap_tls' => '', 'ldap_transfer_attr' => '', 'ldap_transfer_pw' => ''); private $_urls=array( 'login'=>array('//user/user'), 'return'=>array('//user/user/index'), 'firstVisit'=>array('//user/privacy/update'), 'delete'=>array('//user/user/delete'), // Page to go after admin logs in 'returnAdmin'=>false, // Page to go to after logout 'returnLogout'=>array('//user/user/login')); private $_views = array( 'login' => '/user/login', 'menu' => '/user/menu', 'registration' => '/registration/registration', 'activate' => '/user/resend_activation', 'message' => '/user/message', 'passwordForm' => '/user/_activation_passwordform', 'messageCompose' =>'application.modules.message.views.message.compose'); // LoginType : // If you want to activate many types of login just sum up the values below and assign them to 'loginType' in // the user module configuration. const LOGIN_BY_USERNAME = 1; const LOGIN_BY_EMAIL = 2; const LOGIN_BY_OPENID = 4; const LOGIN_BY_FACEBOOK = 8; const LOGIN_BY_TWITTER = 16; const LOGIN_BY_LDAP = 32; // Allow login only by username by default. public $loginType = 1; /** * Defines all Controllers of the User Management Module and maps them to * shorter terms for using in the url * @var array */ public $controllerMap=array( 'default'=>array('class'=>'YumModule.controllers.YumDefaultController'), 'rest'=>array('class'=>'YumModule.controllers.YumRestController'), 'csv'=>array('class'=>'YumModule.controllers.YumCsvController'), 'auth'=>array('class'=>'YumModule.controllers.YumAuthController'), 'install'=>array('class'=>'YumModule.controllers.YumInstallController'), 'statistics'=>array('class'=>'YumModule.controllers.YumStatisticsController'), 'translation'=>array('class'=>'YumModule.controllers.YumTranslationController'), 'user'=>array('class'=>'YumModule.controllers.YumUserController'), // workaround to allow the url application/user/login: 'login'=>array('class'=>'YumModule.controllers.YumUserController') ); // Table names private $_tables = array( 'user' => 'user', 'privacySetting' => 'privacysetting', 'translation' => 'translation', 'message' => 'message', 'usergroup' => 'usergroup', 'usergroupMessage' => 'usergroup_message', 'profile' => 'profile', 'profileComment' => 'profile_comment', 'profileVisit' => 'profile_visit', 'profileField' => 'profile_field', 'role' => 'role', 'userRole' => 'user_role', 'membership' => 'membership', 'payment' => 'payment', 'friendship' => 'friendship', 'permission' => 'permission', 'action' => 'action', ); public $passwordRequirements = array( 'minLen' => 6, 'maxLen' => 128, 'minLowerCase' => 0, 'minUpperCase'=>0, 'minDigits' => 0, 'maxRepetition' => 3, ); public $usernameRequirements=array( 'minLen'=>3, 'maxLen'=>30, 'match' => '/^[A-Za-z0-9_]+$/u', 'dontMatchMessage' => 'Incorrect symbol\'s. (A-z0-9)', ); /** * Implements support for getting URLs, Tables and Views * @param string $name */ public function __get($name) { if(substr($name, -3) === 'Url') if(isset($this->_urls[substr($name, 0, -3)])) return $this->_urls[substr($name, 0, -3)]; if(substr($name, -4) === 'View') if(isset($this->_views[substr($name, 0, -4)])) return $this->_views[substr($name, 0, -4)]; if(substr($name, -5) === 'Table') if(isset($this->_tables[substr($name, 0, -5)])) return $this->_tables[substr($name, 0, -5)]; return parent::__get($name); } /** * Implements support for setting URLs and Views * @param string $name * @param mixed $value */ public function __set($name,$value) { if(substr($name,-3)==='Url') { if(isset($this->_urls[substr($name,0,-3)])) $this->_urls[substr($name,0,-3)]=$value; } if(substr($name,-4)==='View') { if(isset($this->_views[substr($name,0,-4)])) $this->_views[substr($name,0,-4)]=$value; } if(substr($name,-5)==='Table') { if(isset($this->_tables[substr($name,0,-5)])) $this->_tables[substr($name,0,-5)]=$value; } //parent::__set($name,$value); } public function init() { $this->setImport(array( 'YumModule.controllers.*', 'YumModule.models.*', 'YumModule.components.*', 'YumModule.core.*', )); } public function beforeControllerAction($controller, $action) { // Do not enable Debug mode when in Production Mode if(!defined('YII_DEBUG')) $this->debug = false; if(method_exists(Yii::app()->user, 'isAdmin') && Yii::app()->user->isAdmin()) $controller->layout = Yum::module()->adminLayout; return parent::beforeControllerAction($controller, $action); } }
PHP warning

include(UserModule.php): failed to open stream: No such file or directory

C:\xampp\yii\framework\YiiBase.php(421)


I am using latest Yii version 1.1.13.
If anybody solve this problem please share with us!
0

#518 User is offline   I-NOZex 

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

Posted 18 January 2013 - 12:59 PM

im using the Yii version 1.1.12...
Apache/2.4.2 (Win32)
PHP/5.4.6
try downgrade tho this, if its possible...
B2R » Beat2Revolution v3.0b | Join and Share us
http://beat2revolution.net/

Posted Image
0

#519 User is offline   elnina 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-December 12

Posted 18 January 2013 - 02:25 PM

View PostI-NOZex, on 18 January 2013 - 12:59 PM, said:

im using the Yii version 1.1.12...
Apache/2.4.2 (Win32)
PHP/5.4.6
try downgrade tho this, if its possible...


I tried downgrade, nothing change.
0

#520 User is offline   elnina 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-December 12

Posted 18 January 2013 - 02:32 PM

Here is the changes i did:

	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.modules.user.models.*',
	),

	'modules'=>array(
	'user' => array(
			'debug' => true,
			),
		// uncomment the following to enable the Gii tool
		
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'1234',
			// If removed, Gii defaults to localhost only. Edit carefully to taste.
			'ipFilters'=>array('127.0.0.1','::1'),
		),
		
	),

	// application components
	'components'=>array(
		'user'=>array(
			 'class' => 'application.modules.user.components.YumWebUser',
			'allowAutoLogin'=>true,
			'loginUrl' => array('//user/user/login'),
		),
		 
		// uncomment the following to enable URLs in path-format
		
		'urlManager'=>array(
			'urlFormat'=>'path',
			'rules'=>array(
				'<controller:\w+>/<id:\d+>'=>'<controller>/view',
				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
			),
		),
		
		// uncomment the following to use a MySQL database
		
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=userman',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			'tablePrefix' => '', 
		),

0

Share this topic:


  • (30 Pages)
  • +
  • « First
  • 24
  • 25
  • 26
  • 27
  • 28
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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