Enhancement: im/export templates (Templatewizard)

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

hi sustia!
First an error in the wizard (I think for the webserver permission)
So I have copied and modified manually the files.
some webhosters do not allow all necessary php-commands to install the files, so you have to do it manually....

Anyway the template section it's little bit different from yours screenshots:
Your screenshot is ok....:D

But look at the pepes starttemplatepack as an example for a proper template set. You will need the following files :screenshot.jpg, readme.htm and templatevendor.php.
At last I've saved a template, change the name of the same and try to import and this is the result:
you can't fool the templatewizard if you simply rename the exported template-file. if you want a copy of template create a copy in the backend (with a different name) and export this new template.

And last I'm not able to see the template switcher in the frontend
install instructions:
extract the templateswitcher.php file to the root directory of your phpwcms installation

usage instructions:
simply create an contentpart text and place the following php code inside:

Code: Select all

[PHP]
$tw_form_css = '';
$tw_select_css = 'style="font-size:10px;"';
$tw_button_css = 'style="font-size:10px;"';

include "templateswitcher.php";
[/PHP]
Last edited by erich_k4 on Sun 9. Apr 2006, 23:31, edited 1 time in total.
Erich
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Thanks a lot erich, I will try to do what you suggest me :D
Campeones del mundo!
Vegetables!
MENTOR
Posts: 3
Joined: Wed 5. Apr 2006, 16:02
Contact:

Post by MENTOR »

MENTOR wrote:@ erich_k4

A nice and neat addon for phpWCMS. :!:

@ll

We require alpha testers for some upcomming templates from Open.Ones in the next week.

We only need totally free and independent people and not involved with other free or paid template projects. But fit with phpWCMS. :)

Our Templates would be under GPL and the GFX free to use under a own licence.

Thanx in advance for your support.


Please contact us in our IRC channel.


irc.insiderZ.de Port: 6667 channel: #oodev

People without any irc client, please enable java for your webbrowser and go:

http://www.insiderz.de/webchat/oodev

With a not registered nick you don't enter a password :)

The standart language of the IRC-network is german, to change to another language, put that in:

Syntax: /msg NickServ SET LANGUAGE number

Example for english: /msg NickServ SET LANGUAGE 1

1) English
2) Français (French)
3) Deutsch (German)
4) Português (Portuguese)
5) Español (Spanish)
6) Türkçe (Turkish)

Nick set or change is possible with:

Syntax: /nick <yournickname>

replace <yournickname> with nick you want use

Remember always nicks and passwords be case sensitive.

To register your nick use:

Syntax: /msg NickServ REGISTER password [email]

Keep your password save !!!

A preview of one of our upcomming templates for the template wizard. :)

lazy balls red preview

One more preview of another header.
MENTOR @ OPEN.ONES GROUP
tix
Posts: 1
Joined: Mon 15. May 2006, 07:21
Contact:

Post by tix »

Greek:

Code: Select all

//---------------------------------------------
//
// TEMPLATESETS IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_tmpl_em_templateinstalled']            = ' Επιτυχής εισαγωγή template!';
$BL['be_admin_tmpl_em_otherversion']                 = '<p>Αυτό το template έχει εξαχθεί  με διαφορετική έκδοση τουphpwcms!</p>
                                                        Μπορεί να υπάρχουν προβλ΄΄ηματα ασυμβατότητας<br>
                                                        <p>Έκδοση του phpwcms σας:<b>%s</b><br>
                                                     Έκδοση εισηγμένου αρχείου:<b>%s</b></p>';
$BL['be_admin_tmpl_em_backlinktext']                 = 'Πίσω στο τμήμα template';
$BL['be_admin_tmpl_em_applyconfirm']                 = 'θέλετε να εφαρμόσετε το Template [ "+%s+" ] σε όλο το site;\n\n Αν χρησιμοποιείτε άλλο template στο site  \nwill θα παρακαμθούν ολες οι ρυθμίσεις των άρθρων σας!';
$BL['be_admin_tmpl_em_tmplinfo']                     = 'Πληροφορίες template ';
$BL['be_admin_tmpl_em_applytmpl']                    = 'εφαργογή template';
$BL['be_admin_tmpl_em_install']                      = 'εγκατάσταση απεγκτάσταση template set';
$BL['be_admin_tmpl_em_readme']                       = 'Readme';
$BL['be_admin_tmpl_em_password']                     = ' κωδικόςtemplate ';
$BL['be_admin_tmpl_em_applytmplafter']               = 'Εφαρμογή template μετά απο την εγκτάσταση';
$BL['be_admin_tmpl_em_tmplerror']                    = 'Πρόβλημα Template';
$BL['be_admin_tmpl_em_tmplerrortxt']                 = ' Το Templatefile  λείπει!';
$BL['be_admin_tmpl_em_uninstallcpt']                 = 'Απεγκατάσταση template';
$BL['be_admin_tmpl_em_impoptions']                   = 'επιλογές εισαγωγής';
$BL['be_admin_tmpl_em_availabletmpls']               = 'Διαθέσιμα templatesets';
$BL['be_admin_tmpl_em_singletmplimport']             = 'εισαγωγή ενός template';
$BL['be_admin_tmpl_em_installtmpl']                  = 'Εγκατάσταση template';
$BL['be_admin_tmpl_em_tmplunistalled']               = 'Το template <b>%s</b> και το σχετικό  pagelayout απεγκαταστάθηκαν επιτυχώς!';
$BL['be_admin_tmpl_em_tmplnameinuse']                = 'Το όνομα του template χρησιμοποιείται ήδη παρακαλώ δοκιμάστε κάποιο άλλο!';
$BL['be_admin_tmpl_em_singletmplfile']               = ' Αρχείο template για εισαγωγή';
$BL['be_admin_tmpl_em_exportcpt']                    = 'Παρακαλώ επιλέξτε τον τρόπο εξαγωγής:';
$BL['be_admin_tmpl_em_exporttmplonly']               = 'Μόνο το template';
$BL['be_admin_tmpl_em_exporttmplset']                = 'template,σχετιζόμενο  page layout και  css file';
$BL['be_admin_tmpl_em_exporttmplheader']             = 'Εξαγωγή template';
$BL['be_admin_tmpl_em_tmpltoexpot']                  = 'template γοα εξαγωγή :';
$BL['be_admin_tmpl_em_tmplpassword']                 = '<b>Κωδικός template </b><p>Note:<br>αφήστε το πεδίο κενό για ένα ανασφαλές template αλλιώς συμπληρώστε το για ένα προστατευμένο!';
$BL['be_admin_tmpl_em_exportbtncpt']                 = 'Εξαγωγή template';
$BL['be_admin_tmpl_em_exportsucces']                 = 'Επιτυχής εξαγωγή template!';
$BL['be_admin_tmpl_em_exportfilesize']               = 'Μέγεθος:';
$BL['be_admin_tmpl_em_exportdownloadlnk']            = 'Κατέβασε αό εδώ';
$BL['be_admin_tmpl_em_wrongpassword']                = 'Λάθος κωδικός <b>%s</b>η λανθασμένα δεδομένα για το template!';
//---------------------------------------------
//
// PAGELAYOUTS COPY / IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_page_title_copy']                      = 'frontend setup: αντέγραψε το  page layout';
$BL['be_admin_page_em_layoutnameinuse']              = ' Το όνομα του pagelayout  χρησιμοποιείται ήδη παρακλαώ επιλέξτε κάποιο άλλο!';
$BL['be_admin_page_em_install']                      = 'Εισαγωγή page layout';
$BL['be_admin_page_em_importcpt']                    = 'frontend setup: Εισα γωγή page layout';
$BL['be_admin_page_em_layouttoimport']               = 'Αρχέιο page layout για εισαγωγή';
$BL['be_admin_page_em_exportsuccess']                = 'Εξαγωγή page layout επιτυχής!';
$BL['be_admin_page_em_backlinktext']                 = 'Πίσω στο τμήμα του page layout';

Tried to contact you from irc but my range was g-lined :S
in ARIS we believe
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

@tix
thank you!

i will add it in the next version..

@all:
some news on the templatewizard:

as OG said the template wizard will not be integrated into the core release
(because its to complicated and there will be some changes in the template system.....!?)

anyway, i will continue to add new features and/or ideas to the templatewizard.

So if you have an idea or request what should/could be implemented, let me know! :D
Erich
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

erich_k4 wrote:...anyway, i will continue to add new features and/or ideas to the templatewizard.

So if you have an idea or request what should/could be implemented, let me know! :D
Hi Erich,
thanks for your decision, to go on with your great MOD! One of the VERY BEST..... i'm shure :lol:

Would be great, if you could "include" OGs addOn:
http://www.phpwcms.de/forum/viewtopic.php?t=11206
to your script-set.

thanks
feelX
Posts: 76
Joined: Wed 25. Feb 2004, 03:13
Location: 127.0.0.1
Contact:

Post by feelX »

erich_k4 wrote: @all:
some news on the templatewizard:

as OG said the template wizard will not be integrated into the core release
(because its to complicated and there will be some changes in the template system.....!?)

anyway, i will continue to add new features and/or ideas to the templatewizard.

So if you have an idea or request what should/could be implemented, let me know! :D
like mentor posted. i've something nearly finished to hold my given word, but i think it make no sence to do templates for 1.2.6 ... what is with support of 1.2.7 erich ? :)

and to stop any rumours, i'm not back! i'm only here to clear up some details to hold my given word.
felix - proud member of los locos

"Never argue with an idiot. They drag you down to their level, then beat you with experience."
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

what is with support of 1.2.7 erich ? :)

after a first look at the 1.2.7 pre there are no significant changes to the templates and pagelayout sections compared to the 1.2.6

i found some changes in index.php so if you install the templatewizard in the 1.2.7 pre the original index.php will be changed to the one provided with the templatewizard -> this might break something in the 1.2.7 pre

but

a testinstall of the templatewizard on my local system works with no problems.

update for 1.2.7 (not pre) will be available after 1.2.7 release.....
Erich
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Great, Erich, you are my man :lol:

If OG would have had a real look after your MOD... he would have integreated it.... i'm shure!!! But i think, he hasn't :twisted:

Your templatewizard is one of the best MODs which helps to spare much time, if you jugle whith several different layouts.

I couldn't live whithout it.
No other similar way, to show a custumer, how different his site looks in different designs.....
Only one little MOUSEKLICK and the "new" site is running...
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

pepe wrote:Great, Erich, you are my man :lol:

If OG would have had a real look after your MOD... he would have integreated it.... i'm shure!!! But i think, he hasn't :twisted:

Your templatewizard is one of the best MODs which helps to spare much time, if you jugle whith several different layouts.

I couldn't live whithout it.
No other similar way, to show a custumer, how different his site looks in different designs.....
Only one little MOUSEKLICK and the "new" site is running...
Agree 100% with pepe, you are OUR man ;)
Thx again erich!
Cheers
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

:idea:

template wizard update for use with phpwcms 1.2.8

What's new:

* now compatible with phpwcms 1.2.8
* some minor layoutchanges
Erich
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

erich_k4 wrote::idea:

template wizard update for use with phpwcms 1.2.8

What's new:

* now compatible with phpwcms 1.2.8
* some minor layoutchanges
Zzzzzuper, great things take time, nice work Erich.
Cheers
feelX
Posts: 76
Joined: Wed 25. Feb 2004, 03:13
Location: 127.0.0.1
Contact:

Post by feelX »

erich_k4 wrote::idea:

template wizard update for use with phpwcms 1.2.8

What's new:

* now compatible with phpwcms 1.2.8
* some minor layoutchanges
thx, i test it on the next weekend ...
felix - proud member of los locos

"Never argue with an idiot. They drag you down to their level, then beat you with experience."
error_404
Posts: 8
Joined: Mon 9. Oct 2006, 20:04

Post by error_404 »

@ erich_k4
Excuse me I appologize for the inconvience!
So I post theese here and still wait for solution if it's possible.
If it's not the place so tell me where is the right place and sorry again for the disturbance!
Hi cyrano
I made Step-By-Step, but some errors occured!

I go to:
http://www.128.weitzelmedia.de/index.php?install_tmpl7
and download the template!

After I go to:
http://www.kmedv.at/wcms/index.php?tw_download
and download and follow the instructions!

http://www.domain.com/setup_templatewizard/index.php has failed

But the setup wizard give it to me an error on CHOMD-ing theese kind of folders:

../include
../include/inc_tmpl
../img
../img/symbole

I CHMOD it to 777 via an FTP client but the same error occurs!

The installer give it to me theese too:

new admin.templates.tmpl.php copied
new admin.pagelayout.tmpl.php copied
new lock.gif copied
new lock_overlay.gif copied
new index.html copied

and theese:
could'nt create backup of ../include/inc_lang/backend/en/lang.inc.php
System Message: Permission denied

english language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/de/lang.inc.php
System Message: Permission denied

german language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/fr/lang.inc.php
System Message: Permission denied

french language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/es/lang.inc.php
System Message: Permission denied

spanish language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/nl/lang.inc.php
System Message: Permission denied

dutch language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/it/lang.inc.php
System Message: Permission denied

italian language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/ro/lang.inc.php
System Message: Permission denied

romanian language file not updated
System Message: failed to open stream: No such file or directory

could'nt create backup of ../include/inc_lang/backend/da/lang.inc.php
System Message: Permission denied

danish language file not updated
System Message: failed to open stream: No such file or directory
Where I make an mistake???
Thank you in advance!

----------------------EDIT--------------------
After manually CHMOD-ing ../include/inc_lang/backend/*.*
[all folders with 777 and all files lang.inc.php in folder to 777]

I get theese error and the CHMOD of the following folders is still 777
chmod failed on folder ../include
System Message: Operation not permitted

chmod failed on folder ../include/inc_tmpl
System Message: Operation not permitted

chmod failed on folder ../img
System Message: Operation not permitted

chmod failed on folder ../img/symbole
System Message: Operation not permitted
Any sugesstions?!?!?
SOLVED -> READ MANUAL INSTALL GUIDE
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

preview of the new templatewizard

Post by erich_k4 »

hi all!

here is a first look at the upcoming version of the templatewizard.

Image

with these settings you will get this html source

Code: Select all

<!--
	phpwcms | free open source content management system
	created by Oliver Georgi (oliver at phpwcms dot de) and licensed under GNU/GPL.
	phpwcms is copyright 2003-2006 of Oliver Georgi. Extensions are copyright of\
	their respective owners. Visit project page for details: http://www.phpwcms.org/
//-->
<title>layout_v7 by flip-flop | horizontal teaser order | horizontal teaser order</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="content-style-type" content="text/css" />
  <script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
  <style type="text/css">
  /* <![CDATA[ */
    @import url("templates/layout_07/frontend07_2.css");
    @import url("templates/layout_07/layout07_2.css");
    @import url("templates/layout_07/nlu_hcss07_2.css");
    @import url("templates/layout_07/nlu_navi07_2.css");
  /* ]]> */
  </style>

- now it will be possible to edit all css files which are found
in the phpwcms_template\inc_css folder and in the template folder
- and it will be much easier to choose the right css files for the template (no css entries in the "html head" section for custom templates necessary anymore)
Last edited by erich_k4 on Tue 7. Nov 2006, 10:36, edited 1 time in total.
Erich
Post Reply