Page 1 of 1
template problem messed up
Posted: Thu Sep 28, 2006 10:06 am
by mikeatgenero
When I make my own template and I press on submit the code i've submitted is messed up in the database. When I go again to my just submitted template and open it I will see the normal html code i've submitted but at the middle the code just stops and then it start over again til the end. I've got no idea what seems to be the problem.
example input:
tekst
txt
bla bla
example output:
tekst
txt
bl
tekst
txt
bla bla
Re: template problem messed up
Posted: Thu Sep 28, 2006 12:18 pm
by cyberman
Re: template problem messed up
Posted: Fri Sep 29, 2006 3:01 pm
by mikeatgenero
Some extra info
PHP Version 4.3.11
Linux
Apache 2.0 Filter
Mysql 3.23.58
CMS Made Simple 0.13
input "
Untitled Document
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}
{title}
{content}
© Arte Decor Design by Genero.nl
" and my output "
Untitled Document
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}
{title}
{content}
{content}
© Arte Decor Design by Genero.nl
"
I think the problem must be something to do with charset?
Re: template problem messed up
Posted: Mon Oct 02, 2006 9:30 am
by cyberman
mikeatgenero wrote:
Untitled Document
Please look at default templates how a CMSms template (expecially the head) should looks like - copy & paste is a very nice function

. And "Untitled Document" is IMHO a very ugly page name ...
Another thing is default charset of CMSms is utf-8. It can be configured in config.php. But if you use utf-8 in admin panel and iso-8859-1 in frontend there are probably problems with output cause input will be written in utf-8 and you try to output in iso-8859-1 ...
Re: template problem messed up
Posted: Thu Oct 05, 2006 9:00 am
by mikeatgenero
I know the head isn't ready. But this was only a try-out template. It realy doesn't matter what code I insert, its always messed up. I've noticed that the same problem is happening in phpMyAdmin when I try to insert the template directly into the database. But why? It looks like some kind of database error.
Re: template problem messed up
Posted: Thu Oct 05, 2006 12:36 pm
by cyberman
Hmm, can you post a link?
Re: template problem messed up
Posted: Thu Oct 05, 2006 7:41 pm
by Dr.CSS
Templates require that you have only one... it looks like you have the code for 2 templates pasted here....
If you go to templates and click make new template you get a rough draft of a template put your info between ... ...
{title}
{metadata}
{stylesheet}
{content}
{title}
{metadata}
{stylesheet}
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}
{title}
{content}
© Arte Decor Design by Genero.nl
{title}
{metadata}
{stylesheet}
{cms_module module='menumanager' template='cssmenu-accessible.tpl'}
{title}
{content}
{content}
© Arte Decor Design by Genero.nl
Re: template problem messed up
Posted: Wed Oct 11, 2006 8:03 am
by mikeatgenero
The above code is indeed a double template because I've submitted the input and the output. The problem must have had something to do with the server because after complaining at the hostingprovider everything started to work normal. For people with the same problem I think the problem is caused by security setting on the server, super globals, or UTF-8.
Moderator may close this treat.