Gallery and CCBill

rotpar

Joined: 2007-02-26
Posts: 47
Posted: Wed, 2007-05-09 17:06

CCBill's technical support just tries to find out how to correctly write the users login details into the g2_Users DB table, but something seems to go wrong.

If anybody knows how to do this, please PM me.

 
rotpar

Joined: 2007-02-26
Posts: 47
Posted: Thu, 2007-05-10 10:09

Nobody?

Here are more details.

They are using a cgi script that writes/deletes the logins from the htpasswd to the g2_User DB table. I think it needs some modifications in order to give each user an ID. I am not so sure what needs to be done.

I will pay, of course, no question about it.

I really hope somebody can help me.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-05-10 10:55

Use the API, you should never attempt to insert things in the database without the G2 API.

$ret = GalleryEmbed::init(array('fullInit' => true));
if ($ret) die($ret->getAsHtml());
$ret = GalleryEmbed::createUser($username, $userData);
if ($ret) die($ret->getAsHtml());
$ret = GalleryEmbed::done();
if ($ret) die($ret->getAsHtml());

see:
http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryEmbed.html#methodcreateUser

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

 
rotpar

Joined: 2007-02-26
Posts: 47
Posted: Thu, 2007-05-10 11:16

Thanks for your answer, valiant. I don't really know what this all means and the CCBill guys do just the basics, they don't modify anything. Would you like and have time to help? If yes, please PM me your price and anything else. Thanks!