SnipHosting Posted March 24, 2013 Share Posted March 24, 2013 What I want to be able to do is in both the screenshots below where the red box is is be able to have a message to my clients submitting tickets when logged in, and in the pre-sales contact us. This message is going to be our office hours for the business. I am not sure what or where I need to edit. Your help is grateful. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
mlew2 Posted March 24, 2013 Share Posted March 24, 2013 I would think it would just be a template edit, but at this moment I am not sure which. 0 Quote Link to comment Share on other sites More sharing options...
SnipHosting Posted March 24, 2013 Author Share Posted March 24, 2013 Thanks mlew2, I know it would be a simple template edit. Just a matter of finding out which template files need editing. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted March 24, 2013 Share Posted March 24, 2013 One way to find something like this is to find the language line in the template. Simply take something found in your image that's generated by the script and search in the templates for it. In the first image, I took "solution" from the "If you can't find a solution", and looked in /lang/english.php for that. It came up with the language var "supportticketsheader". Searching the templates for that came up with "supportticketsubmit-stepone.tpl". So check that one. (I'm behind a version or so, so it may be a different file) For the second one, "presales" was unique enough. It finds "contactheader" in the lang file, which is found in "contact.tpl". A little logic and detective work is all that's needed. 0 Quote Link to comment Share on other sites More sharing options...
mlew2 Posted March 25, 2013 Share Posted March 25, 2013 Thanks mlew2, I know it would be a simple template edit. Just a matter of finding out which template files need editing. Yeah sorry got tied up most of the day and still haven't had a chance to find it sorry 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted March 25, 2013 Share Posted March 25, 2013 (edited) lang > each language file templates > templatename > supportticketsubmit-stepone.tpl includes > hooks > create a new hook Documentation > http://docs.whmcs.com/Hooks You either use the first two, or the last three, it depends how confident you are with php coding, the first two is the easiest For the languages files. $_LANG['anyunusedvarname'] = "your chosen message txt"; For the tpl file: <div class="aclassname"> {$LANG.anyunusedvarname} <div> </div> </div> for the css file .aclassname {width: 90%;margin: 10px auto;} .aclassname div {background-color: red; color: black;height: 0.85em; width:100%;text-align:center;} you will want a little css to style the div but thats the basics i just knocked this up tight here in the reply box Hey admin can i have some of that nice formatting please um err.. i got a little carried away..next! Edited March 25, 2013 by CDJ Hosting 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.