Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
logicway Online
Member
 
Posts: 62
Join Date: Jul 2006
Parsed-tickets: Use fullname from user (if user exists in database) - 03-10-2006, 07:56 AM

This is my hack to retrieve the fullname from the user in the database, instead of using the fromname form the emailheaders when creating tickets (or ticketpost) from the parser. If the user doesn't exists, then it uses the emailheader-fromname.

File:
/modules/parser/funtions_parsercore.php

Find around line 477 (v3.00.90) or line 483 (v3.04.00):
// Create the Ticket Post

Add right before this:
// Find fullname form userid
$_fullname = $dbCore->queryFetch("SELECT * FROM `". TABLE_PREFIX ."users` WHERE `userid` = '". intval($userid) ."';");
if (!empty($_fullname["fullname"]))
{
$_email["fromName"] = $_fullname["fullname"] ;
}


Find around line 571 (v3.00.90) or line 578 (v3.04.00):
$_ticketiddata = createTicket(POST_CLIENT.......

Add right before this:
// Find fullname form userid
$_fullname = $dbCore->queryFetch("SELECT * FROM `". TABLE_PREFIX ."users` WHERE `userid` = '". intval($userid) ."';");
if (!empty($_fullname["fullname"]))
{
$_email["fromName"] = $_fullname["fullname"] ;
}
   
Reply With Quote
Reply

Tags
database, exists, fullname, parsedtickets

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
User Support Area/Sort Tickets? ehoffman SupportSuite, eSupport and LiveResponse 8 13-06-2007 10:09 PM
Sorting tickets by User Group rrnworks How do I? 4 28-03-2007 09:15 PM
using AD loginshare only 1 user saved to database kms83 SupportSuite, eSupport and LiveResponse 0 10-07-2006 02:26 PM



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