PaulC55 Posted August 19, 2016 Share Posted August 19, 2016 Hello everyone, We have a custom theme for our company however the "reply button" on the ticket area doesn't seem to work, as in if it's clicked, nothing happens. Let me know what information you need. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 this is usually a .js/jquery conflict... http://forum.whmcs.com/showthread.php?111715-The-Reply-Button-not-working-Also-Support-Ticket-Page-Menu-not-working the solution is often to remove all your custom .js links and then add then one-by-one to find which is causing the clash. 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 I've tried to do that as suggested by whmcs staff via ticket however that didn't work out for some reason 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 when you say a custom theme, do you mean you've customised it yourself... or you've bought a template from a developer? if bought, then the developer should be your first port of call... if your own custom, then I assume everything works fine if you use the default "Six" theme? 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 Got it from a developer but he will charge extra for re-edits Yes, everything works fine when I use the Six theme 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 (edited) Got it from a developer but he will charge extra for re-edits oh great - a developer who sold you a product that doesn't work! Yes, everything works fine when I use the Six theme that's good news - it means your WHMCS installation is basically correct and the issue lies with the theme. if you've already tried disabling the js scripts and got nowhere, then perhaps another alternative, at least in the short-term, is to adjust your viewticket template slightly to make the reply box permanently open... not exactly elegant/pretty, but it should at least return the functionality to the page. if it were the Six template, it would be in viewticket.tpl ~ line 19 and change... <div class="panel panel-info panel-collapsable{if !$postingReply} panel-collapsed{/if} hidden-print"> to... <div class="panel panel-info hidden-print"> your custom template might be slightly different, but I suspect the above line will be there somewhere. although long-term, the cause of the theme clash will probably still need to be looked at... perhaps if/when you upgrade the theme for v7 (if necessary), it might get fixed/updated then. Edited August 19, 2016 by brian! 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 Thanks Brian, this is actually much better lol 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 Hmm, I seem to be having more issues.. this time with the "My Products & Services" section, if a client clicks on one of the products that they buy, then it doesn't let them click on it - same with "My Invoices" page too, the invoices cannot be clicked on Any idea 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 Hmm, I seem to be having more issues.. this time with the "My Products & Services" section, if a client clicks on one of the products that they buy, then it doesn't let them click on it - same with "My Invoices" page too, the invoices cannot be clicked onAny idea that's using the six (or custom)/js/whmcs.js file... let's try the opposite thought process... perhaps it's not a clash, but an omission. in your custom theme, is there a footer.tpl / header.tpl template that contains a link to /js/whmcs.js ?? 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 that's using the six (or custom)/js/whmcs.js file... let's try the opposite thought process... perhaps it's not a clash, but an omission. in your custom theme, is there a footer.tpl / header.tpl template that contains a link to /js/whmcs.js ?? Nope there isn't a link in header/footer.tpl's' that contain that /js/whmcs.js 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 Added: <script src="{$WEB_ROOT}/templates/{$template}/js/whmcs.js"></script> And it worked, thanks again for the amazing help Brain ! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 Nope there isn't a link in header/footer.tpl's' that contain that /js/whmcs.js aahh... that's probably it then... it needs to be there. if you have a footer.tpl in your custom theme, compare it to six/footer.tpl and see if you can add the link to whmcs.js in an appropriate/similar spot. 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 aahh... that's probably it then... it needs to be there. if you have a footer.tpl in your custom theme, compare it to six/footer.tpl and see if you can add the link to whmcs.js in an appropriate/similar spot. Done it and it worked - - - Updated - - - The "reply" button also started working! - amazing how one line of code can make so much difference 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2016 Share Posted August 19, 2016 Done it and it worked - amazing how one line of code can make so much difference it's also amazing how a developer could leave it out of their theme! 0 Quote Link to comment Share on other sites More sharing options...
PaulC55 Posted August 19, 2016 Author Share Posted August 19, 2016 it's also amazing how a developer could leave it out of their theme! Haha true 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.