HighFlyerPL185 Posted March 20, 2014 Report Share Posted March 20, 2014 I am looking to establish another airline from a subdomain with a different design, but using the same backend, without setting up a second installation of phpVMS. Is this possible? If yes, how can I achieve this? Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 20, 2014 Moderators Report Share Posted March 20, 2014 What do you mean the same backend? Do you want to use the same database? Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 20, 2014 Author Report Share Posted March 20, 2014 What do you mean the same backend? Do you want to use the same database? Yes, just change the design and run it on a subdomain, as a new airline. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 20, 2014 Moderators Report Share Posted March 20, 2014 Copy and place your phpvms files to a subdomain and after that open your local.config.php (the new one) and find our your main site url. Just edit this url and everything will work fine. 1 Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 21, 2014 Author Report Share Posted March 21, 2014 Thanks George, works brilliantly! Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 21, 2014 Moderators Report Share Posted March 21, 2014 You're welcome. Quote Link to comment Share on other sites More sharing options...
Strider Posted March 22, 2014 Report Share Posted March 22, 2014 there is one problem with that servetas, it will run off the same settings in the db, so if you change the skin in the subdomain, it will cause problems on the main domain as it will go looking for those skin files and not find them. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 22, 2014 Moderators Report Share Posted March 22, 2014 This problem will happen only if you change the skin's folder name. There is no need to change the skin's folder name. You can just edit the files which are in it. Quote Link to comment Share on other sites More sharing options...
Strider Posted March 22, 2014 Report Share Posted March 22, 2014 you have to let some people know that, as they will do it the normal way and find they are having trouble with one of them. Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 22, 2014 Author Report Share Posted March 22, 2014 Actually, I am having the same issue. I was editing a Javascript file, and had to refresh constantly, and after a certain refresh, the skin broke. You only have to change it in the admin panel, but it will be very frustrating once I put it online, is there any way to fix this? Quote Link to comment Share on other sites More sharing options...
Jimmy_S Posted March 23, 2014 Report Share Posted March 23, 2014 I am wanting to do this also for development work away from my main site as dev.xxxxxx.org. I don't want to change my skin or anything, just work on modules and the gui interface prior to making changes to my main site. This sounds like it will work for me as long as I don't change skins or any database entries? Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 23, 2014 Moderators Report Share Posted March 23, 2014 Of course, i am alreay doing this on my localhost server. Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 23, 2014 Author Report Share Posted March 23, 2014 Can we not set the skin name inside layout.tpl somehow? Or at least manually? Quote Link to comment Share on other sites More sharing options...
Strider Posted March 23, 2014 Report Share Posted March 23, 2014 If you want to test a skin, it is best to have it offline, using xamp or a similar program which creates a virtual server on your pc. You can download a copy of your db, and your phpvms installation, and test it out on that before putting it live. You can't set it manually in the layout.tpl as it would have to be changed everytime you want to change the site design. And that is just tedious. But as servatas said, just use the same folder name for both skins, but have a different layout in the one of them, that means you can have two different layouts and designs with the same db. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted March 23, 2014 Members Report Share Posted March 23, 2014 You can add this in your local.config.php <?php session_start(); if(isset($_GET['template']) && $_GET['template'] != ''){ $_SESSION['template'] = $_GET['template']; define('CURRENT_SKIN',$_GET['template']); } if(isset($_SESSION['template']) && $_SESSION['template'] != '') { define('CURRENT_SKIN',$_SESSION['template']); } ?> and then you can call the template with ?template=TemplateName at the end of the link Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 23, 2014 Author Report Share Posted March 23, 2014 If you want to test a skin, it is best to have it offline, using xamp or a similar program which creates a virtual server on your pc. You can download a copy of your db, and your phpvms installation, and test it out on that before putting it live. You can't set it manually in the layout.tpl as it would have to be changed everytime you want to change the site design. And that is just tedious. But as servatas said, just use the same folder name for both skins, but have a different layout in the one of them, that means you can have two different layouts and designs with the same db. I always edit it offline before putting it online, but yeah, I didn't think of that, guess that's the easiest way out. Thanks! 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.