| Re: Default affecting group is not working |
| by Balzac on 2011/2/16 23:38:40 Considering the subject, can somebody put a lght on this topic? User Administraton (Profile) https://xoops.org/modules/newbb/viewtopic.php?topic_id=73278&forum=74&post_id=336341#forumpost336341 |
| Re: Default affecting group is not working |
| by redheadedrod on 2011/2/16 15:27:37 If you use a program such as notepad++ you can search for ANY phrase in ANY file from a base directory down. It should be relatively simple when you find it. But remember when you load programs like Profile or PM that they are extensions on what is in core but they totally replace the core stuff. If you make modifications to the core files but using a module your modifications will not be applied. Rodney |
| Re: Default affecting group is not working |
| by fdeconiac on 2011/2/16 7:19:17 yes you're right ! So i imagine i should look for "XOOPS_USER_GROUP" in modules/profile/register.php ? Will try by the day :) |
| Re: Default affecting group is not working |
| by iHackCode on 2011/2/15 21:13:15 it could also be that you are using the profile module for your registration and not the register.php file. |
| Re: Default affecting group is not working |
| by fdeconiac on 2011/2/15 20:12:25 Just tried to modify => mainfile.php : le="color: #000000"><?php // Secure file require XOOPS_VAR_PATH . '/data/secure.php'; define('XOOPS_GROUP_ADMIN', '1'); define('XOOPS_GROUP_DEFAULT', '13'); define('XOOPS_GROUP_USERS', '2'); define('XOOPS_GROUP_ANONYMOUS', '3'); => register.php : le="color: #000000"><?php $newid = $newuser->getVar('uid'); if (!$member_handler->addUserToGroup(XOOPS_GROUP_DEFAULT, $newid)) { echo _US_REGISTERNG; include $GLOBALS['xoops']->path('footer.php'); exit(); } Didn' t work anymore... So i will modify as i did before, just by changing the id of XOOPS_GROUP_USERS Hope this point could be managed in admin in the next xoops versions... even depending on some criteria as a specific code (xin code ?) Thanks all for your help, Regards |