nimonogi Posted August 23, 2009 Share Posted August 23, 2009 Hello, I would like to rename index.php Portal's Home page to lets say portal.php I want to do this in order to install whmcs in the root directory of my account. Any suggestions? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
striddy Posted August 23, 2009 Share Posted August 23, 2009 Why would you need to do that? It works just fine as is. 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted August 23, 2009 Share Posted August 23, 2009 you can accomplish that by creating a new custom page called portal.php with a portal.tpl file , than place all the code from within the homepage.tpl file into the new portal.php file and change all your navigation links (if you are using the breadcrumbs beware no links will work) and than place your homepage code within the homepage.tpl file that is what we had to do as our site is 100% built within WHMCS only other draw back besides breadcrumbs is ou homepage title is Impact Connections . Support Home no way to change as the index.php file is encrypted hope that helps if not ask and i will try more 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted August 23, 2009 Share Posted August 23, 2009 only other draw back besides breadcrumbs is ou homepage title is Impact Connections . Support Home no way to change as the index.php file is encrypted You could easily change this within the header.tpl file, where it says <title>{$companyname} - {$pagetitle} Something like this would work: <title>{$companyname} - {if $pagetitle eq "Portal Home"}Custom Title{else}{$pagetitle}{/if} That will change the default Portal Home title to Custom Title (worked fine for me, just tested it) 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted August 23, 2009 Author Share Posted August 23, 2009 Thanks a lot for your help. I'm going try this right now 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted August 23, 2009 Share Posted August 23, 2009 yes dedicated but are those not in the php files not the tpl files and the index.php file is encrypted you cant change or modify it without throwing errors i thought 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 23, 2009 Share Posted August 23, 2009 Can't he just rename the the php file without adding code! Should be able to, try it! 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted August 24, 2009 Share Posted August 24, 2009 i just tested your method Baji and the support home page does not load with relations to how i got mine to have my home page as start page both index.php and support.php load the homepage (not support Home) 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted August 24, 2009 Share Posted August 24, 2009 **EDIT** Fixed the issue it does in fact work i had to clear my templates_c Folder and now all good thanks Baji. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 24, 2009 Share Posted August 24, 2009 No Problem! 0 Quote Link to comment Share on other sites More sharing options...
atDev Posted August 29, 2009 Share Posted August 29, 2009 Also consider using .htaccess to define which file should be used on the home page: Example: DirectoryIndex custom_homepage.php You may need to put a .htaccess file in the admin folder like: DirectoryIndex index.php So it does not mess that up. 0 Quote Link to comment Share on other sites More sharing options...
kako Posted October 22, 2021 Share Posted October 22, 2021 Oi, Estou usando o modelo lowendhost free do whmcs. O problema é que ele tem um index.php e quero colocar no mesmo diretorio que o whmcs que também possui um index.php. Alguma sugestão? Tentei fazer com tpl, mas acabei me perdendo. 0 Quote Link to comment Share on other sites More sharing options...
kako Posted October 22, 2021 Share Posted October 22, 2021 Hi, Sorry, for having previously written in Portuguese. I'm using the lowendhost free theme and would like to put it in the same directory as whmcs. I found a problem, they both have the index.php file. Is it possible to rename or create a shortcut to the whmcs index within the lowendhost site? Any help would be welcome. kako 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted October 22, 2021 Share Posted October 22, 2021 @kako the theme shouldn't have any PHP files. The theme consists of .tpl files (and styling and scripts, ofc). If you only have PHP files, it's not a theme for WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
kako Posted October 23, 2021 Share Posted October 23, 2021 On 10/22/2021 at 12:29 PM, DennisHermannsen said: @kako the theme shouldn't have any PHP files. The theme consists of .tpl files (and styling and scripts, ofc). If you only have PHP files, it's not a theme for WHMCS. Hi, This is the theme, is it not for whmcs?? https://marketplace.whmcs.com/product/4656-lowendhost-free-theme 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted October 26, 2021 Share Posted October 26, 2021 In that file, the folder that says "whmcs-template" is what you want to use and pretty much ignore the php-template unless you want to use that for your main site. Contact the theme developer for further support though. 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.