diff --git a/web/lib/template.ssjs b/web/lib/template.ssjs index 5bec1eab91dfa2d019aad99ebf81228d558afeca..bb6c2a713c24e9081f4fbe7ee433d92bb3f1c37e 100644 --- a/web/lib/template.ssjs +++ b/web/lib/template.ssjs @@ -27,6 +27,7 @@ load("sbbsdefs.js"); // UFLAG_G load("../web/lib/html_themes.ssjs"); if(http_request.virtual_path=="/nodelist.ssjs") load("../web/lib/main_nodelist.ssjs"); // Who's Online Listing +http_reply.fast=true; load("../web/lib/leftnav_nodelist.ssjs"); // Left Side Navigation Node Listing diff --git a/web/lib/topnav_html.ssjs b/web/lib/topnav_html.ssjs new file mode 100644 index 0000000000000000000000000000000000000000..286168a92f277dc601c0a5704049e72d0ae6e2a1 --- /dev/null +++ b/web/lib/topnav_html.ssjs @@ -0,0 +1,100 @@ +template.topnav=new Array; + +if(http_request.virtual_path=="/index.ssjs" || http_request.virtual_path=="/") + template.topnav.push({html: '<span class="tlink">Home</span>'}); +else + template.topnav.push({html: '<a class="tlink" href="/">Home</a>'}); + +if(http_request.virtual_path=="/members/userlist.ssjs") + template.topnav.push({html: '<span class="tlink">User List</span>'}); + +if(http_request.virtual_path=="/newuser.ssjs") + template.topnav.push({html: '<span class="tlink">Create New User</span>'}); + +if(http_request.virtual_path=="/members/info.ssjs") + template.topnav.push({html: '<span class="tlink">Information Menu</span>'}); +else if(http_request.virtual_path=="/members/userstats.ssjs" || http_request.virtual_path=="/members/sysinfo.ssjs") + template.topnav.push({html: '<a class="tlink" href="/members/info.ssjs">Information Menu</a>'}); + +if(http_request.virtual_path=="/members/userstats.ssjs") + template.topnav.push({html: '<span class="tlink">Your Information</span>'}); + +if(http_request.virtual_path=="/members/sysinfo.ssjs") + template.topnav.push({html: '<span class="tlink">System Information</span>'}); + +if(http_request.virtual_path=="/members/themes.ssjs") + template.topnav.push({html: '<span class="tlink">HTML Themes</span>'}); + +if(http_request.virtual_path=="/msgs/index.ssjs" || http_request.virtual_path=="/msgs") + template.topnav.push({html: '<span class="tlink">Message Groups</span>'}); + +if(http_request.virtual_path=="/msgs/subs.ssjs") + template.topnav.push({html: '<a class="tlink" href="/msgs">Message Groups</a><span class="tlink">%%group:description%%</span>'}); + +if(http_request.virtual_path=="/msgs/subinfo.ssjs" && sub!='mail') + template.topnav.push({html: '<a class="tlink" href="/msgs">Message Groups</a><a class="tlink" href="/msgs/subs.ssjs?msg_grp='+template.sub.name+'">%%sub:description%%</a><span class="tlink">Sub Information</span>'}); + +if(http_request.virtual_path=="/msgs/msgs.ssjs" && sub!='mail') + template.topnav.push({html: '<a class="tlink" href="index.ssjs">Message Groups</a><a class="tlink" href="subs.ssjs?msg_grp='+template.group.name+'">'+template.group.description+'</a><a class="tlink" href="subinfo.ssjs?msg_sub=^^sub:code^^" title="Click for Sub Info">%%sub:description%%</a>'}); +else if(http_request.virtual_path=="/msgs/msgs.ssjs") + template.topnav.push({html: '<a class="tlink" href="subinfo.ssjs?msg_sub=^^sub:code^^" title="Click for Sub Info">%%sub:description%%</a>'}); + +if(http_request.virtual_path=="/msgs/msg.ssjs" && sub!='mail') + template.topnav.push({html: '<a class="tlink" href="index.ssjs">Message Groups</a><a class="tlink" href="subs.ssjs?msg_grp='+template.group.name+'">'+template.group.description+'</a><a class="tlink" href="msgs.ssjs?msg_sub=^^sub:code^^">%%sub:description%%</a><span class="tlink">Reading Messages</span>'}); +else if(http_request.virtual_path=="/msgs/msg.ssjs") + template.topnav.push({html: '<a class="tlink" href="msgs.ssjs?msg_sub=^^sub:code^^">%%sub:description%%</a><span class="tlink">Reading E-Mail</span>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<a href="/msgs" class="tlink">Message Groups</a>'}); +else if(http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<a class="tlink" href="/msgs/msgs.ssjs?msg_sub=mail">Personal E-Mail</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<a class="tlink" href="subs.ssjs?msg_grp='+template.group.name+'">'+template.group.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<a class="tlink" href="msgs.ssjs?msg_grp='+template.sub.name+'">'+template.sub.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<span class="tlink">Posting Message</span>'}); +else if(http_request.virtual_path=="/msgs/post.ssjs") + template.topnav.push({html: '<span class="tlink">Creating E-Mail</span>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<a href="/msgs" class="tlink">Message Groups</a>'}); +else if(http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<a class="tlink" href="/msgs/msgs.ssjs?msg_sub=mail">Personal E-Mail</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<a class="tlink" href="subs.ssjs?msg_grp='+template.group.name+'">'+template.group.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<a class="tlink" href="msgs.ssjs?msg_grp='+template.sub.name+'">'+template.sub.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<span class="tlink">Replying to Message</span>'}); +else if(http_request.virtual_path=="/msgs/reply.ssjs") + template.topnav.push({html: '<span class="tlink">Replying to E-Mail</span>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/management.ssjs") + template.topnav.push({html: '<span class="tlink">Deleting Message</span>'}); +else if(http_request.virtual_path=="/msgs/management.ssjs") + template.topnav.push({html: '<span class="tlink" >Deleting E-Mail</span>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<a href="/msgs" class="tlink">Message Groups</a>'}); +else if(http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<a class="tlink" href="/msgs/msgs.ssjs?msg_sub=mail">Personal E-Mail</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<a class="tlink" href="subs.ssjs?msg_grp='+template.group.name+'">'+template.group.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<a class="tlink" href="msgs.ssjs?msg_grp='+template.sub.name+'">'+template.sub.description+'</a>'}); + +if(sub!='mail' && http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<span class="tlink">Posted Message</span>'}); +else if(http_request.virtual_path=="/msgs/savemsg.ssjs") + template.topnav.push({html: '<span class="tlink">Sent E-Mail</span>'}); + +write_template("topnav.inc");