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

eZ debug

Timing: Jan 31 2025 01:29:21
Script start
Timing: Jan 31 2025 01:29:21
Module start 'content'
Timing: Jan 31 2025 01:29:21
Module end 'content'
Timing: Jan 31 2025 01:29:21
Script end

Main resources:

Total runtime0.2022 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 588.0469370.2891
Module start 'content' 0.01030.0156 958.33591,005.4375
Module end 'content' 0.02580.1762 1,963.77343,893.8672
Script end 0.2021  5,857.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00502.4864200.0003
Check MTime0.00150.7255200.0001
Mysql Total
Database connection0.00100.492110.0010
Mysqli_queries0.100749.82301410.0007
Looping result0.00130.62791390.0000
Template Total0.175887.010.1758
Template load0.00090.459510.0009
Template processing0.174986.493410.1749
Override
Cache load0.00070.325510.0007
Sytem overhead
Fetch class attribute can translate value0.00200.985810.0020
XML
Image XML parsing0.00020.105910.0002
General
dbfile0.00673.3275200.0003
String conversion0.00000.005030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs