Ricklord Posted May 4, 2007 Share Posted May 4, 2007 Hi Guys, I've just got the free version of helpdeskpilot availablel from there website www.helpdeskpilot.com I've had it for 15 minutes got it installed and already want to make some minor changes just to get the ball running. The first thing i notice is the forms are stored in template files (.tpl) so it is these files i want to edit. When a customer submits a ticket for the first time they have to enter there details which are used for loging in next time to check the status. At present on the form it says Full Name: which would be Joe Bloggs. Now what i want to do is change the text output instead of Full Name: i want Company Name: Reason for this is becuase this field is key for tarcking activity. I want to leave teh actual field ID's the same so i dont have to change it all over the software but just change the out put text on the form. Anyway heres the template file and the line in question is around line 89. I was wondering how i could make this out put as Company Name, rather than Full Name????? You can see the form on my test site here: http://www.creativecogs.com/support/new_ticket.php?tab=tickets Oh yeah and heres teh code for that page: <script language="JavaScript"> function validate_ticket(frm) { with(frm) { var flag1=validate_field(client_name,'{{cNoname}}'); if(flag1==false) { return false; } if(!isEmailAddress(email.value)) { alert('{{cNoemail}}'); email.focus(); return false; } {{custom_javascript}} var flag1=validate_field(pass_word,'{{cNopassword}}'); if(flag1==false) { return false; } if(pass_word.value!=password_confirm.value) { alert("{{cPasswordmismatch}}"); return false; } var flag3=validate_field(dept_id,'{{cNodepartment}}'); if(flag3==false) { return false; } var flag1=validate_field(priority_id,'{{cNopriority}}'); if(flag1==false) { return false; } var flag1=validate_field(subject,'{{cNosubject}}'); if(flag1==false) { return false; } var flag1=validate_field(message,'{{cNomessage}}'); if(flag1==false) { return false; } return true; } } </script> <br /> <div class="tickets-main"> {{cNew_ticket}} </div> <{errormsg_start}> <div class="errormsg"> {{status_msg}} </div> <{errormsg_end}> <div class="form-container"> <form name="new_ticket" method="post" action="new_ticket.php" onSubmit="return validate_ticket(document.new_ticket);" enctype="multipart/form-data" > <input type="hidden" name="act" value="openticket"> <div class="sub-heading"> {{cClient_newtickettitle}} </div> <div class="formheading"> <span class="label"> {{cLogin_direct}} </span> </div> <div class="formrow"> <span class="label">{{cClient_fullname}}:</span> <span class="field"><input name="client_name" type="text" class="singleline-field" id="full_name" value="{{client_name}}" /> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class=label> {{cClient_phone}} : </span> <span class="field"> <input type="text" name="phone" value="{{phone}}" class="singleline-field"> </span> </div> <div class="formrow"> <span class="label"> {{cClient_email}} : </span> <span class="field"> <input type="text" name="email" value="{{email}}" class="singleline-field"> <span class="mandatory-fld"> * </span> </span> </div> <{customfields_loopstart}> <div class="formrow"> <span class="label"> <{field_name}> : </span> <span class="field"> <{draw_field}> </span> </div> <{customfields_loopend}> <div class="formrow"> <span class=label> {{cDepartment}} : </span> <span class="field"> <select name="dept_id" class="singleline-field"> <option value="">{{cSelect}}</option> <{dept_loopstart}> <option value="<{dept_id}>" <{selected}> ><{dept_name}></option> <{dept_loopend}> </select> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class=label> {{cTicket_priority}} : </span> <span class="field"> <select name="priority_id" class="singleline-field"> <option value="">{{cSelect}}</option> <{priority_loopstart}> <option value="<{priority_id}>" <{selected}> ><{priority_name}></option> <{priority_loopend}> </select> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class=label> {{cTicket_subject}} : </span> <span class="field"> <input type="text" name="subject" value="{{subject}}" class="textarea-field"> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class=label> {{cTicket_message}} : </span> <span class="field"> <textarea name="message" cols="{{cols}}" rows="{{rows}}" class="textarea-field" id="comments">{{message}}</textarea> <span class="mandatory-fld"> * </span> </span> </div> <{attachment_start}> <div class="formrow"> <span class=label> {{cTicket_attachment}} : </span> <span class="field"> <input type="file" name="attachment" value="" size="50" /> ({{cMax}} {{attachment_size}} {{cKb}}) </span> </div> <{attachment_end}> <div class="formheading"> <span class="label"> {{cProvide_password}} </span> </div> <div class="formrow"> <span class="label"> {{cPassword}} : </span> <span class="field"> <input type="password" name="pass_word" class="singleline-field"> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class="label"> {{cPassword_confirm}} : </span> <span class="field"> <input type="password" name="password_confirm" class="singleline-field"> <span class="mandatory-fld"> * </span> </span> </div> <div class="formrow"> <span class="field"> <input type="submit" name="Submit" value="{{cSubmit}}" class="stdbutton-field" /> <input type="reset" name="reset" value="{{cReset}}" class="stdbutton-field" /> </span> </div> </form> <div class="mandatory-txt"> {{cMandatory_txt}} </div> </div> <script language="JavaScript"> document.new_ticket.client_name.focus(); </script> Any ideas what to change or where to look next? Rick Quote Link to comment Share on other sites More sharing options...
Ricklord Posted May 4, 2007 Author Share Posted May 4, 2007 Solved. If anyone else is interested in knowing this is what i found. After doing some text searches i managed to find a file stored in the helpdesk directory called genric.php in this file it defines what should go where it says: line89 in file below {{cClient_fullname}} I just changed it in there so now everywhere within the help desk software instead of it saying Full Name it says Company Name... YAY!!!! 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.