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
Add User into Joomla DB from 3rd Party Script Topic is solved
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Forum rules
- lobos
- 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
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
$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
http://en.wikipedia.org/wiki/Tribes_Vengeance
Re: Add User into Joomla DB from 3rd Party Script
Aren't there some other tables that are required to be updated?
http://springhillalumni.org • Springhill High School Alumni Association
- lobos
- 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
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
http://en.wikipedia.org/wiki/Tribes_Vengeance
Re: Add User into Joomla DB from 3rd Party Script
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