From 6a1d5b60e6ec541a36727b84b71168f62221f7d7 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 13:46:55 -0400 Subject: Added IE support Because IE doesn't support XHTML, Four Island checks to see if the browser is IE and if it is, changes the Content Type to HTML. It also displays a warning at the top of the screen telling the user that their browsing experience will be much better with a better browser. --- includes/header.php | 147 +++++++++---------- index.php | 123 ++++++++-------- theme/css/ie.css | 13 ++ theme/header.tpl | 396 ++++++++++++++++++++++++++-------------------------- 4 files changed, 352 insertions(+), 327 deletions(-) create mode 100644 theme/css/ie.css diff --git a/includes/header.php b/includes/header.php index 5a6b8e2..ae39bad 100755 --- a/includes/header.php +++ b/includes/header.php @@ -1,71 +1,76 @@ -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()); - -$headerTemp->display(); - -?> +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?'); +} + +$headerTemp->display(); + +?> diff --git a/index.php b/index.php index 58b66d2..77b4944 100755 --- a/index.php +++ b/index.php @@ -1,58 +1,65 @@ - + diff --git a/theme/css/ie.css b/theme/css/ie.css new file mode 100644 index 0000000..6468b75 --- /dev/null +++ b/theme/css/ie.css @@ -0,0 +1,13 @@ +div#flash { + display: block; +} + +div#window { + width: 100%; + background-color: #00ff00; + background-image: none; +} + +div#actual-content { + background-color: #00ff00; +} \ No newline at end of file diff --git a/theme/header.tpl b/theme/header.tpl index 64cc902..24c9b6b 100644 --- a/theme/header.tpl +++ b/theme/header.tpl @@ -1,198 +1,198 @@ - - - - - <!--EXTRATITLE-->Four Island - - - - - - - - - - - - - -
- - - -
- - -
- - -
-
+ + + + + <!--EXTRATITLE-->Four Island + + + + + + + + + + + + + +
+ + + +
+ + +
+ + +
+
-- cgit 1.4.1