Alright, I've made quite a few changes and everything is running pretty smooth with the addon. However, I'm trying to build the login.php file so Accounts can be a full user/authentication system directly integrated with roster. The only problem is, when I try to login using this auth system it fails. Unfortunately my addon makes alot of use of the $addon global, which is not supported outside the addon. So during a login it can't find the user table because the usertable is set with this line in inc/conf.php:
- Code: Select all
define('utable',$roster->db->table('user', $addon['basename']));
I've attempted to define it using 'accounts' instead of $addon['basename'], but of course it still tried using the define utable instead of placing the actual table. What should I do? Would an SVN update help so others can look at the code and see what's wrong?