Adminsitration and g_id of g2_users

krikrizzz

Joined: 2007-05-31
Posts: 4
Posted: Thu, 2007-05-31 09:49

Hello,

In first sorry for my english ^^

So, I'll try to crate gallery2's users with an adminsitration page. But i didn't understand how the soft does to create the g_id user s because in the database isn't auto-increment.

Thanks for your help.

Krikrizzz.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-05-31 11:30

- the G2 database schema isn't very easy to understand. you'll probably break things by doing any manual changes.
- don't interact with the database directly. there is API that provides functions for most things you'll want to do.

that having said, g2 is using a sequence all ids. g2_SequenceId.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
krikrizzz

Joined: 2007-05-31
Posts: 4
Posted: Thu, 2007-05-31 12:31

ok i understand but so is it possible to use just he page of user creation in other page ? may be with a frame but it isn't very beautyful.

Thanks for your help

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-05-31 13:28

why not use site admin -> users?

also note that your visitors can register an account on their own. just install the user registration module.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
krikrizzz

Joined: 2007-05-31
Posts: 4
Posted: Thu, 2007-05-31 13:31

Because i use an page administration which permit to create an user for lot of soft like forum, wikki etc...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-05-31 13:37

i dont't understand.
site admin -> user is the administration panel of g2. why not use that?

if your g2 is embedded, all users created in your forum / wiki / whatever should automatically be created in g2 as well (through GalleryEmbed::createUser).

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
krikrizzz

Joined: 2007-05-31
Posts: 4
Posted: Thu, 2007-05-31 14:49

hum thanks for your help i am a novice in developpement i go to try... :s