From d23ac847c395239e0be0c25b515d72a94a79b216 Mon Sep 17 00:00:00 2001 From: runemaster <> Date: Thu, 2 Feb 2006 04:51:48 +0000 Subject: [PATCH] IE 7 Hacks ... why I am not surprised this is required. --- web/lib/global_defs.ssjs | 2 +- web/lib/leftnav_html.ssjs | 17 ++++++----------- web/root/default.css | 18 ++++++++++++++---- web/templates/default/header.inc | 16 ++++++++++++++++ web/templates/default/leftnav.inc | 2 +- 5 files changed, 38 insertions(+), 17 deletions(-) diff --git a/web/lib/global_defs.ssjs b/web/lib/global_defs.ssjs index a35fdfd3e9..b7287775fb 100644 --- a/web/lib/global_defs.ssjs +++ b/web/lib/global_defs.ssjs @@ -20,7 +20,7 @@ var show_ip=true; /* If you want to remove QWk FTP downloads */ /* change this to false. Moved from leftnav_html.ssjs */ -var doQWK = false; +var doQWK = true; /* End of User Changable Variables */ diff --git a/web/lib/leftnav_html.ssjs b/web/lib/leftnav_html.ssjs index ff60fe73a3..81dc3228e5 100644 --- a/web/lib/leftnav_html.ssjs +++ b/web/lib/leftnav_html.ssjs @@ -15,7 +15,7 @@ host=host.slice(0,port); template.ftp_url += host; if(ftp_port!=21) - template.ftp_url += ":" + ftp_port; + template.ftp_url += ftp_port; template.ftpidx ="/00index.html?$" + new Date().valueOf().toString(36); template.ftpqwk = "/" + system.qwk_id.toLowerCase() + ".qwk"; } @@ -31,21 +31,16 @@ else if(user.number || (this.login!=undefined && system.matchuser("Guest"))) template.leftnav.push({html: '<li><a href="/msgs">Message Groups</a></li>' }); - + /* - + if( sub != 'mail' && (http_request.virtual_path == '/msgs/msg.ssjs' || http_request.virtual_path == '/msgs/msgs.ssjs' || http_request.virtual_path == '/msgs/post.ssjs' || http_request.virtual_path == '/msgs/reply.ssjs' || http_request.virtual_path == '/msgs/savemsg.ssjs' || http_request.virtual_path == '/msgs/subinfo.ssjs' || http_request.virtual_path == '/msgs/subs.ssjs')) { - template.leftnav.push({ html: '<span class="sectionSubLinks">' }); for(s in msg_area.grp_list) - template.leftnav.push({html: '<li class="sectionSubLinks"><a class="sectionSubLinks" href="/msgs/subs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' }); - template.leftnav.push({ html: '</span>' }); + template.leftnav.push({html: '<li><a href="/msgs/subs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' }); } - if( sub != 'mail' && (http_request.virtual_path == '/msgs/choosesubs.ssjs' || http_request.virtual_path == '/msgs/updatesubs.ssjs')) { - template.leftnav.push({ html: '<span class="sectionSubLinks">' }); for(s in msg_area.grp_list) - template.leftnav.push({html: '<li class="sectionSubLinks"><a class="sectionSubLinks" href="/msgs/choosesubs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' }); - template.leftnav.push({ html: '</span>' }); + template.leftnav.push({html: '<li><a href="/msgs/choosesubs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' }); } */ @@ -58,7 +53,7 @@ if(user.number==0 || user.security.restrictions&UFLAG_G) { } else if(doQWK) - template.leftnav.push({ html: '<li><a href="' + template.ftp_url + template.ftpqwk + '">Download QWK Packet</a></li>' }); + template.leftnav.push({ html: '<li><!--[if gte IE 7]><span style="margin-left: 39px;"><![endif]--><a href="' + template.ftp_url + template.ftpqwk + '">Download QWK</a><!--[if gte IE 7]></span><![endif]--></li>' }); // template.leftnav.push({ html: '</ul>' }); write_template("leftnav.inc"); \ No newline at end of file diff --git a/web/root/default.css b/web/root/default.css index d327bd7ba6..b2ca6c1bb3 100644 --- a/web/root/default.css +++ b/web/root/default.css @@ -2,6 +2,7 @@ /* This is the default CSS file */ + body { font-size:12px;; font-family: Arial,sans-serif; @@ -85,7 +86,7 @@ td.ltn { text-align:left; width:1%; background-color: #cccccc; - background-image: url(/images/default/tnav_bg.gif); + background-image: url("/images/default/tnav_bg.gif"); } td.tn { @@ -223,7 +224,7 @@ a.tlink2:hover { list-style: none; } -#sectionLinks a:link, #sectionLinks a:visited { +#sectionLinks a:link { display: block; text-align: left; border-top: 1px solid #ffffff; @@ -240,6 +241,16 @@ a.tlink2:hover { text-decoration:none; } +#sectionLinks a:visited { + display: block; + border-top: 1px solid #ffffff; + border-left: 1px solid #ffffff; + border-bottom: 1px solid #000000; + border-right: 1px solid #000000; + padding: 3px 3px 3px 10px; + background-image: url("/images/default/bg_nav.jpg"); +} + html>body #sectionLinks a:link, #sectionLinks a:visited { margin-left: -39px; } @@ -266,8 +277,7 @@ html>body #sectionLinks a:link, #sectionLinks a:visited { border-left: 1px solid #ffffff; border-bottom: 1px solid #000000; border-right: 1px solid #000000; - font-weight: bold; - font-size:smaller; + font-size:10px;; padding: 3px 30px 3px 10px; color: #7788ff; text-decoration: none; diff --git a/web/templates/default/header.inc b/web/templates/default/header.inc index d21c28831e..e8dcd2d15d 100644 --- a/web/templates/default/header.inc +++ b/web/templates/default/header.inc @@ -4,16 +4,32 @@ <head> <title>%%title%%</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + @@JS:if(http_request.virtual_path=="/nodelist.ssjs")'<meta http-equiv="refresh" content="30" />';@@ <link rel="stylesheet" href="@@Theme_CSS_File@@" type="text/css" /> </head> <body> +<!--[if gte IE 7]> +<style type="text/css"> +#sectionLinks a:link, #sectionLinks a:visited { + margin-left: 0px; + margin-right: 13px; +} +#sectionLinks a:active { + margin-left: -39px; + margin-right: 13px; +} +</style> +<![endif]--> + <!-- Remove comment tages for text System Name below --> <!-- <h1 id="siteName">@@system:name@@</h1> --> <!-- Comment out or delete below <span> for no logo display --> + + @@name_logo@@ <div id="Greeting"> diff --git a/web/templates/default/leftnav.inc b/web/templates/default/leftnav.inc index 6b1855fa59..4c5b773a26 100644 --- a/web/templates/default/leftnav.inc +++ b/web/templates/default/leftnav.inc @@ -12,7 +12,7 @@ <td valign="top" width="1%"> <div id="pageNav"> <div id="sectionLinks"> - <ul><li><a href="/nodelist.ssjs">Who's Online</a></li><<REPEAT leftnav>>@@leftnav:html@@<<END REPEAT leftnav>><li><a href="@@ftp_url@@%%ftpidx%%">File Libraries</a></li></ul> + <ul><li><a href="/nodelist.ssjs">Who's Online</a></li><<REPEAT leftnav>>@@leftnav:html@@<<END REPEAT leftnav>><li><!--[if gte IE 7]><span style="margin-left: 39px;"><![endif]--><a href="@@ftp_url@@%%ftpidx%%">File Libraries</a><!--[if gte IE 7]></span><![endif]--></li></ul> </div> <!-- start Nodelisting --> -- GitLab