WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: seanie_morris on April 06, 2016, 07:21:32 PM

Title: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: seanie_morris on April 06, 2016, 07:21:32 PM
I came across this site and its section on (free) templates that can be used with WebsiteBaker and Lepton:

http://cms-lab.com/lab/en/design/free-templates.php?lang=EN

I found a few templates that I like, but when I try to install them in WB, I get the whole "Invalid WebsiteBaker installation file. Please check the *.zip format." error message.

Now, I need to find out what makes a zip file WB compatible! Can someone advise me please?


Regards,

Seanie.
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: Gast on April 06, 2016, 07:34:55 PM
please give me a example for one of your favorite templates
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: Gast on April 06, 2016, 07:37:58 PM
is it possible, that you use the module-install instead of the template install?   :wink:

(https://i.gyazo.com/4d801bf8fdc0157e049cbdc0ea62d25a.png)
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: Gast on April 06, 2016, 07:53:34 PM
in the most cases, its the include of the class.secure.php, used in Lepton - that's not needed in WB and can produced errors
you can also delete the file precheck.php in some of the zips.
read the module info on the detailpage of your download, example here -> http://cms-lab.com/lab/en/design/free-templates/stylish-photography.php

(https://i.gyazo.com/179ec85e7493a9e22fa5236ea170e624.png)
some of the templates needs other modules, like lib_twig etc

its recommened, to add a empty file, called "php_error.log" in the temp-folder and read it from time to time, to have more informations

important: if you have an error in the install-process, read at first this error-log, then delete the installed ZIP in your temp-folder or the next install use this file
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: seanie_morris on April 06, 2016, 08:39:41 PM
Quote from: jacobi22
is it possible, that you use the module-install instead of the template install?   :wink:
You're a funny man, jacobi!!  :-D


The desired template is called 'spacious':
http://themegrill.com/themes/spacious/

in the most cases, its the include of the class.secure.php, used in Lepton - that's not needed in WB and can produced errors
you can also delete the file precheck.php in some of the zips.
Neither are present


(https://i.gyazo.com/179ec85e7493a9e22fa5236ea170e624.png)
some of the templates needs other modules, like lib_twig etc
The only requirement mentioned on that template page is "WordPress 4.0 and above" but the description does include WB and Lepton.

There is the lack of an info.php file, I am going to make one and re-zip the files, see if that helps.

Seanie.
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: seanie_morris on April 06, 2016, 09:56:45 PM
Code: [Select]
[quote author=seanie_morris]
There is the lack of an info.php file, I am going to make one and re-zip the files, see if that helps.[/quote]

While adding the info.php file does get the template installed, the frontend view is all blank. I have the following as the code:

[c[de]<?php

$template_directory 
'spacious137';
$template_name 'spacious';
$template_version '1.3.7';
$template_platform '2.7.x';
$template_author 'Seanie_Morris';
$template_license 'Creative Commons Attribution Licence 3.0 / http://creativecommons.org/licenses/by/3.0/deed.de';
$template_description 'See Licence.txt';

$menu[1] = 'Main';
$menu[2] = 'none';

$block[1] = 'Main';
$block[2] = 'none';
?>

while also trying variations on 'Main', 'Content', and even leaving out the $menu and $block parameters, but no effect. (Each time I change the info.php file, I create a new template zip file, uninstall the old one in the admin backend, re-install the new zip file and change accordingly under Settings)


Seanie.
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: Ruud on April 06, 2016, 11:12:59 PM
The desired template is called 'spacious':
http://themegrill.com/themes/spacious/
This website does not provide WB templates.

The download you are looking for is here (http://cms-lab.com/lab/en/design/free-templates/spacious.php) (half way down the page the "Download" button.
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: seanie_morris on April 07, 2016, 11:18:34 AM
The desired template is called 'spacious':
http://themegrill.com/themes/spacious/
This website does not provide WB templates.

The download you are looking for is here (http://cms-lab.com/lab/en/design/free-templates/spacious.php) (half way down the page the "Download" button.

Thanks for the reply Ruud. The site does say that its templates can be used for both WB and lepton (I've never used Lepton before). The link you're referring to does show requirements that the readme file in the other download link does not show (from the Spacious demo page menu). However, the modules in question do seem to be specific to Lepton, I have just found out.

It seems, unfortunately for my curiosity, that this template can't be used in WB (through no fault of WB). :(

Seanie.
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: Gast on April 07, 2016, 01:47:01 PM
i try the template (link from Ruud) yesterday. its a TWIG-template and use in Lepton a special module for the TWIG-Engine, called lib_twig
its of couse possible to change the template, that its work in WB, and also, that the template use the wb-own-twig-routine, but its a lot of work and needs also a lot of experience to use the TWIG there. But i'm not sure about the license for this template

this template and also the wordpress-version using different template-files in subfolders to show some functions like header, footer etc. its possible, to put all the files together in one index.php, but TWIG give you more place
Example: here a simple TWIG-Code for the seachbox
Code: [Select]
{{ search }}its a placeholder for the complete search-form with a input-field, submit-button etc, insert in a droplet

simple methode is a copy from the source code of the demo-page, use it a your index.php together with your info.php in a existed folder of "templates" (named: like your used name in $template_directory)
use the folder structure from the original ZIP also in your copy and set the links to CSS- or JS-files with the normale WB-methodes like
Quote
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/template1.css" media="screen,projection" />

then remove the content from the demo-page in your html-code step by step and set only a small description for you. this template use 6 content blocks, not sure, that you need it also. if yes, you need maybe a php-switch and a buffer for your content. look into other templates for solutions for that.

if i have to port a normale html-project-design (like our templates) to a new wb-project, i replace the the original demo-content with my own content in a simple html-file first, without php-funktions etc, so that i see, how it looks, when i'm finish. maybe the nice effects of this template are gone, if you have to change any structure

all together... its possible, but a job for long winter nights ;-)
Title: Re: (cms-lab.com) Do Lepton templates still work with WebsiteBaker?
Post by: seanie_morris on April 08, 2016, 10:52:17 AM
That is one point worth mentioning: I tried to install the extra modules, then WB was not able to install any other templates or modules after lib_twig is attempted. I found this out yesterday while experimenting. I had to clean out the /temp folder to continue working on the website. When I tried to install the modules relating to the Spacious template, I got neither an error or successful message after it tried to install them. Everything was stored and partially unzipped in the /temp folder. Once I deleted everything in there, the backend returned to normal.

Seanie.