Create a user

bamnet

Joined: 2006-10-10
Posts: 2
Posted: Tue, 2006-10-10 23:56

Hi, I'm working on a php portal for a small organization. I wanted to use gallery2 for the photo portion of the site. Is there a way to easily add a user with a certain password? I have the username and password (in plaintext) coming from a form that I process into a mysql db. I've tried reading some stuff about GalleryEmbed::createUser but its all greek to me.

Any help would greatly appreciated!

Thanks,
Brian

 
DaveQB

Joined: 2006-05-15
Posts: 13
Posted: Thu, 2006-10-19 13:32

I too would love to see a working example of creating a user.

Say make a user with details of
id: 5
login: joe
name: joe blog
email:

passwd: [I dont need this, but bamnet does]

 
bamnet

Joined: 2006-10-10
Posts: 2
Posted: Thu, 2006-10-19 14:00

What I ended up doing was integrating gallery2 with phpbb. http://www.nukedgallery.net/downloads-cat12.html has the scripts to do it. The user information would be copied from phpBB so only table needed to be maintained. Then I wrote a custom user creation script for phpBB. Its significantly easier to do than gallery2 (at least for me). The user table is easy to understand and passwords are just md5'ed. Unforunately trying to write the login/logout code for 3 systems hasn't been the easiest. If having my phpBB creation script is helpful let me know.

 
DaveQB

Joined: 2006-05-15
Posts: 13
Posted: Thu, 2006-10-19 14:25

Thanks mate.

I am using FudForum. Its API is so much easier to work with then Gallery's, like you found with phpBB. So I might end up going that route too [Leaving Gallery as main app and integrate FudForum into it.]

But I would prefer it the other way around and so will continue to work at getting this to work....

Now to find an example of GalleryEmbed::createUser......

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-10-22 14:52

what's easier with fudforum's integration api than with g2? if you can explain it, we might be able to make it easier in g2.