template problem messed up

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mikeatgenero

template problem messed up

Post 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
mikeatgenero

Re: template problem messed up

Post 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?
cyberman

Re: template problem messed up

Post 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  ;D. 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 ...
mikeatgenero

Re: template problem messed up

Post 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.
cyberman

Re: template problem messed up

Post by cyberman »

Hmm, can you post a link?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: template problem messed up

Post 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


mikeatgenero

Re: template problem messed up

Post 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.
Locked

Return to “CMSMS Core”