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
jonas.andersson Offline
New Member
 
jonas.andersson's Avatar
 
Posts: 4
Join Date: Jan 2006
Location: Sweden
Question PHP Query - 06-02-2006, 09:46 AM

Hi,

The following tag displays the ticket ID

Code:
<{$ticket[fticketid]}>
How should this tag be written in PHP to process the ticket ID?

I am asking this question because I want to include the ticker ID in some customized PHP code I have in my templates. And I can't include the smarty-tag.


Yours sincerely
Jonas Andersson

Last edited by jonas.andersson; 06-02-2006 at 10:27 AM.
   
Reply With Quote
  (#2) Old
craigbrass Online
Senior Member
 
Posts: 5,394
Join Date: Jun 2005
Location: Cumbria, UK
06-02-2006, 10:35 AM

Hello,

Try using $ticketid as I think that is it. If not, check the includes directory as there is a file somwhere that assigns all the normal variables to smarty ones.

Best Regards,
Craig Brass


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
jonas.andersson Offline
New Member
 
jonas.andersson's Avatar
 
Posts: 4
Join Date: Jan 2006
Location: Sweden
06-02-2006, 10:43 AM

Hi again,

I am sorry. But this did not work.
Any more ideas?

The template i am modifying is alert_newticket. And i simply want to process variables in PHP.

Regards,
Jonas
   
Reply With Quote
  (#4) Old
craigbrass Online
Senior Member
 
Posts: 5,394
Join Date: Jun 2005
Location: Cumbria, UK
06-02-2006, 11:05 AM

Hello,

Look in /modules/tickets/client_tickets.php. Look for the following line :-
$_ticket["fticketid"] = iif($_SWIFT["settings"]["t_eticketid"]=="seq",$_ticket["ticketid"], $_ticket["ticketmaskid"]);

That should help you do what you need to do.

Best Regards,
Craig Brass


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#5) Old
jonas.andersson Offline
New Member
 
jonas.andersson's Avatar
 
Posts: 4
Join Date: Jan 2006
Location: Sweden
Sorry - 06-02-2006, 11:43 AM

I am sorry, but i am still not getting there.

Any one?
   
Reply With Quote
Reply

Tags
php, query

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
GoPHP5 BigTom3007 Comments, Questions & Feedback 10 15-05-2008 08:10 AM
Setup PHP on a Windows 2000 server netFusion Technical Chat 5 03-10-2007 09:01 AM
dynamic php includes in smarty templates ebyte.com SupportSuite, eSupport and LiveResponse 3 04-06-2007 08:22 PM
mail parser not working netjunkie SupportSuite, eSupport and LiveResponse 8 14-06-2006 10:37 AM
Mail Parser - PHP Fatal error raiseAlert() bdwyer SupportSuite, eSupport and LiveResponse 3 10-05-2006 10:28 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