Jezza95 Posted June 14, 2011 Share Posted June 14, 2011 Hi guys, Yes, this may seem a very petty question. Although, there is nothing more I like than being able to personalize settings and templates to suit my standards. Before I upgraded my WHMCS from an earlier version, some how I managed to change the title of the admin login page. I can't remember how to do it and I'm just wondering if any one could point me in to the right direction of doing this? I have tried opening up the "login.php" file under the "admin" folder and adding in some standard HTML although, when re-uploaded to the server it returns an error on the page. So I've removed the HTML code from the page and now it's functioning as normal again. So I'm just wondering how to get my head around it... Many Thanks, Josh. 0 Quote Link to comment Share on other sites More sharing options...
datawebcorp Posted June 14, 2011 Share Posted June 14, 2011 I would guess one of the templates (.tpl) under the /admin/templates folder !? 0 Quote Link to comment Share on other sites More sharing options...
Jezza95 Posted June 15, 2011 Author Share Posted June 15, 2011 I would guess one of the templates (.tpl) under the /admin/templates folder !? Hi mate, Still no luck after searching through the /admin/templates folder. I reviewed the "login.php" under the "admin" folder but most of that file is full of encrypted context. Any ideas how I could add some code in to this file without it corrupting the file? Many Thanks, Josh. 0 Quote Link to comment Share on other sites More sharing options...
microbolt Posted June 15, 2011 Share Posted June 15, 2011 Hi mate, Still no luck after searching through the /admin/templates folder. I reviewed the "login.php" under the "admin" folder but most of that file is full of encrypted context. Any ideas how I could add some code in to this file without it corrupting the file? Many Thanks, Josh. Look under "admin/template/<current_template_your_using>/header.tpl" Then change inside the file <title>WHMCS - {$pagetitle}</title> to whatever you want it to be. Or better yet make a copy of the template to a new folder and make the changes there then choose the new admin theme in WHMCS (Home -> My Account) to the new directory you created and your changes will survive an upgrade. 0 Quote Link to comment Share on other sites More sharing options...
Jezza95 Posted June 15, 2011 Author Share Posted June 15, 2011 Look under "admin/template/<current_template_your_using>/header.tpl" Then change inside the file <title>WHMCS - {$pagetitle}</title> to whatever you want it to be. Or better yet make a copy of the template to a new folder and make the changes there then choose the new admin theme in WHMCS (Home -> My Account) to the new directory you created and your changes will survive an upgrade. Hello, Thanks for your advise. The <title> of the header file is changing the title for after you have logged in to the billing system. I'm referring to the "Admin Login" screen itself. The default title is "WHMCS Complete Billing & Support System". (On the /admin/login.php) page. I've tried opening up the "login.php" but I can't add anything in there without the login.php file page becoming corrupted. Any ideas? Thanks again. 0 Quote Link to comment Share on other sites More sharing options...
microbolt Posted June 15, 2011 Share Posted June 15, 2011 Hello, Thanks for your advise. The <title> of the header file is changing the title for after you have logged in to the billing system. I'm referring to the "Admin Login" screen itself. The default title is "WHMCS Complete Billing & Support System". (On the /admin/login.php) page. I've tried opening up the "login.php" but I can't add anything in there without the login.php file page becoming corrupted. Any ideas? Thanks again. Didn't even realize when I posted it that it wasn't templated. Bit of a hack but I got it working. 1. Rename login.php to login2.php 2. Create new login.php with the following: <?php echo("<html><head><title>Your new title here</title>"); require("login2.php") ?> You might want to do the same to logout.php as well as it looks like its hardcoded too. 0 Quote Link to comment Share on other sites More sharing options...
Jezza95 Posted June 15, 2011 Author Share Posted June 15, 2011 Didn't even realize when I posted it that it wasn't templated. Bit of a hack but I got it working. 1. Rename login.php to login2.php 2. Create new login.php with the following: <?php echo("<html><head><title>Your new title here</title>"); require("login2.php") ?> You might want to do the same to logout.php as well as it looks like its hardcoded too. Fantastic! That's done the trick! Thanks a lot for the help. I know it's only a small thing I wanted, but I think small things can make a big difference some times when it comes to personalization of scripts Thanks again buddy. Josh. 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.