 |
|
04-25-08, 11:49 AM
|
#31 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Here's admin.login_checker.php:
Code:
<?php
function login_checker() {
$credentials['username'] = JRequest::getVar('check_username', '', 'POST', 'STRING' );
$user['username'] = JRequest::getVar('check_username', '', 'POST', 'STRING' );
$credentials['password'] = JRequest::getVar('check_password', '', 'POST', 'STRING' );
$options['group'] =JRequest::getVar('check_group', '', 'POST', 'STRING' );
echo '- Performing the JFusion Authentication function for user:' . $credentials['username'] .'<br>';
jimport('joomla.user.helper');
// Joomla does not like blank passwords
if (empty($credentials['password'])) {
echo 'No password was supplied';
return;
}
if (empty($credentials['username'])) {
echo 'No username was supplied';
return;
}
// Initialize variables
$conditions = '';
$db = & JFactory::getDBO();
//check to see if a JFusion plugin is enabled
$jname = AbstractForum::getJname();
if ($jname) {
echo '- JFusion is enabled<br>';
//get main params
$params = AbstractForum::getMainSettings();
if (!$params->get('mirror_users')) {
echo '- Special users are in the Joomla database, check for these first<br>';
//If find out if the user has a special Joomla usergroup
$query = "SELECT usertype FROM #__users WHERE `username`='".$credentials['username']."'";
$db->setQuery($query);
$usertype = $db->loadResult();
} else {
$usertype = false;
}
if ($usertype != 'Registered' && $usertype) {
//use the joomla default so people can not lock Joomla itself
echo '- found a Joomla special user and will lookup the Joomla password<br>';
// Get a database object
$db =& JFactory::getDBO();
$query = 'SELECT `id`, `password`, `gid`'
. ' FROM `#__users`'
. ' WHERE username=' . $db->Quote($credentials['username'] );
$db->setQuery($query );
$result = $db->loadObject();
// if JFusion disabled & user found OR user found & has access to backend = tries to login
$parts = explode(':', $result->password );
$crypt = $parts[0];
$salt = @$parts[1];
$testcrypt = JUserHelper::getCryptedPassword($credentials['password'], $salt);
} else {
echo '- using the forum database to check the users password<br>';
//initialize the forum object
$forum = ForumFactory::getForum($jname);
//Get the stored encrypted password
$username = $forum->filterUsername($credentials['username']);
echo "- the forum filtered username is: $username <br>";
$userinfo = $forum->getUser($username);
echo '- the userinfo object contains the array:' . print_r($userinfo) . '<br>';
// baltie - fixed a bug; now checks if $userinfo is set, if it is,
// generate as before, if not, set $crypt to 0, as this will trigger
// an authentication failure, and not a script failure
if ($userinfo) {
echo 'found the user in the forum database<br>';
$crypt = $userinfo->password;
//apply the cleartext password to the user object
$userinfo->password_clear = $credentials['password'];
//created new authentication class that can handle different password encryptions
//without adding much overhead in terms of performance
require_once(JPATH_ADMINISTRATOR .'/components/com_jfusion/admin.auth_factory.php');
//find out which encryption methods we need to try out
// baltie - name, not jname
$query = "SELECT name FROM #__jfusion WHERE enabled = 1 OR check_encryption = 1 ORDER BY enabled DESC";
$db->setQuery($query);
$auth_models = $db->loadObjectList();
echo '- starting to loop through the different password encryption methods<br>';
foreach ($auth_models as $auth_model) {
//Generate an encrypted password for comparison
$model = AuthFactory::getAuth($auth_model->name);
$testcrypt = $model->generateEncryptedPassword($userinfo);
echo "- database password: $crypt and $auth_model->name password: $testcrypt <br>";
if ($crypt == $testcrypt) {
//found a match
echo '- found a matching password <br>';
}
}
} else {
echo '- Sorry did not find this user in the database, block access.<br>';
return;
}
}
} else {
echo '- JFusion is NOT enabled, using the Joomla default login<br>';
//use the joomla default so people can not lock Joomla itself
// Get a database object
$db =& JFactory::getDBO();
$query = 'SELECT `id`, `password`, `gid`'
. ' FROM `#__users`'
. ' WHERE username=' . $db->Quote($credentials['username'] );
$db->setQuery($query );
$result = $db->loadObject();
// if JFusion disabled & user found OR user found & has access to backend = tries to login
$parts = explode(':', $result->password );
$crypt = $parts[0];
$salt = @$parts[1];
$testcrypt = JUserHelper::getCryptedPassword($credentials['password'], $salt);
// login action
echo "- the password hash in the database is: $crypt <br>";
echo "- the password hash generated from the cleartext password is: $testcrypt <br>";
if ($crypt) {
if ($crypt == $testcrypt) {
echo '- the passwords do match<br>';
} else {
echo '- the passwords do NOT match<br>';
return; }
} else {
echo '- the user was not found in the database<br>';
return;
}
}
jimport('joomla.user.helper');
echo '<br><br>- Performing the JFusion User function<br>';
//initalise the Joomla database object
$db =& JFactory::getDBO();
//get main params
$params = AbstractForum::getMainSettings();
// Get an ACL object
$acl =& JFactory::getACL();
/*
* First create the JUser object
*/
//check to see if a JFusion plugin is enabled
$jname = AbstractForum::getJname();
if ($jname) {
echo '- JFusion integration enabled <br>';
//If find out if the user has already exists in the Joomla database
$userLookup = AbstractForum::lookupUsername($jname, $user['username']);
if ($userLookup) {
$userid = $userLookup->juser_id;
echo '- found a user in the lookup table the info:' . print_r($userLoopkup) . '<br>';
} else {
echo '- no entry found in the lookup table, checking in the Joomls user table directly <br>';
$query = "SELECT id FROM #__users WHERE username='".$user['username']."'";
$db->setQuery($query);
$userid = $db->loadResult();
}
if ($userid) {
echo "- the user already exist in the Joomla database with userid: $userid <br>";
//no need to create a new user object, just use the one stored.
$instance =& JUser::getInstance($userid);
//use the usergroup from the Joomla user table
$grp = $acl->getAroGroup($instance->get('id'));
} else {
echo "- the user does NOT exist in the Joomla database <br>";
//find out if we should create a permanent entry in the Joomla database
if ($params->get('mirror_users')) {
echo "- auto user mirroring is turned on, therefore we will create a new Joomla user <br>";
//yes we should create one
$forum = ForumFactory::getForum($jname);
$instance = & $forum->getUser($user,$options);
$usertype = $params->get('joomla_usergroup');
$query = "SELECT id FROM #__core_acl_aro_groups WHERE name = '" . $usertype . "'";
$db->setQuery($query);
$gid = $db->loadResult();
AbstractForum::createJoomlaUsername($username, $instance->get('email'), $instance->get('password'), $usertype, $gid);
//load the user object for the newly created uer
$query = "SELECT id FROM #__users WHERE username='".$username ."'";
$db->setQuery($query);
$userid = $db->loadResult();
echo "- the userid for the newly created Joomla user is: $userid <br>";
$instance =& JUser::getInstance($userid);
$grp = $acl->getAroGroup($instance->get('id'));
} else {
//no just setup a user object but do not save it
echo "- auto user mirroring is turned off, therefore we will create a temporary Joomla user <br>";
$forum = ForumFactory::getForum($jname);
$instance = & $forum->getUser($user,$options);
$usertype = $params->get('joomla_usergroup');
$query = "SELECT id FROM #__core_acl_aro_groups WHERE name = '" . $usertype . "'";
$db->setQuery($query);
$gid = $db->loadResult();
$instance->set('gid',$gid);
$instance->set('usertype' , $usertype );
$instance->set('username', $username);
$grp = new JObject;
$grp->set('name', 'Registered');
}
}
} else {
echo "- No JFusion integration is enabled, using the Joomla default <br>";
return;
}
// If the user is blocked, redirect with an error
if ($instance->get('block') == 1 ) {
echo '- this user is blocked from accessing Joomla with the blocked setting';
}
echo "-The Joomla usergroup for this user is: $grp->name <br>";
}
?>
Line 197 is: //found a match
|
|
|
04-25-08, 11:53 AM
|
#32 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Russell,
I'll confess I'm not really in the business of site makeovers (I don't have the patience, time, and knack for them) but you can definitely get a solid design done somewhere.
I've seen people buy templates or a contract a design from yaXay.com and some people's work on this site is quite good. Perhaps start a thread there about what you are looking for and what you are willing to pay and see if people reply with examples of their work which you like. I can help you deploy their templates at that point if you do decide to hire somebody to redesign.
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 12:01 PM
|
#33 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Rach, go to line 383 and find this line:
Code:
$instance = & $forum->getUser($user,$options);
See if changing it to this fixes the problem
Code:
$instance = $forum->getUser($user,$options);
(The amp after the = is gone)
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 12:08 PM
|
#34 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by Tapage
Hello NaterGator ..
4x4panama.com
Thanks for your recomendations .. at time I saw dreamhost but choose ( I'm not sure why ) Bluehost .. ( maybe for the Support Chat online )
Have a few myswl conection issues that actually dosen't affect my forum .. but looking forward on that.
|
Tapage, nice site
I'm sure bluehost is fine and if it works for you and you like them, I don't see any reason you should change. "If it ain't broke don't fix it"
Where are you seeing MySQL connection issues? Is it randomly happening when browsing the forum?
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 12:13 PM
|
#35 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Quote:
Originally Posted by NaterGator
Rach, go to line 383 and find this line:
Code:
$instance = & $forum->getUser($user,$options);
See if changing it to this fixes the problem
Code:
$instance = $forum->getUser($user,$options);
(The amp after the = is gone)
|
Now I get this:
Code:
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/content/p/a/g/pageweb77/html/joomla/libraries/joomla/database/database/mysql.php on line 193
Fatal error: Call to a member function on a non-object in /home/content/p/a/g/pageweb77/html/joomla/administrator/components/com_jfusion/admin.login_checker.php on line 393
And it's Kori
|
|
|
04-25-08, 12:31 PM
|
#36 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by grrlscout89FJ62
And it's Kori
|
 Brainfart! I knew that
Quote:
Originally Posted by grrlscout89FJ62
Now I get this:
Code:
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/content/p/a/g/pageweb77/html/joomla/libraries/joomla/database/database/mysql.php on line 193
Fatal error: Call to a member function on a non-object in /home/content/p/a/g/pageweb77/html/joomla/administrator/components/com_jfusion/admin.login_checker.php on line 393
|
Ok, hrmph. It's gotta be passing a wrong parameter to one of the joomla fxns. I need to find out which one.
Replace that whole file with this and re-run. It will give new output that will let me know exactly what line is failing (since line numbering seems to be getting tracked incorrectly)
Code:
<?php
function login_checker() {
$credentials['username'] = JRequest::getVar('check_username', '', 'POST', 'STRING' );
$user['username'] = JRequest::getVar('check_username', '', 'POST', 'STRING' );
$credentials['password'] = JRequest::getVar('check_password', '', 'POST', 'STRING' );
$options['group'] =JRequest::getVar('check_group', '', 'POST', 'STRING' );
echo '- Performing the JFusion Authentication function for user:' . $credentials['username'] .'<br>';
jimport('joomla.user.helper');
// Joomla does not like blank passwords
if (empty($credentials['password'])) {
echo 'No password was supplied';
return;
}
if (empty($credentials['username'])) {
echo 'No username was supplied';
return;
}
// Initialize variables
$conditions = '';
$db = & JFactory::getDBO();
//check to see if a JFusion plugin is enabled
$jname = AbstractForum::getJname();
if ($jname) {
echo '- JFusion is enabled<br>';
//get main params
$params = AbstractForum::getMainSettings();
if (!$params->get('mirror_users')) {
echo '- Special users are in the Joomla database, check for these first<br>';
//If find out if the user has a special Joomla usergroup
$query = "SELECT usertype FROM #__users WHERE `username`='".$credentials['username']."'";
$db->setQuery($query);
$usertype = $db->loadResult();
} else {
$usertype = false;
}
if ($usertype != 'Registered' && $usertype) {
//use the joomla default so people can not lock Joomla itself
echo '- found a Joomla special user and will lookup the Joomla password<br>';
// Get a database object
$db =& JFactory::getDBO();
$query = 'SELECT `id`, `password`, `gid`'
. ' FROM `#__users`'
. ' WHERE username=' . $db->Quote($credentials['username'] );
$db->setQuery($query );
$result = $db->loadObject();
// if JFusion disabled & user found OR user found & has access to backend = tries to login
$parts = explode(':', $result->password );
$crypt = $parts[0];
$salt = @$parts[1];
$testcrypt = JUserHelper::getCryptedPassword($credentials['password'], $salt);
} else {
echo '- using the forum database to check the users password<br>';
//initialize the forum object
$forum = ForumFactory::getForum($jname);
//Get the stored encrypted password
$username = $forum->filterUsername($credentials['username']);
echo "- the forum filtered username is: $username <br>";
$userinfo = $forum->getUser($username);
echo '- the userinfo object contains the array:' . print_r($userinfo) . '<br>';
// baltie - fixed a bug; now checks if $userinfo is set, if it is,
// generate as before, if not, set $crypt to 0, as this will trigger
// an authentication failure, and not a script failure
if ($userinfo) {
echo 'found the user in the forum database<br>';
$crypt = $userinfo->password;
//apply the cleartext password to the user object
$userinfo->password_clear = $credentials['password'];
//created new authentication class that can handle different password encryptions
//without adding much overhead in terms of performance
require_once(JPATH_ADMINISTRATOR .'/components/com_jfusion/admin.auth_factory.php');
//find out which encryption methods we need to try out
// baltie - name, not jname
$query = "SELECT name FROM #__jfusion WHERE enabled = 1 OR check_encryption = 1 ORDER BY enabled DESC";
$db->setQuery($query);
$auth_models = $db->loadObjectList();
echo '- starting to loop through the different password encryption methods<br>';
foreach ($auth_models as $auth_model) {
//Generate an encrypted password for comparison
$model = AuthFactory::getAuth($auth_model->name);
$testcrypt = $model->generateEncryptedPassword($userinfo);
echo "- database password: $crypt and $auth_model->name password: $testcrypt <br>";
if ($crypt == $testcrypt) {
//found a match
echo '- found a matching password <br>';
}
}
} else {
echo '- Sorry did not find this user in the database, block access.<br>';
return;
}
}
} else {
echo '- JFusion is NOT enabled, using the Joomla default login<br>';
//use the joomla default so people can not lock Joomla itself
// Get a database object
$db =& JFactory::getDBO();
$query = 'SELECT `id`, `password`, `gid`'
. ' FROM `#__users`'
. ' WHERE username=' . $db->Quote($credentials['username'] );
$db->setQuery($query );
$result = $db->loadObject();
// if JFusion disabled & user found OR user found & has access to backend = tries to login
$parts = explode(':', $result->password );
$crypt = $parts[0];
$salt = @$parts[1];
$testcrypt = JUserHelper::getCryptedPassword($credentials['password'], $salt);
// login action
echo "- the password hash in the database is: $crypt <br>";
echo "- the password hash generated from the cleartext password is: $testcrypt <br>";
if ($crypt) {
if ($crypt == $testcrypt) {
echo '- the passwords do match<br>';
} else {
echo '- the passwords do NOT match<br>';
return; }
} else {
echo '- the user was not found in the database<br>';
return;
}
}
jimport('joomla.user.helper');
echo '<br><br>- Performing the JFusion User function<br>';
//initalise the Joomla database object
$db =& JFactory::getDBO();
//get main params
$params = AbstractForum::getMainSettings();
// Get an ACL object
$acl =& JFactory::getACL();
/*
* First create the JUser object
*/
//check to see if a JFusion plugin is enabled
$jname = AbstractForum::getJname();
if ($jname) {
echo '- JFusion integration enabled <br>';
//If find out if the user has already exists in the Joomla database
$userLookup = AbstractForum::lookupUsername($jname, $user['username']);
if ($userLookup) {
$userid = $userLookup->juser_id;
echo '- found a user in the lookup table the info:' . print_r($userLoopkup) . '<br>';
} else {
echo '- no entry found in the lookup table, checking in the Joomls user table directly <br>';
$query = "SELECT id FROM #__users WHERE username='".$user['username']."'";
$db->setQuery($query);
$userid = $db->loadResult();
}
if ($userid) {
echo "- the user already exist in the Joomla database with userid: $userid <br>";
//no need to create a new user object, just use the one stored.
$instance =& JUser::getInstance($userid);
//use the usergroup from the Joomla user table
$grp = $acl->getAroGroup($instance->get('id'));
} else {
echo "- the user does NOT exist in the Joomla database <br>";
//find out if we should create a permanent entry in the Joomla database
if ($params->get('mirror_users')) {
echo "- auto user mirroring is turned on, therefore we will create a new Joomla user <br>";
//yes we should create one
$i=1;
echo '- nate\'s debug output. tracking code location: ',$i++;
$forum = ForumFactory::getForum($jname);
echo ', ',$i++;
$instance = & $forum->getUser($user,$options);
echo ', ',$i++;
$usertype = $params->get('joomla_usergroup');
echo ', ',$i++;
$query = "SELECT id FROM #__core_acl_aro_groups WHERE name = '" . $usertype . "'";
echo ', ',$i++;
$db->setQuery($query);
echo ', ',$i++;
$gid = $db->loadResult();
echo ', ',$i++;
AbstractForum::createJoomlaUsername($username, $instance->get('email'), $instance->get('password'), $usertype, $gid);
echo ', ',$i++;
//load the user object for the newly created uer
$query = "SELECT id FROM #__users WHERE username='".$username ."'";
echo ', ',$i++;
$db->setQuery($query);
echo ', ',$i++;
$userid = $db->loadResult();
echo "- the userid for the newly created Joomla user is: $userid <br>";
$instance =& JUser::getInstance($userid);
$grp = $acl->getAroGroup($instance->get('id'));
} else {
//no just setup a user object but do not save it
echo "- auto user mirroring is turned off, therefore we will create a temporary Joomla user <br>";
$forum = ForumFactory::getForum($jname);
$instance = & $forum->getUser($user,$options);
$usertype = $params->get('joomla_usergroup');
$query = "SELECT id FROM #__core_acl_aro_groups WHERE name = '" . $usertype . "'";
$db->setQuery($query);
$gid = $db->loadResult();
$instance->set('gid',$gid);
$instance->set('usertype' , $usertype );
$instance->set('username', $username);
$grp = new JObject;
$grp->set('name', 'Registered');
}
}
} else {
echo "- No JFusion integration is enabled, using the Joomla default <br>";
return;
}
// If the user is blocked, redirect with an error
if ($instance->get('block') == 1 ) {
echo '- this user is blocked from accessing Joomla with the blocked setting';
}
echo "-The Joomla usergroup for this user is: $grp->name <br>";
}
?>
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 12:35 PM
|
#37 (permalink)
|
|
Site Addict
Join Date: Sep 2005
Location: Los Gatos, California
Posts: 1,371
|
So............will you still offer help if it is for a porn website
|
|
|
04-25-08, 12:50 PM
|
#38 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by nat
So............will you still offer help if it is for a porn website

|
Haha, depends on the nature of the problem. What is it?
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 01:39 PM
|
#39 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Quote:
Originally Posted by NaterGator
Replace that whole file with this and re-run. It will give new output that will let me know exactly what line is failing (since line numbering seems to be getting tracked incorrectly)
|
OK, I got this:
Code:
- Performing the JFusion Authentication function for user:tester1
- JFusion is enabled
- using the forum database to check the users password
- the forum filtered username is: tester1
stdClass Object ( [userid] => 4 [username] => tester1 [name] => tester1 [email] => highskydesign@yahoo.com [password] => df0376200e266b0b012ed788323dd21c83630a3d [password_salt] => 49a1 [block] => 0 ) - the userinfo object contains the array:1
found the user in the forum database
- starting to loop through the different password encryption methods
- database password: df0376200e266b0b012ed788323dd21c83630a3d and smf password: df0376200e266b0b012ed788323dd21c83630a3d
- found a matching password
- Performing the JFusion User function
- JFusion integration enabled
- no entry found in the lookup table, checking in the Joomls user table directly
- the user does NOT exist in the Joomla database
- auto user mirroring is turned on, therefore we will create a new Joomla user
- nate's debug output. tracking code location: 1, 2
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/content/p/a/g/pageweb77/html/joomla/libraries/joomla/database/database/mysql.php on line 193
, 3, 4, 5, 6, 7
Fatal error: Call to a member function on a non-object in /home/content/p/a/g/pageweb77/html/joomla/administrator/components/com_jfusion/admin.login_checker.php on line 394
|
|
|
04-25-08, 02:08 PM
|
#40 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Kori (  ), go back to line 383 and find this line:
Code:
$instance = & $forum->getUser($user,$options);
Change it to this
Code:
$instance = & $forum->getUser($user['username'],$options);
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 02:33 PM
|
#41 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Wait a second here... the prototype for the function that is causing the fatal error is:
function createJoomlaUsername($jname, $userid, $username, $email, $password, $usertype, $gid, $params = NULL, $email_conflict = 1)
But the call passes:
AbstractForum::createJoomlaUsername($username, $instance->get('email'), $instance->get('password'), $usertype, $gid)
 That ain't right at all. This seems like some really alpha software. Considering the appropriate fix now...
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 03:24 PM
|
#42 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
One more change.
Change the line that reads:
AbstractForum::createJoomlaUsername($username, $instance->get('email'), $instance->get('password'), $usertype, $gid);
To:
AbstractForum::createJoomlaUsername($jname, $userinfo->userid, $username, $instance->get('email'), $instance->get('password'), $usertype, $gid, NULL, '1');
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 03:34 PM
|
#43 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Quote:
Originally Posted by NaterGator
One more change.
Change the line that reads:
AbstractForum::createJoomlaUsername($username, $instance->get('email'), $instance->get('password'), $usertype, $gid);
To:
AbstractForum::createJoomlaUsername($jname, $userinfo->userid, $username, $instance->get('email'), $instance->get('password'), $usertype, $gid, NULL, '1');
|
OK done. Now it says this:
Code:
- Performing the JFusion Authentication function for user:tester1
- JFusion is enabled
- using the forum database to check the users password
- the forum filtered username is: tester1
stdClass Object ( [userid] => 4 [username] => tester1 [name] => tester1 [email] => highskydesign@yahoo.com [password] => df0376200e266b0b012ed788323dd21c83630a3d [password_salt] => 49a1 [block] => 0 ) - the userinfo object contains the array:1
found the user in the forum database
- starting to loop through the different password encryption methods
- database password: df0376200e266b0b012ed788323dd21c83630a3d and smf password: df0376200e266b0b012ed788323dd21c83630a3d
- found a matching password
- Performing the JFusion User function
- JFusion integration enabled
- no entry found in the lookup table, checking in the Joomls user table directly
- the user does NOT exist in the Joomla database
- auto user mirroring is turned on, therefore we will create a new Joomla user
- nate's debug output. tracking code location: 1, 2, 3, 4, 5, 6, 7
Fatal error: Call to undefined function: get() in /home/content/p/a/g/pageweb77/html/joomla/administrator/components/com_jfusion/admin.login_checker.php on line 394
This is line 394:
Code:
AbstractForum::createJoomlaUsername($jname, $userinfo->userid, $username, $instance->get('email'), $instance->get('password'), $usertype, $gid, NULL, '1');
|
|
|
04-25-08, 04:05 PM
|
#44 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Haha, their variable naming is crap!
Do me a favor, right before that AbstractForum::create... line add the following two lines and rerun and give me the output 
print_r($user);
print_r($userinfo);
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 04:37 PM
|
#45 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Now it say this:
Code:
- nate's debug output. tracking code location: 1, 2, 3, 4, 5, 6, 7Array ( [username] => tester1 ) stdClass Object ( [userid] => 4 [username] => tester1 [name] => tester1 [email] => highskydesign@yahoo.com [password] => df0376200e266b0b012ed788323dd21c83630a3d [password_salt] => 49a1 [block] => 0 [password_clear] => tester1 )
Fatal error: Call to undefined function: get() in /home/content/p/a/g/pageweb77/html/joomla/administrator/components/com_jfusion/admin.login_checker.php on line 396
Line 396 is:
Code:
AbstractForum::createJoomlaUsername($jname, $userinfo->userid, $username, $instance->get('email'), $instance->get('password'), $usertype, $gid, NULL, '1');
echo ', ',$i++;
|
|
|
04-25-08, 04:42 PM
|
#46 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Ok, replace the same old line with the following:
AbstractForum::createJoomlaUsername($jname, $userinfo->userid, $username, $userinfo->email, $userinfo->password, $usertype, $gid);
And get rid of those two print_r() lines.
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 04:49 PM
|
#47 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Success????
Code:
- Performing the JFusion User function
- JFusion integration enabled
- no entry found in the lookup table, checking in the Joomls user table directly
- the user does NOT exist in the Joomla database
- auto user mirroring is turned on, therefore we will create a new Joomla user
- nate's debug output. tracking code location: 1, 2, 3, 4, 5, 6, 7, 8, 9- the userid for the newly created Joomla user is: 64
-The Joomla usergroup for this user is: Registered
|
|
|
04-25-08, 04:57 PM
|
#48 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Yes!!
I just created a new acct on the message boards, then used the user sync function on joomla, and it brought it over -- AWESOME!!
Thank you!!
|
|
|
04-25-08, 05:04 PM
|
#49 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
All I see on the front page is the standard com_user login module. Did you enable and use the JFusion one? I think you're supposed to do that
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 05:08 PM
|
#50 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Quote:
Originally Posted by NaterGator
All I see on the front page is the standard com_user login module. Did you enable and use the JFusion one? I think you're supposed to do that 
|
uh, i thought i did... lemme go check.
|
|
|
04-25-08, 05:13 PM
|
#51 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
In the plugins, I have jfusion authentication enabled, and Joomla authentication disabled.
ahh... but I had user-jfusion disabled and user-joomla enabled. I just switched them.
is that right?
|
|
|
04-25-08, 06:01 PM
|
#52 (permalink)
|
|
Turbo Diesel Lover
Join Date: Apr 2003
Location: Panamá
Posts: 11,429
|
Quote:
Originally Posted by NaterGator
Tapage, nice site
I'm sure bluehost is fine and if it works for you and you like them, I don't see any reason you should change. "If it ain't broke don't fix it"
Where are you seeing MySQL connection issues? Is it randomly happening when browsing the forum?
|
thanks Nator ..
I never have a issue browsing the forum ( tiny compared to anyother forum ) but I randomly have reports ( mails ) from the forum, with a mysql conectivity issues ..
__________________
HJ-60 2H-T Intercooled Tencha
HDJ-80 1HD-T not stock at all ! Marilu
FZJ-80 1FZ-FE ready to Play ( wife rig ! )
Join us at our local Panamá Off Road Forum
Quote:
Originally Posted by crushers
if you are achieveing the max boost then it isn't the boost that is going to kill your engine... it is your right foot.
|
|
|
|
04-25-08, 06:42 PM
|
#53 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by grrlscout89FJ62
In the plugins, I have jfusion authentication enabled, and Joomla authentication disabled.
ahh... but I had user-jfusion disabled and user-joomla enabled. I just switched them.
is that right?
|
Yes, now you need to go under Extensions->Module manager and disable "Login Form" and enable "JFusion Login Module"
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 06:51 PM
|
#54 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by Tapage
thanks Nator ..
I never have a issue browsing the forum ( tiny compared to anyother forum ) but I randomly have reports ( mails ) from the forum, with a mysql conectivity issues ..
|
 What do those emails say specifically?
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 09:56 PM
|
#55 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
Quote:
Originally Posted by NaterGator
Yes, now you need to go under Extensions->Module manager and disable "Login Form" and enable "JFusion Login Module"
|
Hmmm... I disabled "Login Form" but I don't see "JFusion Login Module"
|
|
|
04-25-08, 10:03 PM
|
#56 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by grrlscout89FJ62
Hmmm... I disabled "Login Form" but I don't see "JFusion Login Module"

|
 Did you in fact install it? Filter them with the word login and see if it comes up. If not you may want to upgrade each part of the jfusion modules/plugins to the newest versions since installing just the login module from the new version may be risky.
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 10:10 PM
|
#57 (permalink)
|
|
FML
Join Date: Aug 2004
Location: Glendale, AZ
Posts: 704
|
hrmm... there was an error during the install
however, now I'm in the laptop that has no webdev software. So this task will have to wait until tomorrow, at the earliest.
|
|
|
04-25-08, 10:18 PM
|
#58 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Yeah, from playing around with it jfusion is pretty damn picky (maybe flaky is the right word)
I've had it lock me out of my joomla admin panel about 4 times now and I have to go into the joomla database and fix everything manually
It would almost be safer to simply hard-code the PHP source into joomla and smf that would add the user to the other upon registration. JFusion is adding this extra layer on top of joomla and totally messes with it's whole login system (despite claming no core modifications). 1.0.6c is also littered with programming mistakes I've had to correct on my local install before it would even work. When they say it's alpha they really mean it's alpha. It by no means deserves a 1.x version number that they gave it. A 0.2.x version number would be generous given the state of the code IMO.
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
04-25-08, 10:56 PM
|
#59 (permalink)
|
|
Site Addict
Join Date: Sep 2005
Location: Los Gatos, California
Posts: 1,371
|
Quote:
Originally Posted by NaterGator
Haha, depends on the nature of the problem. What is it? 
|
Actually my website problems are easy..............how should I create a cool website to put my photography on?
I suck
|
|
|
04-25-08, 11:21 PM
|
#60 (permalink)
|
|
Poseidon, look at me
Join Date: Oct 2006
Location: Tampa/Gainesville, FL
Posts: 1,440
|
Quote:
Originally Posted by nat
Actually my website problems are easy..............how should I create a cool website to put my photography on?
I suck 
|
Honestly the best bet for total newbies to get their feet wet is to use templates and open source content managers.
Here is a quick example of one I just google up real quick:
Open Web Design - View Design
These are typically easy to drop onto your site and plug your content into. They look good out of the box, and many are fairly easy to customize. Once you start using them you'll get a feel for how everything works and eventually you'll be ready to at least partially DIY.
__________________
'96 LX450, 33" Revos, OME lifted, etc, etc 
Love the life you live, live the life you love. -Bob Marley
Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live. -Oscar Wilde
Right-click image transloading made blindingly easy.
Quote:
Originally Posted by fsusteve
What are you talking about bro, I'm a long time gator fan.......
|
WFC: 0473-9763-9112
|
|
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|