# DISCUS SKIN FILE: tables1.tmpl (the old Support Forum skin)
# -------------------------------------------------------------------------------
# Originally authored by Kevin W. Paulisse, DiscusWare, LLC
# Copyright (c) 2001, DiscusWare, LLC, all rights reserved
#
# Do not edit or modify this file unless you know what you're doing, AND
# you've read the administration instructions for the Appearance Manager first.
# -------------------------------------------------------------------------------
#################################################################################
# PAGE SECTION -- THIS SECTION CONTROLS ALL SUBTOPIC/MESSAGE PAGES #
#################################################################################
<#part "page"#>
<#define $pagetitle = "$head->{me_name}"#>
#**************************************************#
# \/ DO NOT EDIT ANYTHING BETWEEN THESE MARKERS \/ #
#**************************************************#
<#if $general->{skip_headers} == 0#>
$pginfo->{headers_asstring}
$title: $head->{me_name}
<#define $onLoadJS = "initpage()"#>
<#insert part ($head->{topic_number}) "dynamic_top"#>
<#endif#>
#**************************************************#
# /\ DO NOT EDIT ANYTHING BETWEEN THESE MARKERS /\ #
#**************************************************#
#--------------------------------------------------#
# Navigation Bar #
#--------------------------------------------------#
<#if $general->{skip_nav_bar} == 0#>
<#insert part ($head->{topic_number}) "navbar"#>
$head->{me_name}
<#endif#>
#--------------------------------------------------#
# Announcement Message #
#--------------------------------------------------#
<#if $head->{param} =~ match(Announce)#>
$pginfo->{announcement}
<#endif#>
#--------------------------------------------------#
# List of Subtopics #
#--------------------------------------------------#
<#if $head->{param} =~ match(Sublist)#>
$L{SKIN_SUBTOPIC_WORD}
$L{SKIN_POSTS_WORD}
$L{SKIN_UPDATED_WORD}
<#if $general->{subtopic_raw} == 1#>
$pginfo->{sublist_raw}
<#else#>
<#foreach $subtopic (@subtopics)#>
<#if $subtopic->{type} == 0#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
\
\
<#if $GLOBAL_OPTIONS{cookie_for_new} == 1#>
\
<#endif#>
<#if $GLOBAL_OPTIONS->{subtopic_icons}#>
<#define $icon = "$@subtopic_icons->{url:name="$subtopic->{property_emot}"}"#>
<#if $icon eq ""#>
\
<#else#>
<#define $height = "$@subtopic_icons->{height:name="$subtopic->{property_emot}"}"#>
<#define $width = "$@subtopic_icons->{width:name="$subtopic->{property_emot}"}"#>
\
<#define $newwidth = "20"#>
<#math: $newwidth -= "$width"#>
<#if $newwidth > 0#>
\
<#endif#>
<#endif#>
<#endif#>
\
<#if $noqm == 0#>
<#maxchar 70/... "$subtopic->{name}"#> \
<#else#>
<#maxchar 70/... "$subtopic->{name}"#> \
<#endif#>
$subtopic->{msg_count} \
<#date $subtopic->{lastmod} format "$L{REALSHORTDATE}"#> \
\
<#if $subtopic->{descr} ne ""#>
\
\
$subtopic->{descr} \
\
<#endif#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
<#else#>
## ----- \/ Do not change \/ -----
\
## ----- /\ Do not change /\ -----
\
\
<#if $GLOBAL_OPTIONS{cookie_for_new} == 1#>
\
<#endif#>
<#if $GLOBAL_OPTIONS->{subtopic_icons}#>
<#define $icon = "$@subtopic_icons->{url:name="$subtopic->{property_emot}"}"#>
<#if $icon eq ""#>
\
<#else#>
<#define $height = "$@subtopic_icons->{height:name="$subtopic->{property_emot}"}"#>
<#define $width = "$@subtopic_icons->{width:name="$subtopic->{property_emot}"}"#>
\
<#define $newwidth = "20"#>
<#math: $newwidth -= "$width"#>
<#if $newwidth > 0#>
\
<#endif#>
<#endif#>
<#endif#>
{icon}.gif height=16 width=20> \
{target} ne ""#} target="$subtopic->{target}"{#endif#}>$subtopic->{name} \
\
<#if $subtopic->{descr} ne ""#>
\
\
$subtopic->{descr} \
<#endif#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
<#endif#>
<#endloop#>
<#endif#>
<#endif#>
#--------------------------------------------------#
# Create New Conversation #
#--------------------------------------------------#
<#if $head->{param} =~ match(Create)#>
<#endif#>
#--------------------------------------------------#
# About Message #
#--------------------------------------------------#
<#if $head->{param} =~ match(About)#>
$pginfo->{about}
<#endif#>
#--------------------------------------------------#
# Posted Messages #
#--------------------------------------------------#
<#if $head->{param} =~ match(Messages)#>
<#if $general->{messages_raw} == 1#>
$pginfo->{messages_raw}
<#else#>
<#if $#messages != 0#>
<#foreach $message (@messages)#>
<#insert part ($head->{topic_number}) "individual_message"#>
<#endloop#>
<#endif#>
<#endif#>
<#endif#>
#--------------------------------------------------#
# Add a Message Form #
#--------------------------------------------------#
<#if $head->{param} =~ match(Add)#>
<#endif#>
<#if $general->{skip_bottom} == 0#>
<#insert part ($head->{topic_number}) "dynamic_bottom"#>
<#endif#>
<#/part#>
#################################################################################
# ADD A MESSAGE BOX SECTION - CONTROLS FORMS ALLOWING ADDITION OF A MESSAGE #
#################################################################################
#--------------------------------------------------#
# Public Posting Area #
#--------------------------------------------------#
<#part "addmessage-public"#>
<#if $GLOBAL_OPTIONS->{html} == 1#>
<#endif#>
<#if $GLOBAL_OPTIONS->{active_links} == 1#>
<#endif#>
<#/part#>
#--------------------------------------------------#
# Private Posting Area #
#--------------------------------------------------#
<#part "addmessage-private"#>
<#if $GLOBAL_OPTIONS->{html} == 1#>
<#endif#>
<#if $GLOBAL_OPTIONS->{active_links} == 1#>
<#endif#>
<#/part#>
#--------------------------------------------------#
# Disabled Posting in Topic #
#--------------------------------------------------#
<#part "addmessage-disabled"#>
<#define $l = "$L{BPPOSTINGDISABLEDDESCR}"#>
<#replace "%aopen" with "" in $l#>
<#replace "%aclose" with " " in $l#>
$l
<#/part#>
#################################################################################
# INDIVIDUAL MESSAGE DISPLAY #
#################################################################################
<#part "individual_message"#>
## DO NOT CHANGE!!!
\
\
\
<#if $GLOBAL_OPTIONS{message_icons} == 1 && $general->{no_icons_shown} == 0#>
<#if $GLOBAL_OPTIONS{message_icon_top} ne "0" && $GLOBAL_OPTIONS{message_icon_top} ne ""#>
\
<#endif#>
<#if $GLOBAL_OPTIONS{message_icon_up} ne "0" && $GLOBAL_OPTIONS{message_icon_up} ne ""#>
<#if $message->{_is_first_element}#><#else#> <#endif#>\
\
<#endif#>
<#if $GLOBAL_OPTIONS{message_icon_down} ne "0" && $GLOBAL_OPTIONS{message_icon_down} ne ""#>
<#if $message->{_is_last_element}#><#else#> <#endif#>\
\
<#endif#>
<#if $GLOBAL_OPTIONS{message_icon_bottom} ne "0" && $GLOBAL_OPTIONS{message_icon_bottom} ne ""#>
\
<#endif#>
<#if $GLOBAL_OPTIONS{message_icon_link} ne "0" && $GLOBAL_OPTIONS{message_icon_link} ne ""#>
\
<#endif#>
\
<#endif#>
<#define $l = "$L{POSTBY}"#>
<#if $message->{email} ne ""#>
<#replace "%name" with "$message->{author} " in $l#>
<#else#>
<#replace "%name" with "$message->{author} " in $l#>
<#endif#>
<#replace "%date" with "<#date $message->{time} format "$L{LONGDATE}"#> " in $l#>
$l\
<#if pro#>
$L{SKIN_EDIT_WORD} \
<#endif#>
\
$message->{text}
\
<#reference array @fields from $message->{fields}#>
<#foreach $field (@fields)#>
<#if $field->{value} ne ""#>
\
<#endif#>
<#endloop#>
{|}
<#/part#>
#################################################################################
# TOPICS SECTION -- THIS SECTION CONTROLS THE TOPICS PAGE OF THE BOARD #
#################################################################################
<#part "topics"#>
Topics - $title
<#if $GLOBAL_OPTIONS{cookie_for_new}#>
<#define $onLoadJS = "cookieinit()"#>
<#endif#>
<#insert part () "dynamic_top"#>
$titlemsg->{text}
<#if $titlemsg->{hr} == 1#>
$L{SKIN_TOPIC_WORD}
$L{SKIN_POSTS_WORD}
$L{SKIN_UPDATED_WORD}
<#define $msgs = "0"#>
<#foreach $topic (@topics)#>
<#if $topic->{type} == 1#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
<#if $topic->{hidden} == 1#>
<#skip iteration#>
<#else#>
<#if $GLOBAL_OPTIONS{cookie_for_new} == 1#>
<#endif#>
$topic->{name}
$topic->{posts}
<#date $topic->{lastmod} format "$L{SHORTDATE}"#>
<#if $topic->{descr} ne ""#>
$topic->{descr}
<#endif#>
<#math: $messages += $topic->{posts}#>
<#endif#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
<#else#>
<#skip iteration#>
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
$topic->{text}
<#if $topic->{descr} ne ""#>$topic->{descr}
## ----- \/ Do not change \/ -----
## ----- /\ Do not change /\ -----
<#endif#>
<#endloop#>
$messages $L{SKIN_MESSAGES_WORD};
$topicinfo->{registered_users} $L{SKIN_REGISTERED_USERS_WORD};
$L{SKIN_RUNNING_WORD} $topicinfo->{discus_version}
<#if $mainmsg->{hr} == 1#>
$mainmsg->{text}
<#insert part () "dynamic_bottom"#>
<#/part#>
#################################################################################
# CREATE NEW CONVERSATION / START NEW THREAD SCREEN #
#################################################################################
<#part "newconv"#>
#**************************************************#
# \/ DO NOT EDIT ANYTHING BETWEEN THESE MARKERS \/ #
#**************************************************#
$L{START_NEW_THREAD}
<#define $onLoadJS = "initpage()"#>
<#define $pagetitle = "$L{START_NEW_THREAD}"#>
<#insert part ($head->{topic_number}) "dynamic_top"#>
#**************************************************#
# /\ DO NOT EDIT ANYTHING BETWEEN THESE MARKERS /\ #
#**************************************************#
<#insert part ($head->{topic_number}) "navbar"#>
<#if $general->{secure} == 1#>
$head->{me_name} :
<#else#>
$head->{me_name} :
<#endif#>
$L{START_NEW_THREAD}
<#insert part ($head->{topic_number}) "dynamic_bottom"#>
<#/part#>
#################################################################################
# NAVIGATION BAR #
#################################################################################
<#part "navbar"#>
<#if $general->{secure} == 1#>
<#if $GLOBAL_OPTIONS{alternate_topic_navbar} == 1#>
<#if $GLOBAL_OPTIONS{alternate_topic_navbar_url} ne ""#>
$title :
<#endif#>
<#else#>
$title :
<#endif#>
<#if $head->{me_number} != $head->{topic_number}#>
$head->{topic_name} :
<#endif#>
<#foreach $level (@levels)#>
<#if $level->{level_number} > 0#>
<#if $level->{level_number} != $head->{me_number}#>
$level->{level_name} :
<#endif#>
<#endif#>
<#endloop#>
<#else#>
<#if $GLOBAL_OPTIONS{alternate_topic_navbar} == 1#>
<#if $GLOBAL_OPTIONS{alternate_topic_navbar_url} ne ""#>
$title :
<#endif#>
<#else#>
$title :
<#endif#>
<#if $head->{me_number} != $head->{topic_number}#>
$head->{topic_name} :
<#endif#>
<#foreach $level (@levels)#>
<#if $level->{level_number} > 0#>
<#if $level->{level_number} != $head->{me_number}#>
$level->{level_name} :
<#endif#>
<#endif#>
<#endloop#>
<#endif#>
<#/part#>
#################################################################################
# DYNAMIC TOP AND BOTTOM OF PAGES #
#################################################################################
<#part "dynamic_top"#>
<#if $GLOBAL_OPTIONS->{charset} ne "" && $GLOBAL_OPTIONS->{charset} ne "0"#>
<#endif#>
{background} ne ""#}{||}background="$color->{background}"\
{#if $onLoadJS ne ""#}{||}onLoad="$onLoadJS"{#endif#}>
<#if $pagetitle ne ""#>
$pagetitle
<#endif#>
<#/part#>
<#part "dynamic_bottom"#>
<#insert part ($head->{topic_number}) "no_frames_buttons"#>
<#/part#>
#################################################################################
# NO FRAMES NAVIGATIONAL BUTTONS #
#################################################################################
<#part "no_frames_buttons"#>
<#if $skip_nav_bar == 0 && $general->{skip_no_frames_buttons} == 0#>
<#if $GLOBAL_OPTIONS{use_no_frames} == 1#>
<#if $general->{showadminfromhere} == 1#>
<#else#>
<#endif#>
<#endif#>
<#endif#>
<#/part#>
#################################################################################
# PREVIEW OF A POST #
#################################################################################
<#part "preview"#>
<#if $general->{create_new_conversation} == 1#>
<#define $pagetitle = "$L{START_NEW_THREAD}"#>
<#else#>
<#define $pagetitle = "$L{BPNORMALTITLE}"#>
<#endif#>
$pagetitle
<#if $GLOBAL_OPTIONS->{noload_warning} == 1#>
<#endif#>
<#insert part ($head->{topic_number}) "dynamic_top"#>
<#insert part ($head->{topic_number}) "navbar"#>
<#if $general->{secure} == 1#>
$head->{me_name} :
<#else#>
$head->{me_name} :
<#endif#>
<#if $general->{create_new_conversation} == 1#>
$L{NEW_THREAD}
<#else#>
$L{BPNORMALDISPLAY}
<#endif#>
<#insert part ($head->{topic_number}) "dynamic_bottom"#>
<#/part#>
#################################################################################
# OPTIONS MANAGER SCREEN (SKIN-SPECIFIC ITEMS) #
# You probably won't edit this unless you're going to be sharing your skin #
#################################################################################
<#part "options_screen"#>
(There are no options for this skin)
<#/part#>
#################################################################################
# INFORMATION SECTION -- THIS SECTION CONTAINS INFORMATION ABOUT THIS SKIN FILE #
#################################################################################
<#part "info"#>
Name Tables I
Author DiscusWare, LLC
Copyright Copyright © 2002, DiscusWare, LLC, all rights reserved
Description (Formerly the "Support Forum" skin) -- With this skin applied, your board will look very much like the version 3.10 support forum. This skin features topics and subtopics in tables and messages on the text page.
*COLOR_bgcolor #ffffff
*COLOR_text #000000
*COLOR_link #0000ff
*COLOR_vlink #800080
*COLOR_alink #ff0000
*COLOR_face Verdana,Arial,Helvetica
*COLOR_size 2
*COLOR_image
*alt_color_1 #0000a0
_alt_color_1 Header table backgrounds
*alt_color_2 #f7f7f7
_alt_color_2 Header table texts
*alt_color_3 #f7f7f7
_alt_color_3 Message header table background
*alt_color_4 #d0d0d0
_alt_color_4 Message header table background
*alt_color_5 #0000aa
_alt_color_5 Color of the date in message headers
*alt_color_6 #000000
_alt_color_6 Color of message header border
*alt_color_7 #f7f7f7
_alt_color_7 Various table backgrounds
*alt_color_8 #cccccc
_alt_color_8 Various table backgrounds
*alt_color_9 #f7f7f7
_alt_color_9 Color on various screens
*alt_color_10 #cccccc
_alt_color_10 Color on various screens
<#/part#>
#################################################################################
# JAVASCRIPT SECTION -- DECLARATION OF SUBROUTINES USED IN COOKIE FUNCTIONS #
# You should not need to modify this section unless you have a strange server! #
#################################################################################
<#part "cookie_icons_offset"#>
<#if $GLOBAL_OPTIONS{cookie_for_new} == 1#>
<#define $onLoadJS = "cookie_icons_offset()"#>
<#endif#>
<#/part#>
<#part "cookie_icons"#>
function setcookie(name, value, store) {
if (store >= 1) {
var expire = new Date ();
if (store == 1) {
expire.setTime (expire.getTime() + (365*24*60*60*1000));
}
if (store == 2) {
expire.setTime (expire.getTime() + (1*24*60*60*1000));
}
} else {
var expire = null;
}
document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : "; expires=" + expire.toGMTString()) + "; path=/";
}
function cookieinit() {
var last_time = readcookie("lastvisit$COOKIE_ID");
var last_session = readcookie("lastsession$COOKIE_ID");
var offset = readcookie("offset$COOKIE_ID");
var now = new Date ();
var browser_time = now.getTime();
setcookie("lastvisit$COOKIE_ID", browser_time, 1);
var server_now = "$DYNAMIC->{server_time}";
if (server_now != "") {
offset = browser_time - (1000*server_now);
setcookie("offset$COOKIE_ID", offset, 1);
}
if (last_time == "" || last_time == null || last_time == 0) {
last_time = browser_time + (3*24*60*60*365*1000);
}
if (last_session == null || last_session == 0 || last_session == "") {
setcookie("lastsession$COOKIE_ID", last_time, 0);
last_session = last_time;
}
if (browser_time - last_time > (15 * 60 * 1000)) {
setcookie("lastsession$COOKIE_ID", last_time, 0);
last_session = last_time;
}
# Generally the following is not needed. However, give it a try
# if the icons are always off by a certain number of hours.
var server_gmt_offset = 0;
# var server_gmt_offset = "<#gmtoffset#>";
var compare_time = (last_session - offset) / 1000;
if (document.images) {
img_new = new Image();
# Set this to something else if you want.
<#if $GLOBAL_OPTIONS->{new_icon_choice} ne ""#>
img_new.src = "$GLOBAL_OPTIONS->{new_icon_choice}";
<#else#>
img_new.src = "$html_url/clipart/new.gif";
<#endif#>
<#define $new_img_height = "11"#>
<#define $new_img_width = "28"#>
}
## } is missing here, as topics page or regular page fills in information
## into the cookieinit() function and then closes the function.
<#/part#>
<#part "readcookie"#>
function readcookie(name) {
var i = 0; var lookfor = name + "="
while (i < document.cookie.length) {
var j = i + lookfor.length
if (document.cookie.substring(i,j) == lookfor) {
var endstr = document.cookie.indexOf(";", j)
if (endstr == -1) {
endstr = document.cookie.length
}
return unescape(document.cookie.substring(j, endstr))
}
i = document.cookie.indexOf(" ", i) + 1
if (i == 0) {
break
}
}
return ""
}
<#/part#>
#################################################################################
# INITIALIZATION SECTION #
# This code is automatically read (once) before any part of the skin. Only #
# definitions (array, variables, etc.) are permitted in this section. #
#################################################################################
<#part "INIT"#>
<#define array @statuses (_index, text)#>
1 $L{USER_STATUS_1}
2 <#if $GLOBAL_OPTIONS{status2} eq ""#>$L{USER_STATUS_2}<#else#>$GLOBAL_OPTIONS{status2}<#endif#>
3 <#if $GLOBAL_OPTIONS{status3} eq ""#>$L{USER_STATUS_3}<#else#>$GLOBAL_OPTIONS{status3}<#endif#>
4 <#if $GLOBAL_OPTIONS{status4} eq ""#>$L{USER_STATUS_4}<#else#>$GLOBAL_OPTIONS{status4}<#endif#>
5 <#if $GLOBAL_OPTIONS{status5} eq ""#>$L{USER_STATUS_5}<#else#>$GLOBAL_OPTIONS{status5}<#endif#>
6 <#if $GLOBAL_OPTIONS{status6} eq ""#>$L{USER_STATUS_6}<#else#>$GLOBAL_OPTIONS{status6}<#endif#>
7 <#if $GLOBAL_OPTIONS{status7} eq ""#>$L{USER_STATUS_7}<#else#>$GLOBAL_OPTIONS{status7}<#endif#>
8 <#if $GLOBAL_OPTIONS{status8} eq ""#>$L{USER_STATUS_8}<#else#>$GLOBAL_OPTIONS{status8}<#endif#>
9 <#if $GLOBAL_OPTIONS{status9} eq ""#>$L{USER_STATUS_9}<#else#>$GLOBAL_OPTIONS{status9}<#endif#>
10 <#if $GLOBAL_OPTIONS{status10} eq ""#>$L{USER_STATUS_10}<#else#>$GLOBAL_OPTIONS{status10}<#endif#>
11 $L{USER_STATUS_1}
<#/define#>
<#define array @subtopic_icons (name, url, height, width)#>
happy $html_url/clipart/happy.gif 15 15
sad $html_url/clipart/sad.gif 15 15
angry $html_url/clipart/angry.gif 15 15
proud $html_url/clipart/proud.gif 15 15
blush $html_url/clipart/blush.gif 15 15
wink $html_url/clipart/wink.gif 15 15
laugh $html_url/clipart/lol.gif 15 15
talker $html_url/clipart/talker.gif 15 15
uhoh $html_url/clipart/uhoh.gif 15 15
yawn $html_url/clipart/yawn.gif 15 15
biggrin $html_url/clipart/biggrin.gif 15 15
kiss $html_url/clipart/kiss.gif 15 15
rofl $html_url/clipart/rofl.gif 15 15
<#/define#>
<#/part#>