<%-- File ==== forum_view.html Description =========== When someone clicks on a forum to view it, this page is what they get. This lists the first (some number - by default 25) posts in the forum. --%> <%site_title%>: <%cat_name%>: <%forum_name%><%if this_page > 1%>: Page <%this_page%><%endif%> <%include include_css.html%> <%body_tag%>
<%include include_header.html%>
<%hidden_form%> <%body_table%> <%title_font%> <%title_font%><%site_title%>:<%/title_font%> <%title_font%><%cat_name%>:<%/title_font%> <%forum_name%> <%if this_page > 1%>: Page <%this_page%> <%endif%> <%/title_font%> <%body_font%>
(<%forum_total%> post<%unless forum_total == 1%>s<%endunless%> in <%forum_total_threads%> thread<%unless forum_total_threads == 1%>s<%endif%>) <%/body_font%> <%if forum_total%>
<%list_table%> <%body_font%>  <% set num_page_items = $num_threads%> <% include include_paging.html%> <%/body_font%> <% if this_do eq forum_view_expanded or this_do eq forum_view_expandable%> <% endif%> <% if this_do eq forum_view_expandable or this_do eq forum_view_collapsed%> <% endif%> = 5%> disabled<%endif%> name="do=post_write;forum=<%forum_id%>" value="Post New" class="submit"> <%top_row%>     <%top_row_font%> <%if sb eq post_subject%>Sort direction  <%endif %>Subject <%/top_row_font%> <%top_row_font%> <%if sb eq post_username%>Sort direction  <%endif %>Author <%/top_row_font%> <%top_row_font%> Views <%/top_row_font%> <%top_row_font%> <%if sb eq post_replies%>Sort direction  <%endif %>Replies <%/top_row_font%> <%top_row_font%> <%if sb eq post_latest_reply%>Sort direction  <%endif %>Last Post <%/top_row_font%> <%loop post_loop%> <%-- This gives the appropriate Icon and IconAlt variables --%> <%GForum::Post::status_icon($thread_hot, $post_new, $post_replies, $new_replies)%> <%IconAlt%><% if post_locked %> This thread is locked<%GForum::Template::store_gvars(legend_locked => 1)%><% endif%> <% if post_icon%> <% else%>   <% endif%> <%body_font%> <%'    ' x $post_depth%> <% if post_replies and not post_expanded%> <% if post_depth = 0%><%-- a root post --%> <%GForum::Template::store_gvars(legend_expand_all => 1)%> Expand entire thread <% else%> <% endif%> <%GForum::Template::store_gvars(legend_expand => 1)%> Expand <% elsif post_replies and post_expanded%> <% if post_depth = 0 and not post_thread_expanded%><%-- a root post that (as far as we know) hasn't been completely expanded --%> Expand entire thread <%GForum::Template::store_gvars(legend_expand_all => 1)%> <% else%> <% endif%> Collapse <%GForum::Template::store_gvars(legend_collapse => 1)%> <% else%> <% endif%> <% if post_depth = 0%> Root post <% else%> Reply <%GForum::Template::store_gvars(legend_reply => 1)%> <% endif%> <%post_subject%> <%/body_font%> <% -- The next bit works like this: If a root ID that is not collapsed then either display a "last post" link to threaded or flat mode (depending on preferences or forum settings) -- %> <%body_font%> <% if user_id%> <%nbsp post_username%> <% else%> <%nbsp post_username%> <% endif%> <%/body_font%> <%body_font%> <%if post_depth = 0 and not post_expanded%><%post_thread_views%><%else%><%post_views%><%endif%> <%/body_font%> <%body_font%> <%post_replies%> <%/body_font%> <%body_font%> <%-- Since tags don't work properly on Netscape 4 (they spill over the edge of the cell) we have to make sure that there is no whitespace on the following line. Since Mozilla (and Netscape 6) doesn't handle lack of whitespace properly (it will break at the beginning of a tag) we still need to use the nobr anyway --%> <%if post_expanded%><% nbsp post_date%><% else%><% nbsp post_latest_reply_date%><% if post_replies %> (<%nbsp post_latest_poster%>)<% endif%><% endif%><% ifnot post_root_id%><%-- only show the jump image for root posts --%><% if post_display_is_threaded%><%GForum::Template::store_gvars(legend_jump => 1) %> Jump to last post in thread<% elseif post_display_is_flat%><%GForum::Template::store_gvars(legend_jump => 1) %> Jump to last post in thread<% endif%><% endifnot%> <%/body_font%> <%endloop%> <%body_font%>  <%include include_paging.html%> <%/body_font%> <% if this_do eq forum_view_expanded or this_do eq forum_view_expandable%> <% endif%> <% if this_do eq forum_view_expandable or this_do eq forum_view_collapsed%> <% endif%> = 5%> disabled<%endif%> name="do=post_write;forum=<%forum_id%>" value="Post New" class="submit"> <%else%>   <%list_table%> = 5%> disabled<%endunless%> name="do=post_write;forum=<%forum_id%>" value="Post New" class="submit"> <%endif%>

<%GForum::Template::retrieve_gvars%> <%if legend_hot%> <%endif%> <%if legend_new%> <%endif%> <%if legend_replies%> <%endif%> <%if legend_single%> <%endif%> <%if legend_locked%> <%endif%> <%if legend_collapse%> <%endif%> <%if legend_expand%> <%endif%> <%if legend_expand_all%> <%endif%> <%if legend_jump%> <%endif%> <%if legend_reply%> <%else%> <%endif%>
<%body_font%> LEGEND <%/body_font%>
Hot thread <%body_font%>= Hot thread<%/body_font%>
New post <%body_font%>= New post<%/body_font%>
Post with replies <%body_font%>= Post with replies<%/body_font%>
Single post <%body_font%>= Single post<%/body_font%>
Thread locked <%body_font%>= The thread is locked<%/body_font%>
Collapse <%body_font%>= Collapse this section<%/body_font%>
Expand <%body_font%>= Expand this section<%/body_font%>
Expand entire thread <%body_font%>= Expand entire thread<%/body_font%>
Jump to last post <%body_font%>= Jump to last post in thread<%/body_font%>
Root post <%body_font%>= First post in thread<%/body_font%>
Reply <%body_font%>= Reply post<%/body_font%>
Root post <%body_font%>= First post in thread<%/body_font%>


= 4%> style="border-bottom:1px solid <%dark_beige%>"<%endif%>> <%body_font%> <%if user_forum_permission >= 4%> You can post replies <%else%> You cannot post replies <%endif%> <%/body_font%> <%if user_forum_permission >= 4%> style="border-bottom:1px solid <%dark_beige%>"<%endif%>> <%body_font%> <% if current_user_id and forum_allow_attachments%> Your posts may contain attachments <% elsif not current_user_id and forum_allow_guest_attachments%> Your posts may contain attachments <% else%> Your posts may not contain attachments <% endif%> <%/body_font%> <%endif%> <%if current_user_id and user_forum_permission >= 4%> = 6%> style="border-bottom:1px solid <%dark_beige%>"<%endif%>> <%body_font%> <% if forum_allow_user_edit = 2 or forum_allow_user_edit = 3%> You can delete your posts <% if forum_edit_timeout%> for <%forum_edit_timeout%> minutes after posting them. <% endif%> <% else%> You cannot delete your posts <% endif%> <% if user_forum_permission >= 6%> <% endif%> <%endif%>
<%body_font%> FORUM RULES <%/body_font%>
<%body_font%> <%if user_forum_permission >= 5%> You can start new threads <%else%> You cannot start new threads <%endif%> <%/body_font%>
<%body_font%> You may make <%forum_style%> posts <%/body_font%>
<%body_font%> <% if forum_allow_user_edit = 1 or forum_allow_user_edit = 3%> You can edit your posts <% if forum_edit_timeout%> for <%forum_edit_timeout%> minutes after posting them. <% endif%> <% else%> You cannot edit your posts <% endif%> <%/body_font%>
<%body_font%> You can add/remove forum bans <%/body_font%>
<%body_table%>
<%hidden_form%>



<%include include_footer.html%>