Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
nume Offline
New Member
 
Posts: 9
Join Date: May 2005
Problems with deleting and inserting users - 26-06-2006, 07:32 AM

Hi,

we are using a customized LoginShare module.
In certain situations, we need to delete a user and create a new user with the same user id - so I try to use the following two "built-in" functions:

Code:
deleteUsers(...);
$userid = insertUser(...);
This does however not work - the insert call fails! It seems that the deletion has not been performed in the DB, when then call to insertUser is attempted. If I then run another script with the same call to insertUser - the insert is successfull. Is there any way to force the "commit" of the deleteUsers function, so that the consecutive insert call won't fail?

(I'd rather not access the database directly... :-)

--
nume
   
Reply With Quote
  (#2) Old
MikeKraken Offline
New Member
 
MikeKraken's Avatar
 
Posts: 6
Join Date: Jul 2006
Location: Montréal
Explanation of insertUser() - 24-08-2006, 06:37 PM

I don't think I know how to help you, Nume, but I have a question relating to this. I hope somebody will be able to help me (and perhaps Nume as well) out.

I want to know what are the parameters for insertUser. An example from the AWBS LoginShare module:

PHP Code:
$userid insertUser(true$_user["email"], $regpassword$_SWIFT["tgroup"]["regusergroupid"], LOGINAPI_AWBS$_user["id"], $_user["fname"]." ".$_user["lname"], $_SWIFT["tgroup"]["languageid"], 0false1truetrue); 
I have altered this code for our own LoginShare module with our database and want to add an additional field. I can't find any documentation for this method anywhere online. I see where the data goes into the database under "swusers" but don't know what the ambiguous "true"s and numbers mean.

Cheers,

... Mike.
   
Reply With Quote
Reply

Tags
deleting, inserting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46