BryanB Posted July 25, 2009 Share Posted July 25, 2009 I would like to use the product/service status feature in a different way, I just want to change the names of each status so instead of "Active" I would like it to say "complete" ect.. I was able to do it on the clients front end but now I have to remember which is which because it doesnt show in the admin drop down box. I know the admin files are encoded but is there anyway to work around that? If not does anyone know how I can include just a few lines of text on the admin page next to the status box that says something like, Active=Complete, Suspended=In progress? I've seen modifications to the admin pages via javascript in a password generator mod and am wondering if that would be the best way to do this? something like... // Get the status drop down box, if there is one var e = document.getElementsByName("status drop down box"); if (e.length>0) { } I'm looking to change the page on admin/clienthosting.php Any ideas? Thanks 0 Quote Link to comment Share on other sites More sharing options...
lysenshi Posted July 26, 2009 Share Posted July 26, 2009 Well, I checked around and found something may help you: In the admin folder goto your template folder (probably /WEBSITE/whmcs/admin/templates/v4) you will find footer.tpl add the following code: {literal} <script type="text/javascript"> var statusElm=document.calendarfrm.status; alert(statusElm.length); </script> {/literal} check what you can do with that. Hope that was helpful 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted July 26, 2009 Author Share Posted July 26, 2009 Thanks, I'll take a look 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted July 27, 2009 Author Share Posted July 27, 2009 hmm, thats weird.. my admin/templates/v4/footer.tpl looks nothing like that. All I have in my footer file is this: </div> </div> <div class="clear"></div> </div> <div id="footer">Copyright © <a href="http://www.whmcs.com/" target="_blank">WHMCompleteSolution</a>. All Rights Reserved.</div> </body> </html> Well, I checked around and found something may help you:In the admin folder goto your template folder (probably /WEBSITE/whmcs/admin/templates/v4) you will find footer.tpl add the following code: {literal} <script type="text/javascript"> var statusElm=document.calendarfrm.status; alert(statusElm.length); </script> {/literal} check what you can do with that. Hope that was helpful 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted July 27, 2009 Author Share Posted July 27, 2009 Oh, I see what you were saying, add that code to the footer. Now it brings up a pop up box that says 6. Hm, not sure what to do with it though. 0 Quote Link to comment Share on other sites More sharing options...
robotronik Posted July 28, 2009 Share Posted July 28, 2009 Oh, I see what you were saying, add that code to the footer. Now it brings up a pop up box that says 6. Hm, not sure what to do with it though.That would be an array.. You need to do something with the data in the array? 0 Quote Link to comment Share on other sites More sharing options...
lysenshi Posted July 28, 2009 Share Posted July 28, 2009 try loop through the select options and change the text for each option 0 Quote Link to comment Share on other sites More sharing options...
Damainman Posted June 29, 2010 Share Posted June 29, 2010 Have you figured this out? 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted June 29, 2010 Author Share Posted June 29, 2010 no, decided to go a different route. Unfortunately any modifications like this are pretty difficult with WHMCS because core files are encoded. 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.