[Module] Yii User Management Module Discussion, Bug Reports and Feature Requests for the User Management
#501
Posted 18 December 2012 - 12:14 PM
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
#502
Posted 28 December 2012 - 10:06 PM
DG Esteban A. Pérez, on 12 September 2011 - 03:58 PM, said:
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
http://beat2revolution.net/

#503
Posted 14 January 2013 - 12:38 PM
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
#504
Posted 14 January 2013 - 01:43 PM
ari ratic, on 14 January 2013 - 12:38 PM, said:
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',
http://beat2revolution.net/

#505
Posted 14 January 2013 - 06:56 PM
I-NOZex, on 14 January 2013 - 01:43 PM, said:
'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..
#506
Posted 14 January 2013 - 06:59 PM
ari ratic, on 14 January 2013 - 06:56 PM, said:
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
http://beat2revolution.net/

#508
Posted 14 January 2013 - 07:18 PM
'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
http://beat2revolution.net/

#509
Posted 14 January 2013 - 07:38 PM
I-NOZex, on 14 January 2013 - 07:18 PM, said:
'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
#510
Posted 14 January 2013 - 07:41 PM
ari ratic, on 14 January 2013 - 07:38 PM, said:
you downloaded the last release? from github?
http://beat2revolution.net/

#512
Posted 16 January 2013 - 10:15 AM
thyseus, on 03 March 2010 - 06:07 AM, said:
// 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. "
#513
Posted 16 January 2013 - 10:23 AM
http://beat2revolution.net/

#514
Posted 16 January 2013 - 10:23 AM
or in stackoverflow...
http://beat2revolution.net/

#515
Posted 16 January 2013 - 11:05 AM
Alan YII, on 12 May 2012 - 09:54 AM, said:
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
#517
Posted 18 January 2013 - 12:49 PM
Quote
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!
#518
Posted 18 January 2013 - 12:59 PM
Apache/2.4.2 (Win32)
PHP/5.4.6
try downgrade tho this, if its possible...
http://beat2revolution.net/

#520
Posted 18 January 2013 - 02:32 PM
'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' => '',
),

Help











