Add User into Joomla DB from 3rd Party Script Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
Westoner

Add User into Joomla DB from 3rd Party Script

Post by Westoner » Mon Oct 29, 2007 1:15 pm

Hi,

I have a 3rd party script that takes User name, email address and password during the registration process. I would like to take that info and create an account in Joomla so I can then use Joomla to control the access rights of the returning user.

I'm no coder, so I'm looking for a lot of help here or maybe there's a job opportunity for someone (hope it's ok to say that)...

Thanks
Chris

User avatar
lobos
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Wed Jul 19, 2006 3:33 pm
Location: Sao Paulo, Brasil
Contact:

Re: Add User into Joomla DB from 3rd Party Script

Post by lobos » Sat Nov 03, 2007 4:40 pm

You will need to connect to the joomla database and use the following sql  to inject the user:

$sql = "INSERT INTO jos_users (
name,
username,
email,
password,
usertype,
gid,
registerDate
)
VALUES
('$full_name', '$username', '$email', '$password', 'Registered', '18', '$date')";

-Lobos
Respect and honour, sempre isso, the tribal way, the only way.
http://en.wikipedia.org/wiki/Tribes_Vengeance

Opie
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Thu Jun 22, 2006 7:32 pm
Contact:

Re: Add User into Joomla DB from 3rd Party Script

Post by Opie » Sat Nov 03, 2007 5:21 pm

Aren't there some other tables that are required to be updated?
http://springhillalumni.org • Springhill High School Alumni Association

User avatar
lobos
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Wed Jul 19, 2006 3:33 pm
Location: Sao Paulo, Brasil
Contact:

Re: Add User into Joomla DB from 3rd Party Script

Post by lobos » Mon Nov 12, 2007 2:13 pm

Opie wrote:Aren't there some other tables that are required to be updated?


Hmmm I don't think so, I did this awhile back so I am not 100% sure, but try it anyway and see if it works :)

-Lobos
Respect and honour, sempre isso, the tribal way, the only way.
http://en.wikipedia.org/wiki/Tribes_Vengeance

User avatar
Tonie
Joomla! Ace
Joomla! Ace
Posts: 1585
Joined: Thu Aug 18, 2005 7:13 am
Contact:

Re: Add User into Joomla DB from 3rd Party Script

Post by Tonie » Mon Nov 12, 2007 2:16 pm

You also need jos_core_acl_aro and jos_core_acl_groups_aro_map. Here's a faq to add an admin password, but can naturally also been used for other users.
Antonie de Wilde - Forum admin


Post Reply