Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Mods and Customizations

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-13-2012, 12:34 PM
beegees beegees is offline
Junior Member
 
Join Date: Feb 2012
Location: Belgium
Posts: 14
Default Send a different template if EN our FR

Hello,

I would like to know if its possible to send a different email template if a session variable is "FR" our "EN" ?

I would like to send the email template in frech if the visitor is french and in engilsh if the visitor is English (or other).

This is what I did but I have an error :

Code:
if($_SESSION['langue']=="FR")
			{
				$cfg_id=2;
			}
			elseif($_SESSION['langue']=="SP")
			{
				$cfg_id=3;
			}
			else
			{
				$cfg_id=1; //db_input($cfg->getId())
			}
			
            $sql='SELECT ticket_reply_subj,ticket_reply_body FROM '.EMAIL_TEMPLATE_TABLE.
                ' WHERE cfg_id= '.$cfg_id.' AND tpl_id='.db_input($tplId);
in my database, I have 3 templates (cfg_id 1, 2 and 3).

The templates 2 and 3 are in state "not in-use" is it normal ?

How can I activate them ?

Thank you in advance for your help.

beegees
Reply With Quote
 

Bookmarks

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

Forum Jump


All times are GMT -4. The time now is 07:50 AM.