Page 1 of 1

Page Content Limit

Posted: Wed Feb 28, 2007 6:00 pm
by microgroove
I'm running version 1.0.2 "Maui" with the FCK Editor

I am unable to add any more content past a certain point on this page:

http://howtorentinnyc.com/index.php?pag ... s-answered

The preview appears fine, but when applied, the content disappears.

Any ideas?

Thank you...

Re: Page Content Limit

Posted: Wed Feb 28, 2007 6:36 pm
by cyberman
microgroove wrote: The preview appears fine, but when applied, the content disappears.
Previewing means not saving  :). The answer is simple - database field is full filled.

Please make a look a you database with phpmyadmin or similar tool, table content_props, field content. Field type is TEXT. This means you can save 64 kB inside this field.

If you want more, you can set it to MEDIUMTEXT (means max. 16 MB field size) or LONGTEXT (means max. 4 GB field size).

Don't forget to create a database backup before !

Re: Page Content Limit

Posted: Wed Feb 28, 2007 10:11 pm
by microgroove
Yeah, you nailed it, thank you so much... Works great now.... and now I have another question about something unrelated, so I'll go ahead and post a new topic... Thanks again..

Re: Page Content Limit

Posted: Wed Feb 28, 2007 10:38 pm
by kermit
you have a lot of wasted bytes in the underlying html code... a lot. unnecessary 'old-school' font tags, etc.. that are duplicated, triplicated, quadruplicated... you get the idea.... 64k of code (in just the 'content' area, at the time i grabbed a copy) for 24k of actual text.... example:

Code: Select all

<a name="why-rent-coop"></a><font color="#900000"><strong>17. So, Why rent in a co-op?</strong></font><br />
<br />
</u></strong></u></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></strong><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#900000"><font color="#000000">
remove all inline styles and html formatting tags. move that all to css. wrap the page's content around a div.. example:


[ page content here ]


to make it easier to style without cluttering up the code with a bazillion class or id declarations.

then, in your css, add the styles for this new div.... example:

#qa h2 {color:#800;margin:0 0 1em 0;} /* style the page heading */
#qa h3 {color:#800;margin:1.5em 0 .5em 0;text-align:center;} /* style the questions */
#qa ol {font-weight:bold;} /* style the list of questions */
#qa ol li {margin-bottom:1em;} /* style the list of questions */
#qa p {color:#000;margin:0 0 1em 0;line-height:125%;} /* style the paragraphs */
p.rtn {text-align:center;font-weight:bold;} /* style 'return to questions' (optional) */

etc...

the cleaned up code on the page (the page's content block) would look something like this:


Page Heading
Intro paragraph.
[ your submission form ]
Another intro paragraph.

{anchor anchor='question-one' text='This is Question One?'}
{anchor anchor='question-two' text='This is Question Two?'}

This is Question One?
This is the answer to question one.
{anchor anchor='qa' text='Back to questions'}
This is Question Two?
This is the answer to question two.
{anchor anchor='qa' text='Back to questions'}


besides being  more efficient and easier to read, search engines will love the cleaner code, too.

at the rate the html was bloated, you should be able to get about 3x the content within the same size limit.  anything more than this and you should probably look at a faq/q&a type script or module to manage the content for this section of your site....