solved skin cloning issue redux

blindmime
@blindmime
11 years ago
772 posts
I was having the issue with cloning skins noted in this solved thread: https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/6193/news-css-and-template-copy-issues

After the most recent update, I can clone, but the cloned skin doesn't appear in my skins. I cannot select it. However, it does appear in the list of skins I can clone. I've integrity checked, cache updated and turned myself around but still no go.
updated by @blindmime: 03/29/14 04:40:54PM
brian
@brian
11 years ago
10,149 posts
I just tested here and I'm not seeing any issues. Can you FTP in to the site and check the permissions on the clone files and directories?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I'm showing the cloned skin directories as 755 and template files as 644. Showing the same in the original skin.
blindmime
@blindmime
11 years ago
772 posts
I'm seeing this behavior on multiple sites.
douglas
@douglas
11 years ago
2,806 posts
Which version are you running?

I had an issue where the skin didn't get cloned, but that was fixed and I'm not seeing an issue with it either.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
blindmime
@blindmime
11 years ago
772 posts
As stated in my initial post, I'm running the lastest core version: 5.1.21.

My skins ARE getting cloned. They show up in the dropdown menu and I can select the cloned skin there. It just doesn't show up in the left sidebar list.

It's happening on all 3 of the sites I've tested.
cloneskin.jpg
cloneskin.jpg  •  30KB


updated by @blindmime: 02/19/14 03:28:33AM
brian
@brian
11 years ago
10,149 posts
Unfortunately I am not able to reproduce this on any of my test sites. The way the skins are listed in the left hand menu is simply a matter of a directory listing being made in the "skins" directory, and then the core looks for an "include.php" file in the directory - if it finds one, it believes it is a skin.

Is the include.php file inside the skin directory and is it readable by the web user?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
11 years ago
517 posts
@brian - I see my include.php and its set to 644. Sorry for the thread jack.
blindmime
@blindmime
11 years ago
772 posts
Brian, it appears if the cloned skin is named something like "bbElastic" it's OK. But if I precede "Elastic" with three characters like "bfbElastic" then the include file is messed up. Below I named the cloned skin "bfbElastic" but the include.php is calling it jrbElastic:

/**
 * jrbElastic_meta
 */
function jrbElastic_skin_meta(){
    $_tmp = array(
        'name'        => 'jrbElastic',
        'version'     => '1.0.6',
        'developer'   => 'The Jamroom Network, ©'. strftime('%Y'),
        'description' => 'The Default Jamroom 5 Skin - clean and easy to expand',
        'support'     => 'http://www.jamroom.net/phpBB2'
    );
    return $_tmp;
}

/**
 * jrbElastic_init
 * NOTE: unlike with a module, init() is NOT called on each page load, but is
 * called when the core needs to rebuild CSS or Javascript for the skin
 */
function jrbElastic_skin_init(){
    // Bring in all our CSS files
    jrCore_register_module_feature('jrCore','css','jrbElastic','core_html.css');
    jrCore_register_module_feature('jrCore','css','jrbElastic','core_grid.css');

I think this corresponds with the cloning issue @iLoveHouseMusic was having in the other thread as well. This has not been fixed in 5.1.22.
brian
@brian
11 years ago
10,149 posts
Yep - I've been working with Michael on this and finally have reproduced it on a fresh install on one of my remote test servers - I can't replicate it locally, but should be able to figure out what's going on now and will get it fixed.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,149 posts
Okay this should be fixed now in the latest developer tools (1.1.3) - please update and let me know if that fixes it for you.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
Looks like it's fixed, Brian -- thanks.
brian
@brian
11 years ago
10,149 posts
Glad to hear that - thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags