nielsenj Posted March 23, 2008 Share Posted March 23, 2008 As per request, this mod will allow a visitor to WHMCS to submit a ticket to Kayako without having to login. Instructions are contained within the file. Requirements: 1. An Owned version of Kayako (for source code) - I believe you can ask Kayako for specific files if you don't have an owned licence. 2. General knowledge about how to edit files on a server. Known Issues: 1. Kayako's CAPTCHA will not work in any integration, potential spam bot abuse. Regards, J Link: http://www.mcintegrator.com/downloads/Guest%20Submit%20Ticket%20Form.zip 0 Quote Link to comment Share on other sites More sharing options...
BionHostStan Posted March 23, 2008 Share Posted March 23, 2008 Can't wait to see if this is what I've been waiting for for SOO LONG!!!! Thanks J!!! 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 24, 2008 Author Share Posted March 24, 2008 Can't wait to see if this is what I've been waiting for for SOO LONG!!!!Thanks J!!! More than welcome, let me know how it works out! Regards, J 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted October 17, 2008 Author Share Posted October 17, 2008 Updated version of the guest submission form for Kayako + WHMCS integration. Requires: WHMCS v3.7.2 Kayako Support Suite v3.30.02 STABLE OwnedThis is required for code modification, if you do not have an owned license Kayako *MAY* provide you with the source version of the file if you request it directly. Changes: Updated to work with the latest versions of Kayako & WHMCS Captcha protection for Kayako now works Features: Users not logged in will be directed to a guest submission form for Kayako Logged i users will be directed to the pre-filled standard submission form. Tickets submitted by either method will be recorded and handled by Kayako. Original download URL now links to new version: Here Old download (compatible with WHMCS 3.6.x & Kayako Support Suite v3.20.02 Owned) now available: Here 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted January 6, 2009 Author Share Posted January 6, 2009 (edited) Updated version of the guest submission form for Kayako + WHMCS integration. Requires: WHMCS v3.8.1 Kayako Support Suite v3.30.02 STABLE Owned This is required for code modification, if you do not have an owned license Kayako *MAY* provide you with the source version of the file if you request it directly. Changes: Updated to work with WHMCS 3.8.1 Features: Users not logged in will be directed to a guest submission form for Kayako Logged i users will be directed to the pre-filled standard submission form. Tickets submitted by either method will be recorded and handled by Kayako. Original download URL now links to new version: Here Old download (compatible with WHMCS 3.7.x & Kayako Support Suite v3.30.02 Owned) now available: Here Old download (compatible with WHMCS 3.6.x & Kayako Support Suite v3.20.02 Owned) now available: Here Edited January 6, 2009 by nielsenj 0 Quote Link to comment Share on other sites More sharing options...
openmind Posted January 29, 2009 Share Posted January 29, 2009 Just implemented this mod and it works a treat, many thanks! 0 Quote Link to comment Share on other sites More sharing options...
mailinator123 Posted February 23, 2009 Share Posted February 23, 2009 I don't know why but I seem to be getting: Undefined variable: _LANG in /home/admin/public_html/clients/guestsubmitticket.php on line 2 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted February 23, 2009 Author Share Posted February 23, 2009 What versions of WHMCS and Kayako are you using? 0 Quote Link to comment Share on other sites More sharing options...
jasonhk Posted March 6, 2009 Share Posted March 6, 2009 (edited) guestsubmitticket.php? loads, but the 2nd step doesnt have any fields for user name and email address? WHMCS 3.8.1 Kayako SupportSuite v3.30.02 Is it possible for you to provide me with your modified kayako "\modules\tickets\client_submit.php" so I can check where the error is. edit: Cleared the browser cache and it works, weird It stored some kayako login info that was used over a month ago o.0 Edited March 6, 2009 by jasonhk 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 6, 2009 Author Share Posted March 6, 2009 Glad to hear you've gotten it working! 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted March 11, 2009 Share Posted March 11, 2009 after implementing this code - whmcs would bypass the login and go straight to the "select department" page of kayako. you then select a department and suddenly you can no longer type your name and email address in the required fields of the form. They appear locked. Any suggestions on what might be happening? 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 12, 2009 Author Share Posted March 12, 2009 If the form boxes are disabled then it is one of two issues: 1. Your browser is caching old information and needs to be cleared. 2. You did not edit your Kayako template files correctly (This is assuming you are using it on the specifically tested versions, template changes may be different in newer versions). Regards 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted March 12, 2009 Share Posted March 12, 2009 Can you review the latest version of kayako to see if there are any changes? We made sure to clear the cache and it still was doing the same. 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 12, 2009 Author Share Posted March 12, 2009 Support is provided for the versions mentioned. No changes have been worth an upgrade on my end since the mentioned versions so you're on your own. Disabled form boxes are specifically on the HTML side so if it's not a problem with your cache then it's most likely a problem with the Kayako template modifications. Regards 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted March 12, 2009 Share Posted March 12, 2009 I put the first snippet of code as so here which is actually line 287: //Mahesh Slaria if($_SWIFT["settings"]["kb_enableclient"] == 1) { $template->assign("sectiondesc", iif(defined("ISMODERNBILL"), $_SWIFT["language"]["dsubmitticketmb"], iif(defined("ISWHMCS"), $_SWIFT['language']['dsubmitticketwhmcs'], $_SWIFT["language"]["dsubmitticket"]))); }else { $template->assign("sectiondesc", iif(defined("ISMODERNBILL"), $_SWIFT["language"]["dsubmitticketmb"], iif(defined("ISWHMCS"), $_SWIFT['language']['dsubmitticketwhmcs'], $_SWIFT["language"]["xsubmitticket"]))); } //------ } So it now looks like so: //Mahesh Slaria if($_SWIFT["settings"]["kb_enableclient"] == 1) { $template->assign("sectiondesc", iif(defined("ISMODERNBILL"), $_SWIFT["language"]["dsubmitticketmb"], iif(defined("ISWHMCS"), $_SWIFT['language']['dsubmitticketwhmcs'], $_SWIFT["language"]["dsubmitticket"]))); }else { $template->assign("sectiondesc", iif(defined("ISMODERNBILL"), $_SWIFT["language"]["dsubmitticketmb"], iif(defined("ISWHMCS"), $_SWIFT['language']['dsubmitticketwhmcs'], $_SWIFT["language"]["xsubmitticket"]))); } //------ if (defined("ISWHMCS")) { if (WHMCSAREA == "guestsubmitticket") { $template->assign("basepath", "guestsubmitticket.php"); $template->assign("backurl", "guestsubmitticket.php?_m=tickets&_a=submit"); } else { $template->assign("basepath", "submitticket.php"); $template->assign("backurl", "submitticket.php?_m=tickets&_a=submit"); } } } And the second bit of I code I placed here at line 333: //--------- } if (!defined("ISMODERNBILLV5")) so it now looks like this: //--------- } if (defined("ISWHMCS")) { if (WHMCSAREA == "guestsubmitticket") $template->assign("basepath", "guestsubmitticket.php"); else $template->assign("basepath", "submitticket.php"); $template->assign("backurl", "index.php"); } else if (!defined("ISMODERNBILLV5")) Did I put these in the wrong place? The other files were uploaded as mentioned into the appropriate WHMCS directories as well. 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 12, 2009 Author Share Posted March 12, 2009 The modifications to the code simply keep the user on the same page (submitticket.php) and prevent the default re-direction to Kayako. If you can goto submitticket.php and proceed through the first step and still be on the submitticket.php page then the code modifications are the right modifications. If going to submitticket.php and proceeding to the next step takes you into your Kayako SupportSuite URL then there have been other changes to the back end code and there are probably aditional changes above and beyond what i've included for the 3.30.02 version. If the form entry boxes are disabled then it is specifically HTML and Template related. so you should be concentrating your effort there. Unless very large changes have occured in the way Kayako processes it's templates back end code changes should not be disabling the form entry boxes. There is most likely a change in the template format, a compliance/standards update perhaps, that change the way the mods' Template modification need to be formatted. 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted March 12, 2009 Share Posted March 12, 2009 This all happend when you click submit ticket and go to guestsubmitticket.php. When clicked - it goes to the select department in Kayako and then when you select the department the first two fields are locked. It's wild. And we haven't adjusted any of the code except for what you mentioned to put in there. It is only then that the boxes become locked. Maybe we will wait for your next version. 0 Quote Link to comment Share on other sites More sharing options...
nielsenj Posted March 12, 2009 Author Share Posted March 12, 2009 Sorry, i ment guestsubmitticket.php instead of submitticket.php. The logic is still applicable - if you're being re-directed to Kayako (not guestsubmitticket.php) on any step past the "submit ticket" link from your main WHMCS page then it is an issue with the back end modifications. If not, it is an issue with the template modifications. As for the next version there will most likely not be a release until Kayako SupportSuite 4.0 comes out as the beneficial changes in these new sub versions are minimal. Good luck 0 Quote Link to comment Share on other sites More sharing options...
bobbravo2 Posted March 16, 2009 Share Posted March 16, 2009 Nielsenj - would you mind stopping over @ this thread to help me out: http://forum.whmcs.com/showthread.php?t=15092 Thank you! 0 Quote Link to comment Share on other sites More sharing options...
taminoo Posted March 29, 2009 Share Posted March 29, 2009 Jerett I can confirm I am having the same problem as you, have you been able to fix it yet? Mine are both stock unmodified and I am getting the same exact error. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.