Jump to content

Recommended Posts

  • Moderators
Posted

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.

  • Like 1
Posted

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.

  • Moderators
Posted

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. ;)

Posted

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?

Posted

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?

Posted

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.

  • Members
Posted

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

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...