Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

How to convert a old cotonti-skin to a version for >=0.6.5

Documentation (Genoa and older) / English / Skins / How to convert a old cotonti-skin to a version for >=0.6.5

Adapt your skin to cotonti >=0.6.5

#1. What to change if you update a skin from cotonti to cotonti >= 0.6.5?

- Check all <!-- BEGIN: xxxx --> and <!-- END: xxxx -->
Be sure spaces are in the correct places, like above.
Only check it if you got errors about xTemplate
Known error:
polls.tpl: <!-- END: POLL_VIEW_DISABLED--> and should be <!-- END: POLL_VIEW_DISABLED -->

- Copy the /admin dir from sed-light skin and copy to yours.
You only need to modify admin.tpl to fit your skin.

- Delete admin-tpl's from your root skin directory /skins/yourskin/
* admin.tpl

- Copy the /plugins dir from sed-light skin and copy to your skin-dir.
This directory is for all tpl's of your plugins.
Copy plugins-tpl's from your root skin directory /skins/yourskin/ to /skins/yourskin/plugins/
* whosonline.tpl
* news.tpl
* tags.tpl
* adminqv.tpl

- Edit the other tpl's in /skins/yourskin/plugins to fit your skin.
Especially search.tpl

- pm.tpl is now split into 2 tpl's
* pm.tpl
* pm.list.tpl
Copy those 2 tpl's from sed-light and you need to adapt them to fit your skin.

- for 0.6.1 and higher ratings need an update
* ratings.tpl - copy contents from sed-light skin
* your skin CSS - replace ratings styles with new stiles from sed-light.css, that section starts with
/* ============== Ratings CSS ============== */

- page.add.tpl and page.edit.tpl

<td colspan="2" class="valid">
<input type="submit" value="{PHP.skinlang.pageadd.Submit}" />

<td colspan="2" class="valid">
<!-- IF {PHP.usr_can_publish} -->
<input name="rpublish" type="submit" class="submit" value="{PHP.L.Publish}" onclick="this.value='OK';return true" />
<input type="submit" value="{PHP.L.Putinvalidationqueue}" />
<!-- ELSE -->
<input type="submit" value="{PHP.L.Submit}" />
<!-- ENDIF -->
Now you can choose as admin to publish directly. Normal users can only put it in validation queue.

- /skins/yourskin/plugins/whoisonline.tpl
Look for:
PHP.L.plu_therescurrently} {WHOSONlINE_VISITORS} {PHP.L.plu_visitors} {WHOSONlINE_MEMBERS} {PHP.L.plu_members}<br />&nbsp;<br />
and replace it by
If you does not do it, you will get: "Now online 0 Array 1 Array"

Hopefully I covered it all.
Good luck with converting our skin.

1. Trustmaster  23.07.2009 04:35

Thanks: 0

Thank you very much for this HOWTO
2. Trustmaster  23.07.2009 21:27

Thanks: 0

Added a ratings update note for 0.6.1
3. Dayver  30.07.2009 23:48

Thanks: 0

- Delete admin-tpl's from your root skin directory /skins/yourskin/
* adminqv.tpl

adminqv.tpl not for admins .... this is plugin tpl
4. pieter  10.08.2009 04:27

Thanks: 0

Thx Dayver, it is changed.
5. pieter  03.12.2009 05:52

Thanks: 0

Added the changes for whoisonline.tpl. (bottompart)
Changed also changes for 0.0.6 to 0.6.5

Всього: 5, на сторінці: 5

Додавання комментарів доступно лише зареєстрованим користувачам