Issue when trying to make custom template [solved..?]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
obolus

Issue when trying to make custom template [solved..?]

Post by obolus »

Server setup: PHP5.2.2, MySQL 5.0.16
CMSMS Ver: 1.2

Problem: This happens in 2 places- when making a new template and when editing a template in the template admin area. Basically, I add in all the code for my template, triple-check I don't have anything that won't be parsed by Smarty (code not contained within literal or other specified tags), and I click submit. Seems to work fine. When I go back to the template admin to edit/review my template coding, 80% of is gone. Like it was never even entered. Wtf? While still in the edit screen, I re-add the code that has somehow gone missing. I click 'Apply' and I get an error that says: "Could not Save: 503 -- Service Temporarily Unavailable". So, and still in the edit screen, I click the Submit button instead. Back in the Template admin section, I go to check and see if my custom template is fully intact, and I'm again greeted with a page missing almost all of the coding.

To better explain, let's say I tried to input the following code while adding a new template:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>

<title>{sitename} - {title}</title>

{metadata}
{stylesheet}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

</head>

</__body>
<a name="top"></a>
<table><tr><td>
blahblahblahblah
</td></tr></table>
<br /><br />
<table><tr><td>
blahblahblahblah
</td></tr></table>
<br /><br />
<table><tr><td>
blahblahblahblah
</td></tr></table>
<br /><br />
<table><tr><td>
blahblahblahblah
</td></tr></table>
<br /><br />
<table><tr><td>
blahblahblahblah
</td></tr></table>
<br /><br />
<a href="#top">top of page</a>
<__body>
</__html>
Last edited by obolus on Sat Oct 20, 2007 6:35 pm, edited 1 time in total.
obolus

Re: Issue when trying to make custom template

Post by obolus »

apparently, the same thing happens on these forums. =(

Here's the rest of my post....
When I go back to check my coding (edit template area), I would find this instead:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>

<title>{sitename} - {title}</title>

{metadata}
{stylesheet}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

</head>

</__body>
<a name="top"></a>
<table><tr><td>
blahblahblahblah
</td></tr></table>

As if I hit a character limit or something. I get no errors when I submit the edited or new template, only when I click the "Apply" button in the edit screen. There are some conditional statements in my code that is for IE users, that do not refer to any javascript or anything. I tried both using the {literal} tags around the statements and not using them, and I get the same result.
obolus

Re: Issue when trying to make custom template [solved..?]

Post by obolus »

Hmph! Well, there was an area where the code kept getting cutoff. I checked it for any bad whitespaces/blank areas that didn't transfer over correctly when I was copying and pasting some bits of code. I guess I must have missed a spot, because I just deleted the blank line I put in after a div tag to separate the code a little bit and now the problem is gone. Why was it just the blank line after that tag in particular causing the problem? The tag was a , and I have blank line before/after other pieces of code below and above this one. *shrug*
Locked

Return to “Layout and Design (CSS & HTML)”