From 25ec7ee14626877b0e55f61b39fd7c41049de190 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 21 Dec 2008 19:51:37 -0500 Subject: Fixed many HTML validation errors --- includes/bbcode.php | 10 ++--- includes/smilies.php | 2 +- pages/quotes.php | 2 +- theme/archive.tpl | 2 +- theme/comments.tpl | 4 +- theme/css/bubbles.css | 6 +-- theme/footer.tpl | 8 ++-- theme/header.tpl | 30 ++++++------- theme/pingbacks.tpl | 2 +- theme/polloftheweek.tpl | 74 ++++++++++++++---------------- theme/post.tpl | 4 +- theme/quotes/browse.tpl | 6 +-- theme/related.tpl | 2 +- theme/sidebar.tpl | 116 ++++++++++++++++++++++-------------------------- 14 files changed, 127 insertions(+), 141 deletions(-) diff --git a/includes/bbcode.php b/includes/bbcode.php index 69e89e3..c381f3c 100755 --- a/includes/bbcode.php +++ b/includes/bbcode.php @@ -35,8 +35,8 @@ class BBCode $this->bbcodes['u'] = '{CONTENT}'; $this->bbcodes['url'] = '{CONTENT}'; $this->bbcodes2['url'] = '{CONTENT}'; - $this->bbcodes['img'] = ''; - $this->bbcodes2['img'] = '{PARAM}'; + $this->bbcodes['img'] = ''; + $this->bbcodes2['img'] = '{PARAM}'; $this->bbcodes['big'] = '{CONTENT}'; $this->bbcodes['small'] = '{CONTENT}'; $this->bbcodes['ul'] = ''; @@ -51,8 +51,8 @@ class BBCode $this->bbcodes2['bquote'] = '

{CONTENT}
{PARAM}
'; $this->bbcodes2['abbr'] = '{CONTENT}'; $this->bbcodes['hidden'] = '{CONTENT}'; - $this->bbcodes['thumb'] = ''; - $this->bbcodes['thumb2'] = ''; + $this->bbcodes['thumb'] = ''; + $this->bbcodes['thumb2'] = ''; $this->init = true; } @@ -95,7 +95,7 @@ class BBCode } } - return str_replace('[br]','
',$to_parse); + return str_replace('[br]','
',$to_parse); } } diff --git a/includes/smilies.php b/includes/smilies.php index c0a4297..7001705 100755 --- a/includes/smilies.php +++ b/includes/smilies.php @@ -44,7 +44,7 @@ class Smilies foreach ($this->smilies as $name => $value) { - $text = str_replace($name, '' . $name . '', $text); + $text = str_replace($name, '' . $name . '', $text); } return $text; diff --git a/pages/quotes.php b/pages/quotes.php index d957722..6db3cb0 100755 --- a/pages/quotes.php +++ b/pages/quotes.php @@ -158,7 +158,7 @@ function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_l { $template->adds_block('QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], 'RATING' => $getquotes3[$i]['rating'], - 'QUOTE' => parseSmilies(nl2br(stripslashes($getquotes3[$i]['quote']))))); + 'QUOTE' => parseSmilies(str_replace("\n","
",stripslashes($getquotes3[$i]['quote']))))); $i++; } diff --git a/theme/archive.tpl b/theme/archive.tpl index 1a73af2..f08c0f2 100755 --- a/theme/archive.tpl +++ b/theme/archive.tpl @@ -1,7 +1,7 @@

-

+

|
diff --git a/theme/comments.tpl b/theme/comments.tpl index 6462d23..2b9bc51 100755 --- a/theme/comments.tpl +++ b/theme/comments.tpl @@ -6,7 +6,7 @@
- + Gravatar
@@ -33,6 +33,6 @@ Website (Optional):

- + diff --git a/theme/css/bubbles.css b/theme/css/bubbles.css index 311e471..ac982f9 100755 --- a/theme/css/bubbles.css +++ b/theme/css/bubbles.css @@ -49,15 +49,15 @@ div.bubble cite.rounded { } /* Pimped Bubble */ -div#pimped.bubble { +div.pimped.bubble { font-size: 0.9em; } -div#pimped.bubble div.rounded { +div.pimped.bubble div.rounded { color: #fff; border: 3px solid #fff; background-color: #111; } -div#pimped.bubble cite.rounded { +div.pimped.bubble cite.rounded { background: transparent url(/theme/images/tip-pimped.gif) no-repeat 15px 0; } diff --git a/theme/footer.tpl b/theme/footer.tpl index e0a2bff..dc247f9 100755 --- a/theme/footer.tpl +++ b/theme/footer.tpl @@ -17,14 +17,14 @@

diff --git a/theme/header.tpl b/theme/header.tpl index 4c32e4c..d5b24b1 100755 --- a/theme/header.tpl +++ b/theme/header.tpl @@ -2,15 +2,15 @@ <!--EXTRATITLE-->Four Island - - - - - - - - - + + + + + + + + + @@ -35,7 +35,7 @@