CodyTheFreak.net

What's up with that banner?
 
Not bad... Not bad. -- (put your comment here)
 

C7F7 Smarty/XHTML Test

cody.log
 
The second '7' in the title above means that his is the seventh iteration for the backend of my website.
 
This is a test page for that new backend. The new verison has two enhancements, first, it uses the Smarty Templating Engine for rendering pages, which extremely elegant and flexible. Secondly, it conforms with XHTML 1.1 Strict standards regarding HTML, and offloads almost all style information into a style sheet (translation: it will look shitty on old browsers).
 
Not an improvement: tables. This layout still uses tables to align different sections. I tried to remove them, but discovered it is logically impossible to duplicate the exact behavior of my old website without using tables (those little tits on the left side are what make it impossible).
 
Currently attained validations:
 

Valid XHTML
1.1! Valid
CSS!

 
If you include all the little gadgets and gizmos and little bits of code for special things, the whole site (not including the gallery) runs on a bit more than 4100 lines of code. My goal is to cut that in half by using Smarty templates, and have half of the remaining code to be templates. Currently, I've been able to replace about 1100 lines worth of code.
 
Current reduction in code size to generate a simple page like this one:
With templates: 600 lines (about 55% less)
Without templates: 900 lines (almost 80% less)
 
Current todo/tofix list:
  • The white board along the top.
  • The banner at the top.
  • Style or alignment adjustments within paragraphs in articles.
  • Allowing row-less paras in XML.
  • Allowing unescpated HTML in XML.
  • Comments.
  • Uptime counter at the bottom of the page.
  • Breadcrumbs next to article titles.
  • Prettier pages when database is down.
  • Better display of errors.
  • Port code to process new comments, with anti-POST-redirect.
  • Preview before posting comments.
  • Improve security (no XSS or SQL-injection) and guarantee XHTML-compliance on comments.
  • Fix "Remember Me" checkbox.
  • Replace /big.php with new system.
  • Periodic pull down of random banner, rather than load every time.
  • Multiple-article pages (preview here)
    • Convert or support: cereal battles, credits page, porn search, other pages with includes
    • Fix older/newer entries button at the bottom of pages
 

4 Comments

 
2004.10.12
04:04am
i vote for: "cody"
 
ryanchang
2004.10.12
09:43am
pubert.
 
2008.08.21
10:24am
*****
lpucxsitjjrkroxjgwoawdvadzayod
 
2008.09.01
06:28pm
*****
c676t
 

Comment on This

 
Name*:
Email:
URL:
Rate this article 5 4 3 2 1
Rate anonymously?
Comment*:
Remember me
(* = required)
<a> <abbr> <acronym> <address> <b> <big> <br> <cite> <code> <del> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <q> <s> <small> <strike> <strong> <sub> <sup> <tt> <u> <ul>
 
Back to the Top
 
This page best viewed while dangerously intoxicated.
 
codythefreak.net, or c7f.net is not copyrighted, reserved, limited, restricted, or private. Information is always inherently free. If I don't want you to read, view, or plagarize something, I won't post it up. Courtesy appreciated 2001-2006.
Up 40 days, 2:32.