From dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 3 Oct 2009 10:30:17 -0400 Subject: Created Theme Switcher Also rewrote the way layouts work. Now, each layout requires a "layout.tpl" file (which contains the header and footer for the layout) and a "style.php" file (which contains and can include other files that contain the CSS for the layout). Each layout has it's own folder in theme/layouts and you can switch between them using a combo box in the Hatbar. Layouts 6.2 and 4.5 have been modified to work with new Layout 7 features such as AJAX, and they should be relatively free of bugs. Layout 3 has not yet been transferred because since it is pre-The New Four Island, it will be very difficult to do so. This changeset requires manual external code changes: * The line below must be added above the functions.php include in The Fourm's funnctions.php require('/svr/www/hatkirby/fourisland/main/includes/session.php'); * The block of Four Island code in The Fourm's page_header() function should be replaced with: global $fi_pagetitle; $fi_pagetitle = $page_title; ob_start(); * The block of Four Island code in The Fourm's page_footer() function should be replaced with: global $fi_pagetitle; $content = ob_get_contents(); ob_end_clean(); $noRightbar = 1; $onFourm = 1; $pageCategory = 'fourm'; if ($fi_pagetitle == 'Index page') { $title = 'The Fourm'; } else if (strpos($fi_pagetitle, 'View topic') !== FALSE) { $title = str_replace('View topic - ', 'Topic: ', $fi_pagetitle) . ' - The Fourm'; } else if (strpos($fi_pagetitle, 'View forum') !== FALSE) { $title = str_replace('View forum - ', 'Fourm: ', $fi_pagetitle) . ' - The Fourm'; } else if (strpos($fi_pagetitle, 'Viewing profile') !== FALSE) { $title = str_replace('Viewing profile - ', 'Member: ', $fi_pagetitle) . ' - The Fourm'; } else { $title = $fi_pagetitle . ' - The Fourm'; } if ($_GET['view'] != 'print') { include('/svr/www/hatkirby/fourisland/main/includes/layout.php'); } else { echo $content; } Closes #117 --- .htaccess | 2 + includes/footer.php | 180 ----------------- includes/functions.php | 60 ++++++ includes/header.php | 96 --------- includes/layout.php | 300 +++++++++++++++++++++++++++ index.php | 18 +- pages/blog.php | 5 - theme/css.php | 3 + theme/css/bubbles.css | 8 +- theme/css/quotes.css | 2 +- theme/css/website.css | 182 ----------------- theme/images/Fourm.gif | Bin 0 -> 23001 bytes theme/images/Fourm_ro.gif | Bin 0 -> 23013 bytes theme/images/Home.gif | Bin 0 -> 22992 bytes theme/images/Home_ro.gif | Bin 0 -> 23014 bytes theme/images/Links.gif | Bin 0 -> 22985 bytes theme/images/Links_ro.gif | Bin 0 -> 23005 bytes theme/images/Login.gif | Bin 0 -> 23311 bytes theme/images/Login_ro.gif | Bin 0 -> 23552 bytes theme/images/Logout.gif | Bin 0 -> 23470 bytes theme/images/Logout_ro.gif | Bin 0 -> 23613 bytes theme/images/Panel.gif | Bin 0 -> 23368 bytes theme/images/Panel_ro.gif | Bin 0 -> 23577 bytes theme/images/Poll.gif | Bin 0 -> 23161 bytes theme/images/Poll_ro.gif | Bin 0 -> 23476 bytes theme/images/Projects.gif | Bin 0 -> 23098 bytes theme/images/Projects_ro.gif | Bin 0 -> 23033 bytes theme/images/Quotes.gif | Bin 0 -> 23969 bytes theme/images/Quotes_ro.gif | Bin 0 -> 23717 bytes theme/images/Random.gif | Bin 0 -> 23142 bytes theme/images/Random_ro.gif | Bin 0 -> 23043 bytes theme/images/Wiki.gif | Bin 0 -> 23256 bytes theme/images/Wiki_ro.gif | Bin 0 -> 23551 bytes theme/images/bg_body_short.gif | Bin 0 -> 384 bytes theme/images/bg_footer.gif | Bin 0 -> 114 bytes theme/images/bg_header.gif | Bin 0 -> 642 bytes theme/images/bg_navbar.gif | Bin 0 -> 206 bytes theme/images/bg_search.gif | Bin 0 -> 837 bytes theme/images/corners_bottom.gif | Bin 0 -> 708 bytes theme/images/corners_left.png | Bin 0 -> 195 bytes theme/images/corners_right.png | Bin 0 -> 201 bytes theme/images/fourisland_header.png | Bin 0 -> 24124 bytes theme/images/fourisland_header_night.png | Bin 0 -> 19678 bytes theme/images/headers/ctnh.png | Bin 0 -> 20000 bytes theme/images/headers/fourm.png | Bin 0 -> 10596 bytes theme/images/headers/hatkirbybday.png | Bin 0 -> 12384 bytes theme/images/headers/islandYearly.png | Bin 0 -> 4527 bytes theme/images/headers/kfm.png | Bin 0 -> 10819 bytes theme/images/headers/links.png | Bin 0 -> 10711 bytes theme/images/headers/main.png | Bin 0 -> 12479 bytes theme/images/headers/main.xcf | Bin 0 -> 62769 bytes theme/images/headers/memorial.png | Bin 0 -> 11355 bytes theme/images/headers/mothers.png | Bin 0 -> 12532 bytes theme/images/headers/potw.png | Bin 0 -> 10919 bytes theme/images/headers/projects.png | Bin 0 -> 12846 bytes theme/images/headers/projects.xcf | Bin 0 -> 87437 bytes theme/images/headers/quotes.png | Bin 0 -> 12260 bytes theme/images/headers/random.png | Bin 0 -> 11632 bytes theme/images/headers/short.png | Bin 0 -> 10776 bytes theme/images/sides_top.gif | Bin 0 -> 2559 bytes theme/layouts/4.5/day.css | 4 + theme/layouts/4.5/headers.php | 85 ++++++++ theme/layouts/4.5/holiday.php | 112 +++++++++++ theme/layouts/4.5/layout.tpl | 272 +++++++++++++++++++++++++ theme/layouts/4.5/navigation.css | 173 ++++++++++++++++ theme/layouts/4.5/night.css | 4 + theme/layouts/4.5/style.css | 233 +++++++++++++++++++++ theme/layouts/4.5/style.php | 38 ++++ theme/layouts/6.2/layout.tpl | 334 +++++++++++++++++++++++++++++++ theme/layouts/6.2/night.css | 22 ++ theme/layouts/6.2/style.css | 247 +++++++++++++++++++++++ theme/layouts/6.2/style.php | 32 +++ theme/layouts/7/layout.tpl | 234 ++++++++++++++++++++++ theme/layouts/7/style.css | 183 +++++++++++++++++ theme/layouts/7/style.php | 27 +++ theme/sidebar.tpl | 296 --------------------------- 76 files changed, 2381 insertions(+), 771 deletions(-) delete mode 100755 includes/footer.php delete mode 100755 includes/header.php create mode 100644 includes/layout.php create mode 100755 theme/images/Fourm.gif create mode 100755 theme/images/Fourm_ro.gif create mode 100755 theme/images/Home.gif create mode 100755 theme/images/Home_ro.gif create mode 100755 theme/images/Links.gif create mode 100755 theme/images/Links_ro.gif create mode 100755 theme/images/Login.gif create mode 100755 theme/images/Login_ro.gif create mode 100755 theme/images/Logout.gif create mode 100755 theme/images/Logout_ro.gif create mode 100755 theme/images/Panel.gif create mode 100755 theme/images/Panel_ro.gif create mode 100755 theme/images/Poll.gif create mode 100755 theme/images/Poll_ro.gif create mode 100755 theme/images/Projects.gif create mode 100755 theme/images/Projects_ro.gif create mode 100755 theme/images/Quotes.gif create mode 100755 theme/images/Quotes_ro.gif create mode 100755 theme/images/Random.gif create mode 100755 theme/images/Random_ro.gif create mode 100755 theme/images/Wiki.gif create mode 100755 theme/images/Wiki_ro.gif create mode 100755 theme/images/bg_body_short.gif create mode 100755 theme/images/bg_footer.gif create mode 100755 theme/images/bg_header.gif create mode 100755 theme/images/bg_navbar.gif create mode 100755 theme/images/bg_search.gif create mode 100755 theme/images/corners_bottom.gif create mode 100755 theme/images/corners_left.png create mode 100755 theme/images/corners_right.png create mode 100755 theme/images/fourisland_header.png create mode 100644 theme/images/fourisland_header_night.png create mode 100755 theme/images/headers/ctnh.png create mode 100755 theme/images/headers/fourm.png create mode 100755 theme/images/headers/hatkirbybday.png create mode 100755 theme/images/headers/islandYearly.png create mode 100755 theme/images/headers/kfm.png create mode 100755 theme/images/headers/links.png create mode 100755 theme/images/headers/main.png create mode 100755 theme/images/headers/main.xcf create mode 100755 theme/images/headers/memorial.png create mode 100755 theme/images/headers/mothers.png create mode 100755 theme/images/headers/potw.png create mode 100755 theme/images/headers/projects.png create mode 100755 theme/images/headers/projects.xcf create mode 100755 theme/images/headers/quotes.png create mode 100755 theme/images/headers/random.png create mode 100755 theme/images/headers/short.png create mode 100755 theme/images/sides_top.gif create mode 100644 theme/layouts/4.5/day.css create mode 100644 theme/layouts/4.5/headers.php create mode 100644 theme/layouts/4.5/holiday.php create mode 100644 theme/layouts/4.5/layout.tpl create mode 100644 theme/layouts/4.5/navigation.css create mode 100644 theme/layouts/4.5/night.css create mode 100644 theme/layouts/4.5/style.css create mode 100755 theme/layouts/4.5/style.php create mode 100644 theme/layouts/6.2/layout.tpl create mode 100644 theme/layouts/6.2/night.css create mode 100644 theme/layouts/6.2/style.css create mode 100755 theme/layouts/6.2/style.php create mode 100644 theme/layouts/7/layout.tpl create mode 100644 theme/layouts/7/style.css create mode 100755 theme/layouts/7/style.php delete mode 100755 theme/sidebar.tpl diff --git a/.htaccess b/.htaccess index d8295fe..1d64272 100755 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,7 @@ ErrorDocument 404 /error/404.php +# Remember, if you change this file, make sure to update getRewriteURL() in functions.php! + RewriteEngine On RewriteCond %{HTTP_HOST} ^www.fourisland.com [NC] diff --git a/includes/footer.php b/includes/footer.php deleted file mode 100755 index d1f9668..0000000 --- a/includes/footer.php +++ /dev/null @@ -1,180 +0,0 @@ - adds_block('ONFOURM',array('exi'=>1)); -} - -$getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5"; -$getcomments2 = mysql_query($getcomments); -$i=0; -while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) -{ - if ($getcomments3[$i]['is_anon'] == 0) - { - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id']; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $username = $getuser3['username']; - $website = $getuser3['user_website']; - } else if ($getcomments3[$i]['is_anon'] == 1) - { - $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id']; - $getanon2 = mysql_query($getanon); - $getanon3 = mysql_fetch_array($getanon2); - - if ($getanon3['id'] == $getcomments3[$i]['user_id']) - { - $username = $getanon3['username'] . ' (Guest)'; - $website = $getanon3['website']; - } - } - - if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE) - { - $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - $getpost2 = mysql_query($getpost); - $getpost3 = mysql_fetch_array($getpost2); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'blog', - 'CODED' => $getpost3['slug'], - 'ENDING' => '/', - 'TITLE' => stripslashes(htmlentities($getpost3['title'])), - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) - { - $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'quotes', - 'CODED' => $num, - 'ENDING' => '.php', - 'TITLE' => 'Quote #' . $num, - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE) - { - $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - $getpotw2 = mysql_query($getpotw); - $getpotw3 = mysql_fetch_array($getpotw2); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'poll', - 'CODED' => $getpotw3['id'], - 'ENDING' => '.php', - 'TITLE' => 'Poll "' . htmlentities($getpotw3['question']) . '"', - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } -} - -$users = array(); -$getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0"; -$getusers2 = mysql_query($getusers); -$i=0; -while ($getusers3[$i] = mysql_fetch_array($getusers2)) -{ - $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id']; - $getcount2 = mysql_query($getcount); - $getcount3 = mysql_fetch_array($getcount2); - - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id']; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $username = $getuser3['username']; - $website = $getuser3['user_website']; - - $name = (($website != '') ? '' . $username . '' : $username); - $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']); - - $i++; -} - -function count_sort($a, $b) -{ - $a = $a['count']; - $b = $b['count']; - - if ($a > $b) - { - return -1; - } else if ($a < $b) - { - return 1; - } else { - return 0; - } -} - -usort($users, 'count_sort'); -$i=0; -foreach ($users as $value) -{ - if ($i == 5) - { - break; - } - - $template->adds_block('TOP', array( 'USERNAME' => $value['name'], - 'COUNT' => $value['count'])); - $i++; -} - -$getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5"; -$getpost2 = mysql_query($getpost) or die($getpost); -$i=0; -while ($getpost3[$i] = mysql_fetch_array($getpost2)) -{ - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id']; - $getuser2 = mysql_query($getuser) or die($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'], - 'TOPIC' => $getpost3[$i]['topic_id'], - 'POST' => $getpost3[$i]['post_id'], - 'USERNAME' => $getuser3['username'])); -} - -$getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5"; -$getpopular2 = mysql_query($getpopular); -$i=0; -while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) -{ - $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], - 'TITLE' => stripslashes(htmlentities($getpopular3[$i]['title'])))); - $i++; -} - -$template->add('REVISION', exec('hg -R "' . $_SERVER['DOCUMENT_ROOT'] . '" tip --template {rev}')); - -$template->display(); - -?> diff --git a/includes/functions.php b/includes/functions.php index 6b5d8e9..bc839df 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -376,4 +376,64 @@ function getTagColor($i) } } +function getLayout() +{ + if (!isset($_COOKIE['layout'])) + { + return '7'; + } else { + return $_COOKIE['layout']; + } +} + +function getRewriteURL() +{ + if (!isset($_GET['area'])) + { + return '/'; + } else { + if ($_GET['area'] == 'blog') + { + if (isset($_GET['author'])) + { + return '/blog/author/' . $_GET['author'] . '.php'; + } else if (isset($_GET['tag'])) + { + return '/blog/tag/' . $_GET['tag'] . '.php'; + } else if (isset($_GET['post'])) + { + return '/blog/' . $_GET['post'] . '/'; + } else { + return '/blog/'; + } + } else if ($_GET['area'] == 'poll') + { + if (isset($_GET['id'])) + { + return '/poll/' . $_GET['id'] . '.php'; + } else { + return '/poll/'; + } + } else if ($_GET['area'] == 'quotes') + { + if (isset($_GET['act'])) + { + return '/quotes/' . $_GET['act'] . '.php'; + } else { + return '/quotes/'; + } + } else if ($_GET['area'] == 'error') + { + if (isset($_GET['id'])) + { + return '/error/' . $_GET['id'] . '.php'; + } else { + return '/error/'; + } + } else { + return '/' . $_GET['area'] . '/'; + } + } +} + ?> diff --git a/includes/header.php b/includes/header.php deleted file mode 100755 index 003e002..0000000 --- a/includes/header.php +++ /dev/null @@ -1,96 +0,0 @@ -add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); -$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); -$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); -$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); - -if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) -{ - $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); - $headerTemp->add('LOGDATA',echoLogData()); - $headerTemp->add('SID',getSessionID()); - $headerTemp->adds_block('MEMBERS',array('exi' => 1)); - - if (isAdmin()) - { - $headerTemp->adds_block('ADMIN',array('exi' => 1)); - } -} - -if (isset($hatNav) && is_array($hatNav)) -{ - $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); - - foreach ($hatNav as $item) - { - $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); - } -} - -$headerTemp->add('POTW', getPollOfTheWeek()); - -$gethits = "SELECT * FROM config WHERE name = \"hits\""; -$gethits2 = mysql_query($gethits); -$gethits3 = mysql_fetch_array($gethits2); -$headerTemp->add('HITS', $gethits3['value']); - -$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; -$gethits2 = mysql_query($gethits); -$gethits3 = mysql_fetch_array($gethits2); -$headerTemp->add('TODAY', $gethits3['value']); - -$headerTemp->add('DATEFINDER', sd_dateFinder()); - -if ($usingIE) -{ - $headerTemp->add('FLASH', 'It appears you are using Internet Explorer. Four Island is not likely to work properly in IE due to a huge bug in it. There are better browsers out there, why not try one?'); -} - -$getaffs = "SELECT * FROM links WHERE type = \"affiliates\" ORDER BY id ASC"; -$getaffs2 = mysql_query($getaffs); -$i=0; -while ($getaffs3 = mysql_fetch_array($getaffs2)) -{ - $headerTemp->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), - 'TITLE' => htmlentities($getaffs3['title']), - 'URL' => $getaffs3['url'])); -} - -$getwebps = "SELECT * FROM links WHERE type = \"webprojs\" ORDER BY id ASC"; -$getwebps2 = mysql_query($getwebps); -$i=0; -while ($getwebps3 = mysql_fetch_array($getwebps2)) -{ - $headerTemp->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), - 'TITLE' => htmlentities($getwebps3['title']), - 'URL' => $getwebps3['url'])); -} - -$headerTemp->display(); - -?> diff --git a/includes/layout.php b/includes/layout.php new file mode 100644 index 0000000..8e92256 --- /dev/null +++ b/includes/layout.php @@ -0,0 +1,300 @@ +add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); +$template->add('AID',(isset($pageAID)) ? $pageAID : 'none'); +$template->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); +$template->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); + +if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) +{ + $template->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); + $template->add('LOGDATA',echoLogData()); + $template->add('LOWERLOGDATA','log' . strtolower(echoLogData())); + $template->add('SID',getSessionID()); + $template->adds_block('MEMBERS',array('exi' => 1)); + + if (isAdmin()) + { + $template->adds_block('ADMIN',array('exi' => 1)); + } +} + +if (isset($hatNav) && is_array($hatNav)) +{ + $template->adds_block('CREATE_HATNAV', array('exi'=>1)); + + foreach ($hatNav as $item) + { + $template->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); + } +} + +$template->add('POTW', getPollOfTheWeek()); + +$gethits = "SELECT * FROM config WHERE name = \"hits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$template->add('HITS', $gethits3['value']); + +$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$template->add('TODAY', $gethits3['value']); + +$template->add('DATEFINDER', sd_dateFinder()); + +if ($usingIE) +{ + $template->add('FLASH', 'It appears you are using Internet Explorer. Four Island is not likely to work properly in IE due to a huge bug in it. There are better browsers out there, why not try one?'); +} + +$getaffs = "SELECT * FROM links WHERE type = \"affiliates\" ORDER BY id ASC"; +$getaffs2 = mysql_query($getaffs); +$i=0; +while ($getaffs3 = mysql_fetch_array($getaffs2)) +{ + $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), + 'TITLE' => htmlentities($getaffs3['title']), + 'URL' => $getaffs3['url'])); +} + +$getwebps = "SELECT * FROM links WHERE type = \"webprojs\" ORDER BY id ASC"; +$getwebps2 = mysql_query($getwebps); +$i=0; +while ($getwebps3 = mysql_fetch_array($getwebps2)) +{ + $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), + 'TITLE' => htmlentities($getwebps3['title']), + 'URL' => $getwebps3['url'])); +} + +if (isset($onFourm)) +{ + $template->adds_block('ONFOURM',array('exi'=>1)); +} + +$getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5"; +$getcomments2 = mysql_query($getcomments); +$i=0; +while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) +{ + if ($getcomments3[$i]['is_anon'] == 0) + { + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id']; + $getuser2 = mysql_query($getuser); + $getuser3 = mysql_fetch_array($getuser2); + + $username = $getuser3['username']; + $website = $getuser3['user_website']; + } else if ($getcomments3[$i]['is_anon'] == 1) + { + $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id']; + $getanon2 = mysql_query($getanon); + $getanon3 = mysql_fetch_array($getanon2); + + if ($getanon3['id'] == $getcomments3[$i]['user_id']) + { + $username = $getanon3['username'] . ' (Guest)'; + $website = $getanon3['website']; + } + } + + if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE) + { + $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + $getpost2 = mysql_query($getpost); + $getpost3 = mysql_fetch_array($getpost2); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'blog', + 'CODED' => $getpost3['slug'], + 'ENDING' => '/', + 'TITLE' => stripslashes(htmlentities($getpost3['title'])), + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); + $i++; + } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) + { + $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'quotes', + 'CODED' => $num, + 'ENDING' => '.php', + 'TITLE' => 'Quote #' . $num, + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); + $i++; + } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE) + { + $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + $getpotw2 = mysql_query($getpotw); + $getpotw3 = mysql_fetch_array($getpotw2); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'poll', + 'CODED' => $getpotw3['id'], + 'ENDING' => '.php', + 'TITLE' => 'Poll "' . htmlentities($getpotw3['question']) . '"', + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); + $i++; + } +} + +$users = array(); +$getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0"; +$getusers2 = mysql_query($getusers); +$i=0; +while ($getusers3[$i] = mysql_fetch_array($getusers2)) +{ + $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id']; + $getcount2 = mysql_query($getcount); + $getcount3 = mysql_fetch_array($getcount2); + + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id']; + $getuser2 = mysql_query($getuser); + $getuser3 = mysql_fetch_array($getuser2); + + $username = $getuser3['username']; + $website = $getuser3['user_website']; + + $name = (($website != '') ? '' . $username . '' : $username); + $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']); + + $i++; +} + +function count_sort($a, $b) +{ + $a = $a['count']; + $b = $b['count']; + + if ($a > $b) + { + return -1; + } else if ($a < $b) + { + return 1; + } else { + return 0; + } +} + +usort($users, 'count_sort'); +$i=0; +foreach ($users as $value) +{ + if ($i == 5) + { + break; + } + + $template->adds_block('TOP', array( 'USERNAME' => $value['name'], + 'COUNT' => $value['count'])); + $i++; +} + +$getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5"; +$getpost2 = mysql_query($getpost) or die($getpost); +$i=0; +while ($getpost3[$i] = mysql_fetch_array($getpost2)) +{ + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id']; + $getuser2 = mysql_query($getuser) or die($getuser); + $getuser3 = mysql_fetch_array($getuser2); + + $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'], + 'TOPIC' => $getpost3[$i]['topic_id'], + 'POST' => $getpost3[$i]['post_id'], + 'USERNAME' => $getuser3['username'])); +} + +$getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5"; +$getpopular2 = mysql_query($getpopular); +$i=0; +while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) +{ + $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], + 'TITLE' => stripslashes(htmlentities($getpopular3[$i]['title'])))); + $i++; +} + +$template->add('REVISION', exec('hg -R "' . $_SERVER['DOCUMENT_ROOT'] . '" tip --template {rev}')); + +$gettags = "SELECT DISTINCT tag FROM tags WHERE post_type = \"published\""; +$gettags2 = mysql_query($gettags); +$i=0; +while ($gettags3[$i] = mysql_fetch_array($gettags2)) +{ + $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\" AND post_type = \"published\""; + $cnttag2 = mysql_query($cnttag); + $cnttag3 = mysql_fetch_array($cnttag2); + + $counts[$gettags3[$i]['tag']] = $cnttag3[0]; + + $i++; +} + +$min_count = min($counts); +$spread = max($counts) - $min_count; +$spread = ($spread <= 0) ? 1 : $spread; +$font_step = 8 / $spread; +foreach ($counts as $tag => $count) +{ + if ($count != $min_count) + { + $template->adds_block('TAGCLOUD', array( 'TAG' => $tag, + 'SIZE' => (8 + (($count - $min_count) * $font_step)), + 'COUNT' => $count)); + } +} + +if (!isset($noRightbar)) +{ + $template->adds_block('RIGHTBAR', array('exi'=>1)); +} + +$template->add('ME', getRewriteURL()); + +$template->add('CONTENT', stripslashes($content)); + +$template->display(); + +?> diff --git a/index.php b/index.php index 77b4944..d110743 100755 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matche header('Content-type: text/html'); $usingIE = true; } else { - header('Content-type: application/xhtml+xml'); +// header('Content-type: application/xhtml+xml'); } header('X-Pingback: http://fourisland.com/xmlrpc.php'); @@ -40,7 +40,13 @@ include('includes/xmlrpc/xmlrpc.inc'); include('includes/specialdates.php'); include('includes/functions.php'); include('includes/hits.php'); -include('includes/updatePending.php'); +include('includes/updatePending.php'); + +if (strpos($_SERVER['REQUEST_URI'],'index.php')) +{ + header('Location: ' . getRewriteURL()); + exit; +} ob_start(); @@ -53,13 +59,9 @@ if (file_exists('pages/' . $pageName . '.php')) generateError('404'); } -$doc = ob_get_contents(); +$content = ob_get_contents(); ob_end_clean(); -$doc = stripslashes($doc); - -include('includes/header.php'); -echo($doc); -include('includes/footer.php'); +include('includes/layout.php'); ?> diff --git a/pages/blog.php b/pages/blog.php index 550b027..6703c12 100755 --- a/pages/blog.php +++ b/pages/blog.php @@ -22,11 +22,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} require('headerproc.php'); -if ((strpos($_SERVER['REQUEST_URI'],'index.php')) && (isset($_GET['post']))) -{ - header('Location: /blog/' . $_GET['post'] . '/'); -} - $pageCategory = 'blog'; $pageAID = 'archive'; diff --git a/theme/css.php b/theme/css.php index 8c8b7ec..e65d5c6 100644 --- a/theme/css.php +++ b/theme/css.php @@ -22,7 +22,10 @@ require('../headerproc.php'); header('Content-type: text/css'); +include('../includes/functions.php'); + include('css/website.css'); +include('layouts/' . getLayout() . '/style.php'); include('css/blog.php'); include('css/bubbles.css'); include('css/quotes.css'); diff --git a/theme/css/bubbles.css b/theme/css/bubbles.css index 2e56fb0..68a3cc4 100755 --- a/theme/css/bubbles.css +++ b/theme/css/bubbles.css @@ -8,16 +8,18 @@ div.module + cite { position: relative; - top: -1em; + top: -0.15em; + left: 0.2em; margin: 0; - padding: 7px 0px 0px 15px; + padding: 15px 0px 0px 15px; background: transparent url(/theme/images/tip.gif) no-repeat 20px 0; font-style: normal; font-size: small; } div.module.unrounded + cite { - top: -0.9em; + top: -0.5em; + padding-top: 10px; } div.module.bquote + cite { diff --git a/theme/css/quotes.css b/theme/css/quotes.css index 72d5189..5be0923 100644 --- a/theme/css/quotes.css +++ b/theme/css/quotes.css @@ -1,5 +1,5 @@ ul.quote-list { - list-style-type: none; + list-style-type: none !important; } li.quote { diff --git a/theme/css/website.css b/theme/css/website.css index c7adad6..10771bc 100644 --- a/theme/css/website.css +++ b/theme/css/website.css @@ -48,86 +48,6 @@ a img { border: 0; } -/* Body */ - -body { - font-family: "Lucida Grande", "Arial", sans; - background-color: #111; -} - -div#header { - width: 100%; - height: 200px; - background-image: url(http://fourisland.com/theme/images/header-repeat.png); - background-repeat: repeat-x; -} - -div#banner { - width: 800px; - height: 200px; - margin: 0 auto; - background-image: url(http://fourisland.com/theme/images/header.png); - background-position: bottom right; -} - -div#header a { - width: 800px; - height: 200px; - text-indent: -5000px; - display: block; -} - -div#sidebar { - width: 21%; - float: left; -} - -div#content { - width: 69%; - float: right; - padding-left: 5%; - padding-right: 5%; - padding-top: 20px; -} - -div#content div.rounded { - padding: 10px; -} - -div#footer { - width: 100%; - padding-top: 20px; - padding-bottom: 20px; -} - -div#footer div.foot-module { - margin: 0 auto; - float: left; - width: 20%; - margin-left: 4%; - color: white; - font-size: 0.9em; -} - -div#footer a { - color: white; - border-bottom: 1px dotted white; -} - -div#footer div.foot-module ul { - list-style-type: square; -} - -div#footer p { - font-size: 0.5em; - color: white; - text-align: center; -} - -div#page-content { - background-color: #00ff00; /*#8B4513;*/ - padding-bottom: 10px; -} body[id^=fourm] div#page div#content code { display: block; @@ -146,36 +66,6 @@ body[id^=fourm] div#content h2 { padding-bottom: 3px; } -body#fourm div#actual-content { - font-size: 60%; -} - -ul#navbar { - text-align: center; - margin-top: 0; -} - -ul#navbar li { - display: inline; - font-family: Verdana, sans-serif; - font-size: 1.1em; -} - -ul#navbar li+li:before { - content: " - "; -} - -ul#navbar li img, ul#navbar li.active span { - display: none; -} - -ul#navbar li.active img { - display: inline; - background-color: white; - outline: white solid .5em; - margin: 0 .5em; -} - .invisible { display: none; } @@ -265,78 +155,6 @@ table.webmail th { text-align: left; } -/* Sidebar */ - -div#rightbar { - float: left; - width: 270px; /*210*/ -} - -div.sidebar { - width: 250px; /*250*/ /*240*/ /*210*/ - padding: 0 10px; - margin-bottom: 5px; -} - -div.sidebar h3 { - font-family: Verdana, Helvetica, Arial, sans-serif; - margin: 5px 0 0 0; - font-weight: bold; - color: #333333; -} - -div.sidebar p { - font-size: 0.8em; - margin: 3px 0; -} - -div#sidebar ul.hatnav { - list-style-type: none; - padding-left: 24px; - margin-top: 0 !important; - line-height: normal !important; - list-style-image: none !important; -} - -div#sidebar ul { - list-style-type: none; -} - -div#sidebar ul.hatnav li { - text-align: right; - border: 1px gray solid; - padding-top: 2px; - padding-bottom: 2px; - background-color: #111; - color: white; -} - -div#sidebar ul.hatnav li a { - display: block; - width: 95%; - color: white; -} - -div#sidebar li img { - border: 0; - height: 16px; - width: 16px; -} - -div#sidebar ul.hatnav li.active { - background-color:#00FF00; - border: none; -} - -div#sidebar ul.hatnav li:hover { - background-color:yellow; - border: none; -} - -div#sidebar ul li.active a, div#sidebar ul li a:hover { - color: black; -} - div.cleardiv { clear: both; } diff --git a/theme/images/Fourm.gif b/theme/images/Fourm.gif new file mode 100755 index 0000000..1365fd6 Binary files /dev/null and b/theme/images/Fourm.gif differ diff --git a/theme/images/Fourm_ro.gif b/theme/images/Fourm_ro.gif new file mode 100755 index 0000000..8a1cad6 Binary files /dev/null and b/theme/images/Fourm_ro.gif differ diff --git a/theme/images/Home.gif b/theme/images/Home.gif new file mode 100755 index 0000000..e3e523d Binary files /dev/null and b/theme/images/Home.gif differ diff --git a/theme/images/Home_ro.gif b/theme/images/Home_ro.gif new file mode 100755 index 0000000..b409d75 Binary files /dev/null and b/theme/images/Home_ro.gif differ diff --git a/theme/images/Links.gif b/theme/images/Links.gif new file mode 100755 index 0000000..a223b3e Binary files /dev/null and b/theme/images/Links.gif differ diff --git a/theme/images/Links_ro.gif b/theme/images/Links_ro.gif new file mode 100755 index 0000000..d540220 Binary files /dev/null and b/theme/images/Links_ro.gif differ diff --git a/theme/images/Login.gif b/theme/images/Login.gif new file mode 100755 index 0000000..3573589 Binary files /dev/null and b/theme/images/Login.gif differ diff --git a/theme/images/Login_ro.gif b/theme/images/Login_ro.gif new file mode 100755 index 0000000..404f305 Binary files /dev/null and b/theme/images/Login_ro.gif differ diff --git a/theme/images/Logout.gif b/theme/images/Logout.gif new file mode 100755 index 0000000..12696fe Binary files /dev/null and b/theme/images/Logout.gif differ diff --git a/theme/images/Logout_ro.gif b/theme/images/Logout_ro.gif new file mode 100755 index 0000000..ff103a2 Binary files /dev/null and b/theme/images/Logout_ro.gif differ diff --git a/theme/images/Panel.gif b/theme/images/Panel.gif new file mode 100755 index 0000000..42075dc Binary files /dev/null and b/theme/images/Panel.gif differ diff --git a/theme/images/Panel_ro.gif b/theme/images/Panel_ro.gif new file mode 100755 index 0000000..e64c5ad Binary files /dev/null and b/theme/images/Panel_ro.gif differ diff --git a/theme/images/Poll.gif b/theme/images/Poll.gif new file mode 100755 index 0000000..08815d2 Binary files /dev/null and b/theme/images/Poll.gif differ diff --git a/theme/images/Poll_ro.gif b/theme/images/Poll_ro.gif new file mode 100755 index 0000000..6a4549f Binary files /dev/null and b/theme/images/Poll_ro.gif differ diff --git a/theme/images/Projects.gif b/theme/images/Projects.gif new file mode 100755 index 0000000..bf0cfc7 Binary files /dev/null and b/theme/images/Projects.gif differ diff --git a/theme/images/Projects_ro.gif b/theme/images/Projects_ro.gif new file mode 100755 index 0000000..718ab03 Binary files /dev/null and b/theme/images/Projects_ro.gif differ diff --git a/theme/images/Quotes.gif b/theme/images/Quotes.gif new file mode 100755 index 0000000..8bf0289 Binary files /dev/null and b/theme/images/Quotes.gif differ diff --git a/theme/images/Quotes_ro.gif b/theme/images/Quotes_ro.gif new file mode 100755 index 0000000..f15831c Binary files /dev/null and b/theme/images/Quotes_ro.gif differ diff --git a/theme/images/Random.gif b/theme/images/Random.gif new file mode 100755 index 0000000..94cb4be Binary files /dev/null and b/theme/images/Random.gif differ diff --git a/theme/images/Random_ro.gif b/theme/images/Random_ro.gif new file mode 100755 index 0000000..4e62f24 Binary files /dev/null and b/theme/images/Random_ro.gif differ diff --git a/theme/images/Wiki.gif b/theme/images/Wiki.gif new file mode 100755 index 0000000..e4a0cc7 Binary files /dev/null and b/theme/images/Wiki.gif differ diff --git a/theme/images/Wiki_ro.gif b/theme/images/Wiki_ro.gif new file mode 100755 index 0000000..b8d9438 Binary files /dev/null and b/theme/images/Wiki_ro.gif differ diff --git a/theme/images/bg_body_short.gif b/theme/images/bg_body_short.gif new file mode 100755 index 0000000..b396204 Binary files /dev/null and b/theme/images/bg_body_short.gif differ diff --git a/theme/images/bg_footer.gif b/theme/images/bg_footer.gif new file mode 100755 index 0000000..ff3f511 Binary files /dev/null and b/theme/images/bg_footer.gif differ diff --git a/theme/images/bg_header.gif b/theme/images/bg_header.gif new file mode 100755 index 0000000..46c22e8 Binary files /dev/null and b/theme/images/bg_header.gif differ diff --git a/theme/images/bg_navbar.gif b/theme/images/bg_navbar.gif new file mode 100755 index 0000000..d96c6ea Binary files /dev/null and b/theme/images/bg_navbar.gif differ diff --git a/theme/images/bg_search.gif b/theme/images/bg_search.gif new file mode 100755 index 0000000..79e040e Binary files /dev/null and b/theme/images/bg_search.gif differ diff --git a/theme/images/corners_bottom.gif b/theme/images/corners_bottom.gif new file mode 100755 index 0000000..bea794f Binary files /dev/null and b/theme/images/corners_bottom.gif differ diff --git a/theme/images/corners_left.png b/theme/images/corners_left.png new file mode 100755 index 0000000..256bde3 Binary files /dev/null and b/theme/images/corners_left.png differ diff --git a/theme/images/corners_right.png b/theme/images/corners_right.png new file mode 100755 index 0000000..df41823 Binary files /dev/null and b/theme/images/corners_right.png differ diff --git a/theme/images/fourisland_header.png b/theme/images/fourisland_header.png new file mode 100755 index 0000000..35f7886 Binary files /dev/null and b/theme/images/fourisland_header.png differ diff --git a/theme/images/fourisland_header_night.png b/theme/images/fourisland_header_night.png new file mode 100644 index 0000000..25502a0 Binary files /dev/null and b/theme/images/fourisland_header_night.png differ diff --git a/theme/images/headers/ctnh.png b/theme/images/headers/ctnh.png new file mode 100755 index 0000000..b9542fc Binary files /dev/null and b/theme/images/headers/ctnh.png differ diff --git a/theme/images/headers/fourm.png b/theme/images/headers/fourm.png new file mode 100755 index 0000000..e7bebde Binary files /dev/null and b/theme/images/headers/fourm.png differ diff --git a/theme/images/headers/hatkirbybday.png b/theme/images/headers/hatkirbybday.png new file mode 100755 index 0000000..ba7bff0 Binary files /dev/null and b/theme/images/headers/hatkirbybday.png differ diff --git a/theme/images/headers/islandYearly.png b/theme/images/headers/islandYearly.png new file mode 100755 index 0000000..099d963 Binary files /dev/null and b/theme/images/headers/islandYearly.png differ diff --git a/theme/images/headers/kfm.png b/theme/images/headers/kfm.png new file mode 100755 index 0000000..cc568ec Binary files /dev/null and b/theme/images/headers/kfm.png differ diff --git a/theme/images/headers/links.png b/theme/images/headers/links.png new file mode 100755 index 0000000..b24ded0 Binary files /dev/null and b/theme/images/headers/links.png differ diff --git a/theme/images/headers/main.png b/theme/images/headers/main.png new file mode 100755 index 0000000..009d3ac Binary files /dev/null and b/theme/images/headers/main.png differ diff --git a/theme/images/headers/main.xcf b/theme/images/headers/main.xcf new file mode 100755 index 0000000..fd37ee4 Binary files /dev/null and b/theme/images/headers/main.xcf differ diff --git a/theme/images/headers/memorial.png b/theme/images/headers/memorial.png new file mode 100755 index 0000000..b68b97d Binary files /dev/null and b/theme/images/headers/memorial.png differ diff --git a/theme/images/headers/mothers.png b/theme/images/headers/mothers.png new file mode 100755 index 0000000..e656d7d Binary files /dev/null and b/theme/images/headers/mothers.png differ diff --git a/theme/images/headers/potw.png b/theme/images/headers/potw.png new file mode 100755 index 0000000..9ce3174 Binary files /dev/null and b/theme/images/headers/potw.png differ diff --git a/theme/images/headers/projects.png b/theme/images/headers/projects.png new file mode 100755 index 0000000..d59f47a Binary files /dev/null and b/theme/images/headers/projects.png differ diff --git a/theme/images/headers/projects.xcf b/theme/images/headers/projects.xcf new file mode 100755 index 0000000..f1950ad Binary files /dev/null and b/theme/images/headers/projects.xcf differ diff --git a/theme/images/headers/quotes.png b/theme/images/headers/quotes.png new file mode 100755 index 0000000..9fb966e Binary files /dev/null and b/theme/images/headers/quotes.png differ diff --git a/theme/images/headers/random.png b/theme/images/headers/random.png new file mode 100755 index 0000000..e7db228 Binary files /dev/null and b/theme/images/headers/random.png differ diff --git a/theme/images/headers/short.png b/theme/images/headers/short.png new file mode 100755 index 0000000..4d4d267 Binary files /dev/null and b/theme/images/headers/short.png differ diff --git a/theme/images/sides_top.gif b/theme/images/sides_top.gif new file mode 100755 index 0000000..a84383a Binary files /dev/null and b/theme/images/sides_top.gif differ diff --git a/theme/layouts/4.5/day.css b/theme/layouts/4.5/day.css new file mode 100644 index 0000000..16fc9a6 --- /dev/null +++ b/theme/layouts/4.5/day.css @@ -0,0 +1,4 @@ +body { + background-color: aqua; + background-image: url(/theme/images/backgrounds/island6.PNG); +} diff --git a/theme/layouts/4.5/headers.php b/theme/layouts/4.5/headers.php new file mode 100644 index 0000000..bb5a179 --- /dev/null +++ b/theme/layouts/4.5/headers.php @@ -0,0 +1,85 @@ + +/* Four Island Header CSS */ + +/* Category-Based Headers */ +body.projects div#banner { + background-image: url("/theme/images/headers/projects.png"); +} +body.wiki div#banner { + background-image: url("/theme/images/headers/kfm.png"); +} +body.fourm div#banner { + background-image: url("/theme/images/headers/fourm.png"); +} +body.misc div#banner { + background-image: url("/theme/images/headers/random.png"); +} +body.webs div#banner { + background-image: url("/theme/images/headers/links.png"); +} +body.quotes div#banner { + background-image: url("/theme/images/headers/quotes.png"); +} +body.poll div#banner { + background-image: url("/theme/images/headers/potw.png"); +} +/* AID-Based Headers */ + +div#banner { + background-image: url("/theme/images/headers/.png"); /*850x129*/ +} diff --git a/theme/layouts/4.5/holiday.php b/theme/layouts/4.5/holiday.php new file mode 100644 index 0000000..65c1826 --- /dev/null +++ b/theme/layouts/4.5/holiday.php @@ -0,0 +1,112 @@ + + +body { + background-image: url(/theme/images/backgrounds/.PNG) !important; +} diff --git a/theme/layouts/4.5/layout.tpl b/theme/layouts/4.5/layout.tpl new file mode 100644 index 0000000..0ce0e5b --- /dev/null +++ b/theme/layouts/4.5/layout.tpl @@ -0,0 +1,272 @@ + + + <!--EXTRATITLE-->Four Island + + + + + + + + + + + + + + + > +
+ You can get notifications on new Four Island posts either via + RSS + or + Email +
+ +
+ + + + +
+ +
+
+ +
+ + +
+ + + Hatkirby on Four Island + +

+ + +

+ +

+ + +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ + Hatkirby on Four Island + + + + +
+ + +
+ + +
+ +
+ + +
+ + diff --git a/theme/layouts/4.5/navigation.css b/theme/layouts/4.5/navigation.css new file mode 100644 index 0000000..4d3156b --- /dev/null +++ b/theme/layouts/4.5/navigation.css @@ -0,0 +1,173 @@ +/* Four Island NavBar CSS */ + +ul#bannernav { + list-style: none; + clear: both; + margin: 0px; +} + +div#banner-nav { + height: 30px; + clear: both; + margin: 1px 30px 0 30px; + background: url("/theme/images/bg_navbar.gif") repeat-x 0 0; +} + +ul#bannernav li { + float: left; + margin: 0; + padding: 0; + padding-right: 6px; +} + +ul#bannernav li a { + text-decoration: none; + display: block; + width: 100; + height: 30; +} + +ul#bannernav li a span { + visibility: hidden; +} + +ul#bannernav li img { + display: none; +} + +ul#bannernav li#bannernav-home a { + background-image: url("/theme/images/Home.gif"); +} + +body.home ul#bannernav li#bannernav-home a, +ul#bannernav li#bannernav-home a:hover { + background-image: url("/theme/images/Home_ro.gif"); +} + +ul#bannernav li#bannernav-projects a { + background-image: url("/theme/images/Projects.gif"); +} + +body.projects ul#bannernav li#bannernav-projects a, +ul#bannernav li#bannernav-projects a:hover { + background-image: url("/theme/images/Projects_ro.gif"); +} + +ul#bannernav li#bannernav-wiki a { + background-image: url("/theme/images/Wiki.gif"); +} + +body.wiki ul#bannernav li#bannernav-wiki a, +ul#bannernav li#bannernav-wiki a:hover { + background-image: url("/theme/images/Wiki_ro.gif"); +} + +ul#bannernav li#bannernav-fourm a { + background-image: url("/theme/images/Fourm.gif"); +} + +body.fourm ul#bannernav li#bannernav-fourm a, +ul#bannernav li#bannernav-fourm a:hover { + background-image: url("/theme/images/Fourm_ro.gif"); +} + +ul#bannernav li#bannernav-misc a { + background-image: url("/theme/images/Random.gif"); +} + +body.misc ul#bannernav li#bannernav-misc a, +ul#bannernav li#bannernav-misc a:hover { + background-image: url("/theme/images/Random_ro.gif"); +} + +ul#bannernav li#bannernav-webs a { + background-image: url("/theme/images/Links.gif"); +} + +body.webs ul#bannernav li#bannernav-webs a, +ul#bannernav li#bannernav-webs a:hover { + background-image: url("/theme/images/Links_ro.gif"); +} + +ul#bannernav li#bannernav-poll a { + background-image: url("/theme/images/Poll.gif"); +} + +body.poll ul#bannernav li#bannernav-poll a, +ul#bannernav li#bannernav-poll a:hover { + background-image: url("/theme/images/Poll_ro.gif"); +} + +ul#bannernav li#bannernav-quotes a { + background-image: url("/theme/images/Quotes.gif"); +} + +body.quotes ul#bannernav li#bannernav-quotes a, +ul#bannernav li#bannernav-quotes a:hover { + background-image: url("/theme/images/Quotes_ro.gif"); +} + +ul#bannernav li#bannernav-login a { + background-image: url("/theme/images/Login.gif"); +} + +body.login ul#bannernav li#bannernav-login a, +ul#bannernav li#bannernav-login a:hover { + background-image: url("/theme/images/Login_ro.gif"); +} + +ul#bannernav li#bannernav-logout a { + background-image: url("/theme/images/Logout.gif"); +} + +ul#bannernav li#bannernav-logout a:hover { + background-image: url("/theme/images/Logout_ro.gif"); +} + +ul#bannernav li#bannernav-panel a { + background-image: url("/theme/images/Panel.gif"); +} + +body.panel ul#bannernav li#bannernav-panel a, +ul#bannernav li#bannernav-panel a:hover { + background-image: url("/theme/images/Panel_ro.gif"); +} + +ul#bannernav li#bannernav-search { + display: block; + float: right; + width: 165px; + height: 30px; + margin: 0px; + background: url("/theme/images/bg_search.gif") 0 0 no-repeat; +} + +ul#bannernav li#bannernav-search fieldset { + border: none; + padding-top: 6px; + border-width:0pt; + font-family:Verdana,Helvetica,Arial,sans-serif; + font-size:1.1em; +} + +ul#bannernav li#bannernav-search input { + width: 125px; + height: 19px !important; + margin-left: 13px; + border: none !important; + background-color: transparent; + cursor:pointer; + font-family:Verdana,Helvetica,Arial,sans-serif; + font-weight:normal; + padding:0pt 3px; + vertical-align:middle; + line-height:1.3em; + color:#536482; + margin-top: -20px; +} + +body.fourm ul#bannernav li#bannernav-search input { + margin-top: 0px; + font-size: 1.1em !important; + margin-left: 28px; +} diff --git a/theme/layouts/4.5/night.css b/theme/layouts/4.5/night.css new file mode 100644 index 0000000..e97ac71 --- /dev/null +++ b/theme/layouts/4.5/night.css @@ -0,0 +1,4 @@ +body { + background-color: black; + background-image: url(/theme/images/backgrounds/island6night.PNG); +} diff --git a/theme/layouts/4.5/style.css b/theme/layouts/4.5/style.css new file mode 100644 index 0000000..b8afbbb --- /dev/null +++ b/theme/layouts/4.5/style.css @@ -0,0 +1,233 @@ +body { + background-repeat: repeat-x; + background-attachment: fixed; + background-position: bottom left; + font-family: Arial, FreeSans; + margin: 0px; + padding: 0px 0px 30px !important; +} + +body.fourm { + font-family: Verdana, Helvetica, Arial, sans-serif; +} + +body.fourm div#content { + width: 100%; + float: none; +} + +body.fourm div#wrap, +body.poll div#wrap, +body.quotes div#wrap, +body.admin div#wrap { + background-image: url(/theme/images/bg_body.gif); + background-repeat: repeat-y; +} + +div#banner, div#fi-banner { + background-repeat: no-repeat; + width: 850px; + height: 129px; + float: left; + margin-top: 21px; +} + +#page-header { + background: url("/theme/images/bg_header.gif") repeat-x 0 0; + height: 150px; + clear: both; +} + +div#banner { + background-image: url("/theme/images/fourisland_header.png"); +} + +body div#banner h1, body div#fi-banner h1 { + margin: 0; +} + +body div#banner h1 a, body div#fi-banner h1 a { + display: block; + width: 850px; + height: 129px; + text-indent: -5000px; + text-decoration: none; + margin: 0; +} + +div#banner h1, div#fi-banner h1 { + margin: 0; + font-size: 3.0em; + font-weight: normal; +} + +div#bannernav { + text-align: center; +} + +span.side-left, span.side-right { + display: block; + width: 20px; + height: 150px; + background: url("/theme/images/sides_top.gif") no-repeat; +} + +span.side-left { + float: left; + margin-right: 10px; +} + +span.side-right { + background-position: 100% 0; + float: right; +} + +/* Sidebar */ + +div#rightbar { + float: right; + width: 250px; /*210*/ + padding: 0 10; +} + +div.sidebar { + width: 250px; /*250*/ /*240*/ /*210*/ + padding: 0 10px; + margin-bottom: 5px; +} + +div.sidebar h3 { + font-family: Verdana, Helvetica, Arial, sans-serif; + margin: 5px 0 0 0; + font-weight: bold; + color: #333333; +} + +div.sidebar p { + font-size: 0.8em; + margin: 3px 0; +} + +div.sidebar ul { + list-style-type: none; + padding: 0; + margin: 0; + line-height: normal !important; + list-style-image: none !important; +} + +div#sidebar ul li { + margin-top: 4px; +} + +div#sidebar ul li a { + display: block; + width: 230px; +} + +div#sidebar li img { + border: 0; + height: 16px; + width: 16px; +} + +/* Layout */ + +#wrap { + background: #FFFFFF url("/theme/images/bg_body.gif") repeat-y 0 0; + width: 910px; + margin: 10px auto; + text-align: left; + padding: 0; + margin-top: 25px; +} + +#page-body { + margin: 10px 55px 0 30px; + clear: both; + position: relative; +} + +body.fourm #page-body { + margin-left: 25; + margin-right: 10; + width: 95%; + font-size: 62.5%; +} + +#phpBB3-page-body { + margin: 4px 0 !important; + clear: both; +} + +/* Content */ + +div#content { + float: left; + width: 555px; /*465*/ /*555*/ +} + + +div#content h2 { + color: #59770e; + margin: 0px 0px 2px; + border-bottom: 1px dotted #CCCCCC; + letter-spacing: -1px; + font: normal 140%/100% "Trebuchet MS", Tahoma, Arial; + padding-bottom: 3px; +} + +/* Random Divs/Spans */ + + +div#footer { + clear: both; + padding-bottom: 1em; + padding-top: .5em; + margin-top: .5em; + text-align: center; + font-size: .68em; + width: 100%; + border-top: 1px black solid; + border-bottom: 4px gray solid; +} + +div#footer ul.rows li { + display: list-item; +} + +div#footer ul { + padding: 0; + margin: 0; + list-style-type: none; +} + +div#footer ul li { + display: inline; + margin-right: 1em; +} + +div#footer ul li img { + width: 20px; + height: 20px; + vertical-align: top; +} + +div#flash { + position: fixed; + top: 0; + left: 0; + width: 100%; + background-color: #FBEC5D; + height: 20px; + z-index: 99; + padding-top: 5px; + text-align: center; + display: block; + padding-bottom: 0; + border-bottom: none; +} + +* > html div#flash { + position: absolute; +} diff --git a/theme/layouts/4.5/style.php b/theme/layouts/4.5/style.php new file mode 100755 index 0000000..fa50dc4 --- /dev/null +++ b/theme/layouts/4.5/style.php @@ -0,0 +1,38 @@ += 20) || (date('G') <= 6)) || isset($_GET['night']) && !isset($_GET['day'])) +{ + include('layouts/4.5/night.css'); +} else { + include('layouts/4.5/day.css'); +} + +include('layouts/4.5/headers.php'); +include('layouts/4.5/navigation.css'); +include('layouts/4.5/holiday.php'); + +?> diff --git a/theme/layouts/6.2/layout.tpl b/theme/layouts/6.2/layout.tpl new file mode 100644 index 0000000..59535af --- /dev/null +++ b/theme/layouts/6.2/layout.tpl @@ -0,0 +1,334 @@ + + + + + <!--EXTRATITLE-->Four Island + + + + + + + + + + + + + + + + > +
+ +
+ + +
+
+ +
+
+ +
+ +
+ + + Hatkirby on Four Island + +

+ + +

+ +

+ + +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ + Hatkirby on Four Island + + + + +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+ + + + + + + diff --git a/theme/layouts/6.2/night.css b/theme/layouts/6.2/night.css new file mode 100644 index 0000000..2a24480 --- /dev/null +++ b/theme/layouts/6.2/night.css @@ -0,0 +1,22 @@ +body { + background-color: black; + background-image: url(/theme/images/backgrounds/island6night.PNG); +} + +div#wrap { + background-color: rgba(0, 0, 0, 0.75); +} + +div#banner { + background-color: black; + background-image: url(/theme/images/fourisland_header_night.png); +} + +div#fi-navbar ul li.active img { + background-color: black; + outline: black solid .5em; +} + +.light-at-night, .light-at-night-l6p2 { + color: #555555; +} diff --git a/theme/layouts/6.2/style.css b/theme/layouts/6.2/style.css new file mode 100644 index 0000000..53f3556 --- /dev/null +++ b/theme/layouts/6.2/style.css @@ -0,0 +1,247 @@ +/* Banner */ + +div#banner, div#fi-banner { + background-repeat: no-repeat; + width: 900px; /*728*/ + height: 200px; + float: left; +/* margin-top: 21px; */ +} + +div#banner { + background: white url("/theme/images/fourisland_header.png") center no-repeat; + width: 100%; +} + +body div#banner h1, body div#fi-banner h1 { + margin: 0; +} + +body div#banner h1 a, body div#fi-banner h1 a { + display: block; + width: 900px; + height: 200px; + text-indent: -5000px; + text-decoration: none; + margin: 0; +} + +div#banner h1, div#fi-banner h1 { + margin: 0; + font-size: 3.0em; + font-weight: normal; +} + +/* NavBar */ + +div#fi-navbar { + position: relative; + background-color: #b7e0ff; + width: auto; + margin-bottom: 14px; + font: 0.9em "Lucida Grande", Lucida, Verdana, sans-serif; + height: 1.9em; + clear: both; +} + +div#fi-navbar div { + padding: .001em 0; + margin: 10px; +} + +div#fi-navbar ul { + margin: .25em 0; + padding-left: 1em; + text-align: center; +} + +div#fi-navbar ul li { + display: inline; + font-family: Verdana, sans-serif; + font-size: 1.1em; +} + +div#fi-navbar ul li+li:before { + content: " - "; +} + +div#fi-navbar ul li img, +div#fi-navbar ul li.active span { + display: none; +} + +div#fi-navbar ul li.active img { + display: inline; + background-color: white; + outline: white solid .5em; + margin: 0 .5em; +} + +div#fi-navbar div.bubble blockquote { + background: none; + font-size: 0.9em; +} + +div#fi-navbar div.bubble blockquote a { + color: blue; +} + +/* Sidebar */ + +div#rightbar { + float: left; + width: 270px; /*210*/ +} + +div.sidebar { + width: 250px; /*250*/ /*240*/ /*210*/ + padding: 0 10px; + margin-bottom: 5px; +} + +div.sidebar h3 { + font-family: Verdana, Helvetica, Arial, sans-serif; + margin: 5px 0 0 0; + font-weight: bold; + color: #333333; +} + +div.sidebar p { + font-size: 0.8em; + margin: 3px 0; +} + +div.sidebar ul { + list-style-type: none; + padding: 0; + margin: 0; + line-height: normal !important; + list-style-image: none !important; +} + +div#sidebar ul li { + margin-top: 4px; +} + +div#sidebar ul li a { + display: block; + width: 230px; +} + +div#sidebar li img { + border: 0; + height: 16px; + width: 16px; +} + +/* Layout */ + +#wrap { + width: 910px; + margin: 10px auto; + padding: 0; + background-color: white; + background-color: rgba(255, 255, 255, 0.5); + border: 4px solid gray; +} + +#page-body { + margin: 0 30px; + clear: both; + position: relative; +} + +body.fourm #page-body { + margin: 0 10px 0 25px; + width: 95%; + font-size: 62.5%; +} + +#phpBB3-page-body { + margin: 4px 0 !important; + clear: both; +} + +/* Content */ + +div#content { + float: right; + width: 555px; /*465*/ /*555*/ +} + +div#footer { + clear: both; + padding: .5em 0 1em 0; + margin-top: .5em; + text-align: center; + font-size: .68em; + border-top: 1px black solid; +} + +div#footer ul.rows li { + display: list-item; +} + +div#footer ul { + padding: 0; + margin: 0; + list-style-type: none; +} + +div#footer ul li { + display: inline; + margin-right: 1em; +} + +div#footer ul li img { + width: 20px; + height: 20px; + vertical-align: top; +} + +div#content ul { + list-style: url(/theme/images/bullet_disk_big.png); +} + +div#content a img { + border: solid transparent 1px; +} + +div#content a:hover img { + border: dashed gray 1px; +} + +div#hatbar.quotes-options ul { + list-style: none; +} + +div.autosize { + margin-bottom: 6px !important; +} + +body { + background: repeat-x bottom left fixed; + font-family: Arial, FreeSans; + margin: 0px; + padding: 0px 0px 30px !important; +} + +body.fourm { + font-family: Verdana, Helvetica, Arial, sans-serif; +} + +body.fourm div#content { + width: 100%; + float: none; +} + +body { + background-color: aqua; + background-image: url(/theme/images/backgrounds/island6.PNG); +} + +span.post-vote { + float: right; + position: relative; + top: -20px; +} diff --git a/theme/layouts/6.2/style.php b/theme/layouts/6.2/style.php new file mode 100755 index 0000000..73bce49 --- /dev/null +++ b/theme/layouts/6.2/style.php @@ -0,0 +1,32 @@ += 20) || (date('G') <= 6)) || isset($_GET['night']) && !isset($_GET['day'])) +{ + include('layouts/6.2/night.css'); +} + +?> diff --git a/theme/layouts/7/layout.tpl b/theme/layouts/7/layout.tpl new file mode 100644 index 0000000..48eb1e6 --- /dev/null +++ b/theme/layouts/7/layout.tpl @@ -0,0 +1,234 @@ + + + + + <!--EXTRATITLE-->Four Island + + + + + + + + + + + + + +
+ + + +
+ + +
+ + +
+
+ +
+
+
+ +
+
+ + + + diff --git a/theme/layouts/7/style.css b/theme/layouts/7/style.css new file mode 100644 index 0000000..c16bdfa --- /dev/null +++ b/theme/layouts/7/style.css @@ -0,0 +1,183 @@ +/* Body */ + +body { + font-family: "Lucida Grande", "Arial", sans; + background-color: #111; +} + +div#header { + width: 100%; + height: 200px; + background-image: url(http://fourisland.com/theme/images/header-repeat.png); + background-repeat: repeat-x; +} + +div#banner { + width: 800px; + height: 200px; + margin: 0 auto; + background-image: url(http://fourisland.com/theme/images/header.png); + background-position: bottom right; +} + +div#header a { + width: 800px; + height: 200px; + text-indent: -5000px; + display: block; +} + +div#sidebar { + width: 21%; + float: left; +} + +div#content { + width: 69%; + float: right; + padding-left: 5%; + padding-right: 5%; + padding-top: 20px; +} + +div#content div.rounded { + padding: 10px; +} + +div#footer { + width: 100%; + padding-top: 20px; + padding-bottom: 20px; +} + +div#footer div.foot-module { + margin: 0 auto; + float: left; + width: 20%; + margin-left: 4%; + color: white; + font-size: 0.9em; +} + +div#footer a { + color: white; + border-bottom: 1px dotted white; +} + +div#footer div.foot-module ul { + list-style-type: square; +} + +div#footer p { + font-size: 0.5em; + color: white; + text-align: center; +} + +div#page-content { + background-color: #00ff00; /*#8B4513;*/ + padding-bottom: 10px; +} + +body#fourm div#actual-content { + font-size: 60%; +} + +ul#navbar { + text-align: center; + margin-top: 0; +} + +ul#navbar li { + display: inline; + font-family: Verdana, sans-serif; + font-size: 1.1em; +} + +ul#navbar li+li:before { + content: " - "; +} + +ul#navbar li img, ul#navbar li.active span { + display: none; +} + +ul#navbar li.active img { + display: inline; + background-color: white; + outline: white solid .5em; + margin: 0 .5em; +} + +/* Sidebar */ + +div#rightbar { + float: left; + width: 270px; /*210*/ +} + +div.sidebar { + width: 250px; /*250*/ /*240*/ /*210*/ + padding: 0 10px; + margin-bottom: 5px; +} + +div.sidebar h3 { + font-family: Verdana, Helvetica, Arial, sans-serif; + margin: 5px 0 0 0; + font-weight: bold; + color: #333333; +} + +div.sidebar p { + font-size: 0.8em; + margin: 3px 0; +} + +div#sidebar ul.hatnav { + list-style-type: none; + padding-left: 24px; + margin-top: 0 !important; + line-height: normal !important; + list-style-image: none !important; +} + +div#sidebar ul { + list-style-type: none; +} + +div#sidebar ul.hatnav li { + text-align: right; + border: 1px gray solid; + padding-top: 2px; + padding-bottom: 2px; + background-color: #111; + color: white; +} + +div#sidebar ul.hatnav li a { + display: block; + width: 95%; + color: white; +} + +div#sidebar li img { + border: 0; + height: 16px; + width: 16px; +} + +div#sidebar ul.hatnav li.active { + background-color:#00FF00; + border: none; +} + +div#sidebar ul.hatnav li:hover { + background-color:yellow; + border: none; +} + +div#sidebar ul li.active a, div#sidebar ul li a:hover { + color: black; +} + diff --git a/theme/layouts/7/style.php b/theme/layouts/7/style.php new file mode 100755 index 0000000..3c44d1e --- /dev/null +++ b/theme/layouts/7/style.php @@ -0,0 +1,27 @@ + diff --git a/theme/sidebar.tpl b/theme/sidebar.tpl deleted file mode 100755 index e8b7425..0000000 --- a/theme/sidebar.tpl +++ /dev/null @@ -1,296 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - -

- -

- - - - -
-- cgit 1.4.1