Skip to content
Snippets Groups Projects
Commit 6bdbb663 authored by runemaster's avatar runemaster
Browse files

Sublinks improvments ...

parent fc10fb6a
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
template.leftnav=new Array; template.leftnav=new Array;
template.sublinks=new Array;
if(user.number==0 || user.security.restrictions&UFLAG_G) if(user.number==0 || user.security.restrictions&UFLAG_G)
...@@ -31,19 +32,14 @@ else ...@@ -31,19 +32,14 @@ else
if(user.number || (this.login!=undefined && system.matchuser("Guest"))) if(user.number || (this.login!=undefined && system.matchuser("Guest")))
template.leftnav.push({html: '<li><a href="/msgs">Message Groups</a></li>' }); 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'))
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')) { do_sublinks();
for(s in msg_area.grp_list)
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(user.number==0 || user.security.restrictions&UFLAG_G) { if(user.number==0 || user.security.restrictions&UFLAG_G) {
} }
else else
template.leftnav.push({html: '<li><a href="/msgs/choosegroup.ssjs">Set Message Scan</a></li>' }); template.leftnav.push({html: '<li><a href="/msgs/choosegroup.ssjs">Set Message Scan</a></li>' });
if( sub != 'mail' && (http_request.virtual_path == '/msgs/choosesubs.ssjs' || http_request.virtual_path == '/msgs/updatesubs.ssjs')) { if( sub != 'mail' && (http_request.virtual_path == '/msgs/choosesubs.ssjs' || http_request.virtual_path == '/msgs/updatesubs.ssjs'))
for(s in msg_area.grp_list) do_sublinks_settings();
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>' });
}
if(user.number==0 || user.security.restrictions&UFLAG_G) { if(user.number==0 || user.security.restrictions&UFLAG_G) {
} }
else else
...@@ -51,3 +47,15 @@ else ...@@ -51,3 +47,15 @@ else
template.leftnav.push({ html: '<li><a href="' + template.ftp_url + template.ftpqwk + '">Download QWK</a></li>' }); template.leftnav.push({ html: '<li><a href="' + template.ftp_url + template.ftpqwk + '">Download QWK</a></li>' });
write_template("leftnav.inc"); write_template("leftnav.inc");
function do_sublinks() {
for(s in msg_area.grp_list)
template.leftnav.push({html: '<li><a style="color: #AACCFF; margin-left: 15px; margin-right: 15px; font-size: 11px;" onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'#aaccff\'" href="/msgs/subs.ssjs?msg_grp='+msg_area.grp_list[s].name+'">'+msg_area.grp_list[s].description+'</a></li>' });
return(template.sublinks);
}
function do_sublinks_settings() {
for(s in msg_area.grp_list)
template.leftnav.push({html: '<li><a style="color: #AACCFF; margin-left: 15px; margin-right: 15px; font-size: 11px;" onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'#aaccff\'" href="/msgs/choosesubs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' });
return(template.sublinks);
}
\ No newline at end of file
...@@ -102,52 +102,20 @@ html>body #navcontainer { ...@@ -102,52 +102,20 @@ html>body #navcontainer {
div#navigation ul { div#navigation ul {
list-style-type: none; list-style-type: none;
padding: 0;
margin: 0; margin: 0;
padding-left: 0;
} }
div#navigation ul li { div#navigation li {
margin-top: 4px; margin-top: 4px;
margin-bottom: 4px; margin-bottom: 4px;
padding: 0;
height: 0px;
} }
.sectionSubLinks { #sublinks a {
margin-left: 25px; color: white;
margin-top: 4px;
margin-bottom: 4px;
color: #CC3399;
voice-family: "\"}\"";
voice-family:inherit;
margin-top: 0px;
margin-bottom: 0px;
}
ul.sectionSubLinks {
margin-top: 4px;
margin-bottom: 4px;
voice-family: "\"}\"";
voice-family:inherit;
margin-top: 0px;
margin-bottom: 0px;
}
li.sectionSubLinks {
margin-top: 4px;
margin-bottom: 4px;
voice-family: "\"}\"";
voice-family:inherit;
margin-top: 0px;
margin-bottom: 0px;
}
a.sectionSubLinks {
color: #CC3399;
} }
html>body #navigation ul li { html>body #navigation ul li {
height: 25px;
} }
#navigation ul li a { #navigation ul li a {
...@@ -164,7 +132,7 @@ html>body #navcontainer { ...@@ -164,7 +132,7 @@ html>body #navcontainer {
border-right: solid 1px black; border-right: solid 1px black;
} }
#navigation ul li a:hover { #navigation a:hover {
color: #fff; color: #fff;
text-decoration: underline; text-decoration: underline;
border-top: solid 1px black; border-top: solid 1px black;
...@@ -173,6 +141,10 @@ html>body #navcontainer { ...@@ -173,6 +141,10 @@ html>body #navcontainer {
border-right: solid 1px white; border-right: solid 1px white;
} }
#sublinks {
color: white;
}
div#more_invisible { div#more_invisible {
width: 200px; width: 200px;
float: right; float: right;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment