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.
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());
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!
Posts: 47
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.
Posts: 32509
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
Posts: 47
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!