Forums / Developer / Manually adding users from external app

Manually adding users from external app

Author Message

Tedd Hansen

Tuesday 29 April 2003 5:10:03 am

Can anyone tell me how to modify the database to add users "manually" ? I created a CGI-script for it for ezpublish-2.9-7 -- but when I upgraded to 3.0-1 it didn't work any more. I've surfed the DB and can't seem to fint the problem. The users seems to be added correctly to the database, but they don't show up in the "Users" tab in ez publish admin.

The reason why I need this is that I'm bundling it with PHPBB, so I need one central place to edit all users (or atleast it seemed to be the easiest way)

:)

Gabriel Ambuehl

Tuesday 29 April 2003 6:28:20 am

PHPBB most likely has one place where it fetches user info and stores it in a global array of sorts (educated guess, I have no real clue about the product in question). Seems like it would be easiest to simply change that code to fill the array from ezpublish DB.

If not, SOAP springs into mind.

Visit http://triligon.org

Tedd Hansen

Tuesday 29 April 2003 6:55:17 am

The PHPBB-part is all good, it works. I need to know how to manually add a user in the ez database.
I won't sit down at rewrite PHPBB's authentication system to match ez's. It's much simpler to just repair the bug in my cgi-script, but to do this I need to know how users are added to the ezpublish database... :)

Gabriel Ambuehl

Tuesday 29 April 2003 12:18:53 pm

You should probably NOT use a CGI script but a PHP script so you can interface with the ezuser class in kernel/ezuser/ezuser.php.

Look at http://ez.no/sdk/ref/view/class/eZUser

Visit http://triligon.org

Jerry Jalava

Tuesday 06 May 2003 9:35:57 am

With this same script are you able to handle the user login also? What I mean is, that when you have your users logging in to ez they also log to PHPbb and vice versa?

'Cause I should be doing this kind of thing with Invision Board...
The idea is that my users need to register only once and login only once.

Regards,
Jerry

Gabriel Ambuehl

Tuesday 06 May 2003 12:09:34 pm

If you want to do that, you won't come around rewriting your forum's authentication code.

Visit http://triligon.org

Jerry Jalava

Wednesday 07 May 2003 2:40:11 am

Would SOAP do anything for me in my situation? If it would, anyone has an idea how even in theory it should work? 'Cause I'm really new with SOAP and really don't know all the things I could do with it, but I'm learning all the time... ;)

Could someone who nows more about SOAP post suggestions in here for this kind of thing... I believe this kind of thing would be really efficient thing for eZ. We could use eZ with any other scripts ie. Forums, Shops,...

Thanks,
Jerry