if im succed i will try make one tutorial for you guys
[Module] Yii User Management Module Discussion, Bug Reports and Feature Requests for the User Management
#521
Posted 18 January 2013 - 02:36 PM
if im succed i will try make one tutorial for you guys
http://beat2revolution.net/

#522
Posted 18 January 2013 - 03:23 PM
I-NOZex, on 18 January 2013 - 02:36 PM, said:
if im succed i will try make one tutorial for you guys
Thank you, waiting for this
I found some suggestions. Changed short php tag to long tag in UserModule.php
Now i dont get this error, but i have new error:
Fatal error: Class 'YumInstallController' not found in C:\xampp\yii\framework\YiiBase.php on line 206
Maybe there is a problem with short tags
#523
Posted 18 January 2013 - 03:29 PM
https://github.com/t...ement/issues/75
Don't be afraid to search around for some of the answers - the issues and docs in the github repository have lots of info.
elnina: make sure you have short tags enabled on your server - it will be less of a headache than editing them out of YUM.
#524
Posted 18 January 2013 - 03:41 PM
capture.JPG (68.54K)
Number of downloads: 60
Capturar2.JPG (80.5K)
Number of downloads: 59
now go in webbrowser to:
http://localhost/<WE...hp/user/install
or
http://localhost/<WE...?r=user/install
Capturar3.JPG (123.34K)
Number of downloads: 55
Capturar4.JPG (102.11K)
Number of downloads: 46
Capturar5.JPG (82.36K)
Number of downloads: 38
Capturar6.JPG (69.97K)
Number of downloads: 37
Capturar7.JPG (28.28K)
Number of downloads: 43
pay attention to this step its very important add this line, if not add...
Capturar8.JPG (88.18K)
Number of downloads: 41
then you will have errors like this one
Capturar9.JPG (374.29K)
Number of downloads: 44
Capturar10.JPG (63.42K)
Number of downloads: 41
my folder structure:
folders.JPG (25.26K)
Number of downloads: 38
my bd after install:
bd.JPG (23.64K)
Number of downloads: 34
my config/main.php
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.modules.user.models.*',
'application.models.*',
'application.components.*',
),
'modules' => array(
'user' => array(
'debug' => false,
'userTable' => 'user',
'translationTable' => 'translation',
),
'usergroup' => array(
'usergroupTable' => 'usergroup',
'usergroupMessageTable' => 'user_group_message',
),
'membership' => array(
'membershipTable' => 'membership',
'paymentTable' => 'payment',
),
'friendship' => array(
'friendshipTable' => 'friendship',
),
'profile' => array(
'privacySettingTable' => 'privacysetting',
'profileFieldTable' => 'profile_field',
'profileTable' => 'profile',
'profileCommentTable' => 'profile_comment',
'profileVisitTable' => 'profile_visit',
),
'role' => array(
'roleTable' => 'role',
'userRoleTable' => 'user_role',
'actionTable' => 'action',
'permissionTable' => 'permission',
),
'message' => array(
'messageTable' => 'message',
),
// 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(
'cache' => array('class' => 'system.caching.CDummyCache'),
'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>',
),
),
*/
/*'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=test',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'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',
),
);ps: i have used last release of YII and YUM, with my win apache 2.4.2 (easyphp), php version 5.4.6, mysql 5.5.27 and you need to enable shorttags in php.ini, you need to find short_open_tag, unncomment if needs( remove the ; from start ) and set to on, like this -> short_open_tag = on
Add +1 if i can help
http://beat2revolution.net/

#525
Posted 18 January 2013 - 04:02 PM
PrplHaz4, on 18 January 2013 - 03:29 PM, said:
https://github.com/t...ement/issues/75
Don't be afraid to search around for some of the answers - the issues and docs in the github repository have lots of info.
elnina: make sure you have short tags enabled on your server - it will be less of a headache than editing them out of YUM.
Thank you, that was where i am looking for
I changed all short tags manually..Then i installed without problem.
#526
Posted 18 January 2013 - 04:05 PM
Thanks for great tutorial and giving your time, i will look all of them if i missed anything.Currently i installed after change all short tags..So i can turn 1.1.13 i guess
#527
Posted 18 January 2013 - 04:17 PM
elnina, on 18 January 2013 - 04:05 PM, said:
Thanks for great tutorial and giving your time, i will look all of them if i missed anything.Currently i installed after change all short tags..So i can turn 1.1.13 i guess
I also have had questions, and I liked when someone has helped me, only reciprocate them, after all, is how a community works (;
http://beat2revolution.net/

#528
Posted 03 February 2013 - 02:58 PM
if tested to change the Baselayout ...
Yii::setPathOfAlias('Layout' , dirname(Yii::app()->theme->baseUrl));
...
class UserModule extends CWebModule {
...
public $baseLayout = 'Layout.views.layouts.main';
But this isn't working. Already searched the Forums but haven't found a working Solution
Thanks!
Cheers
#529
Posted 03 February 2013 - 04:58 PM
'modules'=>array(
(...)
'user' => array(
(...)
'baseLayout' => 'webroot.themes.THEME_NAME.views.layouts.main',
http://beat2revolution.net/

#530
Posted 14 February 2013 - 06:59 AM
I am following the install_tutorial.txt and I thought I was going nice but when I run testdrive/index.php?r=user/install I got an exception:
"include(UserModule.php): failed to open stream: No such file or directory "
I´ve already googled it, found some tips but nothing worked. I´m a Yii newbie so probably I´m doing some stupid mistake. The other possibility is a compatibility problem... Please help !
Windows 7
Apache 2.4.2
PHP 5.4.3
Yii 1.1.13
User Management 0.8
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
// 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'),
),
*/
'user' => array(
'debug' => true,
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'class' => 'application.modules.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
'import'=>array(
'application.modules.user.models.*',
),
// 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' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'orion0112358',
'charset' => 'utf8',
),
'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',
),
);
Regards,
Gustavo.
#531
Posted 14 February 2013 - 08:40 AM
gviberti, on 14 February 2013 - 06:59 AM, said:
I am following the install_tutorial.txt and I thought I was going nice but when I run testdrive/index.php?r=user/install I got an exception:
"include(UserModule.php): failed to open stream: No such file or directory "
I´ve already googled it, found some tips but nothing worked. I´m a Yii newbie so probably I´m doing some stupid mistake. The other possibility is a compatibility problem... Please help !
Windows 7
Apache 2.4.2
PHP 5.4.3
Yii 1.1.13
User Management 0.8
Regards,
Gustavo.
Make sure you have php short tags enabled. It would be easier to troubleshoot if you mentioned some of the steps you've already tried.
#532
Posted 14 February 2013 - 01:37 PM
gviberti, on 14 February 2013 - 06:59 AM, said:
I am following the install_tutorial.txt and I thought I was going nice but when I run testdrive/index.php?r=user/install I got an exception:
"include(UserModule.php): failed to open stream: No such file or directory "
I´ve already googled it, found some tips but nothing worked. I´m a Yii newbie so probably I´m doing some stupid mistake. The other possibility is a compatibility problem... Please help !
Windows 7
Apache 2.4.2
PHP 5.4.3
Yii 1.1.13
User Management 0.8
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
// 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'),
),
*/
'user' => array(
'debug' => true,
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'class' => 'application.modules.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
'import'=>array(
'application.modules.user.models.*',
),
// 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' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'orion0112358',
'charset' => 'utf8',
),
'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',
),
);
Regards,
Gustavo.
Please read my install tutorial carefully
http://beat2revolution.net/

#534
Posted 15 February 2013 - 07:47 AM
so, you need to join the two "import" block in just one, like my example:
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
),and must be set, before the "user" configuration, off course
say if it works
http://beat2revolution.net/

#535
Posted 28 February 2013 - 01:57 AM
i am using YUM 0.6 for my site to managing users. Now my client want to integrate Facebook and Google log in with the site. i have tried some extensions found here but was not successful. Does any one have any suggestion for the extensions which can be used with YUM 0.6
Thanks you.
#536
Posted 28 February 2013 - 06:17 AM
karthik_narayanan, on 28 February 2013 - 01:57 AM, said:
i am using YUM 0.6 for my site to managing users. Now my client want to integrate Facebook and Google log in with the site. i have tried some extensions found here but was not successful. Does any one have any suggestion for the extensions which can be used with YUM 0.6
Thanks you.
Never used it, but from what I know, I think that YUM has native support for login through Facebook, Twitter, and Google i think
http://beat2revolution.net/

#537
Posted 10 March 2013 - 12:23 PM
karthik_narayanan, on 28 February 2013 - 01:57 AM, said:
i am using YUM 0.6 for my site to managing users. Now my client want to integrate Facebook and Google log in with the site. i have tried some extensions found here but was not successful. Does any one have any suggestion for the extensions which can be used with YUM 0.6
Thanks you.
Hi
I have same problem, I want use facebook and twitter login with this extension but I not find a way to put it working....
If you find a solution please share
thanks
#538
Posted 10 March 2013 - 12:28 PM
nferreirax, on 10 March 2013 - 12:23 PM, said:
I have same problem, I want use facebook and twitter login with this extension but I not find a way to put it working....
If you find a solution please share
thanks
what is your real problem?
errors, any code to help find what its going wrong...
i think for facebook its just create the facebook app, setting up the configuration and enable in main.php the login method by facebook
http://beat2revolution.net/

#539
Posted 11 March 2013 - 10:37 AM
I really want to use the Yii RBAC system for authorization - rather than YUM's roles.
The reason for this is I cant see a way to specify custom business rules in YUM roles - these are critical to my project.
fixes I have tried:
removing the checkAccess() override from YumWebUser,
altering the checkAccess() override in YumWebUser to always return its parent method (ie the Yii checkAccess() method,
removing 'roles' from my config/main.php,
setting $useYiiCheckAccess = true in the RoleModule.php file,
None of these work & I am a bit lost, I really need to find a solution to this - even if that means using the roles system that comes with YUM.
Is there a YUM roles tutorial anywhere? or an example? f I can see how to provision business rules or something similar using YUM roles I might just go with that solution
thanks in advance!
#540
Posted 18 March 2013 - 05:07 AM
i created a folder "modules" in ../protected and put the plugin into it.
add the code to config/main.php
i am getting The table "users" for active record class "User" cannot be found in the database.
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.modules.user.models.*',
'application.models.*',
'application.components.*',
),
'modules'=>array(
// 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'),
),
*/
'user' => array(
'debug' => true,
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
'class' => 'User',
),
// 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' => 'mysql:host=localhost;dbname=yii',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
),
'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',
),
);

Help











