Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
canadiancow Offline
New Member
 
Posts: 4
Join Date: Jul 2007
Ticket Submission Modification - 18-07-2007, 09:03 PM

I'm posting this here before I delve into the Kayako source, but I'll write this myself if need be.

I run a game server, and people can have multiple game accounts. However, they will only have one support account, and the logins are not tied to their game accounts for several reasons.

I would like to have the user submit their username and password for their game account with every ticket, and then have Kayako's script verify the password, and flag the ticket as having the game account ownership verified, but only show the username in the staff section, not the password.

I know I can add custom form fields to the ticket submission, but I'd like to know if I can do the above processing within Kayako, rather than having my support staff enter the username/password in a script somewhere to verify them (especially since I don't want all my staff getting plaintext passwords for the players).

Thanks in advance.
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 6,755
Join Date: Jun 2005
Location: Cumbria, UK
19-07-2007, 08:37 AM

When you say "verify" I assume you mean connect to a 3rd party product (ie the game server) and check the credentials are correct. This would require a fair amount of modification.

The other thing, hiding the password field from staff, would be fairly simple I think (maybe "If staff, do not show and if admin, show").

I suggest you contact SoftAir (http://www.softairltda.com) to have them give you a quote for these modifications.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

My Addons: BlackBerry Ticket Client for Kayako - Windows Mobile Live Support Client for Kayako
   
Reply With Quote
  (#3) Old
Bconsulting Offline
Member
 
Bconsulting's Avatar
 
Posts: 88
Join Date: Sep 2005
Location: Earth Most Of The Time
19-07-2007, 12:08 PM

It would be awesome if custom fields could link to a field in a certain MYSQL table to lookup any values in that table and if the value is not found, return an error back to the ticket submitter.
   
Reply With Quote
  (#4) Old
canadiancow Offline
New Member
 
Posts: 4
Join Date: Jul 2007
19-07-2007, 09:51 PM

I've been looking through the code, but it looks like it will be a little annoying to make this modification, simply because of the "names" of the custom fields (for example, 98c56cd3c0).

However, I can just take the post variables, perform the check on my database, and replace the password with either "VALID" or "INVALID"

I'll let you know when I'm done, and I'll post the code here for anyone else who might want to do something similar.
   
Reply With Quote
  (#5) Old
canadiancow Offline
New Member
 
Posts: 4
Join Date: Jul 2007
20-07-2007, 12:37 AM

I've included the surrounding code to make it easier to find. I wanted it to stand out more in the staff section if the user had entered a valid username/password combination, so I had to make a change to the HTML tag stripping on the display page to allow two special cases.

modules/tickets/client_submit.php
Code:
                    $template->assign("cclist", $_recipients);
                    $template->assign("recipientcount", $_recipientcount);

                    /************************************
                    EuphRO Account Verification Modification
                    Written by Scott Kennedy
                    ************************************/
                    $euphAccount = $_POST['98c56cd3c0'];
                    $euphPass = $_POST['4e36c66e60'];
                    
                    $euphDb = mysql_connect('host', 'user', 'pass');
                    mysql_select_db('ragnarok', $euphDb);

                    $euphResult = mysql_query("SELECT `user_pass` FROM `login` WHERE `userid` LIKE '{$euphAccount}'", $euphDb);
                    $euphRow = mysql_fetch_assoc($euphResult);
                    $_POST['4e36c66e60'] = (md5($euphPass) == $euphRow['user_pass']) ? '<font color="green">VERIFIED</font>' : '<font color="red">NOT VERIFIED</font>';

                    //mysql_close($euphDb); //this line results in none of the custom fields being saved to the database
                    //End of EuphRO AV Mod

                    updateCustomFields(CUSTOMFIELD_USERTICKET, $_ticketiddata[0], $_POST["departmentid"]);
                    //Mahesh Slaria: Staff & user ticket creation
                    updateCustomFields(CUSTOMFIELD_STAFFUSERTICKET, $_ticketiddata[0], $_POST["departmentid"]);
modules/tickets/staff_viewticket.php
Code:
foreach ($val["fields"] as $fieldkey=>$fieldval)
        {
            unset($fieldvalue);
            if (_is_array($fieldval["fieldvalue"]))
            {
                foreach ($fieldval["fieldvalue"] as $fkey=>$fval)
                {
                    /************************************
                    EuphRO Account Verification Colour Modification
                    Written by Scott Kennedy
                    ************************************/

                    if ($fval == '<font color="green">VERIFIED</font>' || $fval == '<font color="red">NOT VERIFIED</font>')
                    {
                        $fieldvalue .= $fval."<BR />";
                    }
                    else
                    {
                        $fieldvalue .= htmlspecialchars($fval)."<BR />";
                    }
                    
                    //$fieldvalue .= htmlspecialchars($fval)."<BR />"; //original code
                    
                    //End of EuphRO AVC Mod
                }
            } else {        
                    /************************************
                    EuphRO Account Verification Colour Modification
                    Written by Scott Kennedy
                    ************************************/

                    if ($fieldval["fieldvalue"] == '<font color="green">VERIFIED</font>' || $fieldval["fieldvalue"] == '<font color="red">NOT VERIFIED</font>')
                    {
                        $fieldvalue = nl2br($fieldval["fieldvalue"]);
                    }
                    else
                    {
                        $fieldvalue = nl2br(htmlspecialchars($fieldval["fieldvalue"]));
                    }
                    
                    //$fieldvalue = nl2br(htmlspecialchars($fieldval["fieldvalue"])); //original code
                    
                    //End of EuphRO AVC Mod
            }
            $infolist[] = array($fieldval["title"].":", autoLink($fieldvalue));
        }
   
Reply With Quote
Reply

Tags
modification, submission, ticket

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free One step ticket modification (download here) jc11 Modifications & Addon Releases 40 13-02-2008 06:50 PM
Alert for New Ticket and/or Ticket Modification dremeda How do I? 9 19-05-2007 08:56 PM
Will Pay for Modification: Only 1 Opened ticket at a time manolodf Requests 0 05-01-2007 06:18 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71