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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:21:19
Script start
Timing: Jan 18 2025 11:21:19
Module start 'layout'
Timing: Jan 18 2025 11:21:19
Module start 'content'
Timing: Jan 18 2025 11:21:20
Module end 'content'
Timing: Jan 18 2025 11:21:20
Script end

Main resources:

Total runtime0.9662 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0313152.6406
Module start 'layout' 0.00450.0029 740.671939.4766
Module start 'content' 0.00750.9575 780.1484573.5703
Module end 'content' 0.96500.0011 1,353.718816.1406
Script end 0.9661  1,369.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3130160.0002
Check MTime0.00120.1293160.0001
Mysql Total
Database connection0.00050.049810.0005
Mysqli_queries0.919995.2078710.0130
Looping result0.00060.0612690.0000
Template Total0.934996.820.4675
Template load0.00200.207120.0010
Template processing0.932996.559820.4665
Template load and register function0.00010.013110.0001
states
state_id_array0.00160.163210.0016
state_identifier_array0.00080.087220.0004
Override
Cache load0.00160.1699280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067130.0002
Fetch class attribute name0.00090.093570.0001
XML
Image XML parsing0.00040.037530.0001
class_abstraction
Instantiating content class attribute0.00000.000970.0000
General
dbfile0.00060.0635100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs