implementation of the "bozo filter" on a topic level, including a topic-level
"Manage" screen (to hang "Rename Topic" from later, too).
This commit is contained in:
71
web/format/manage_topic.jsp
Normal file
71
web/format/manage_topic.jsp
Normal file
@@ -0,0 +1,71 @@
|
||||
<%--
|
||||
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
(the "License"); you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing rights and limitations under the License.
|
||||
|
||||
The Original Code is the Venice Web Communities System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
--%>
|
||||
<%@ page import = "java.util.*" %>
|
||||
<%@ page import = "com.silverwrist.util.StringUtil" %>
|
||||
<%@ page import = "com.silverwrist.venice.core.*" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
|
||||
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
|
||||
<%
|
||||
ManageTopic data = ManageTopic.retrieve(request);
|
||||
Variables.failIfNull(data);
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Managing topic #<%= data.getTopicNumber() %>
|
||||
in conference #<%= data.getConfID() %> --><% } %>
|
||||
<% rdat.writeContentHeader(out,"Manage Topic:",data.getTopicName()); %>
|
||||
|
||||
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator()) %>">Return to Topic</A>
|
||||
</FONT><P>
|
||||
|
||||
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
||||
<DIV ALIGN="LEFT"><B>Filtered users:</B></DIV>
|
||||
<% if (data.getNumBozos()>0) { %>
|
||||
<TABLE BORDER=0 ALIGN=CENTER CELLPADDING=0 CELLSPACING=2>
|
||||
<% Iterator it = data.getBozosIterator(); %>
|
||||
<% while (it.hasNext()) { %>
|
||||
<% UserProfile prof = (UserProfile)(it.next()); %>
|
||||
<TR>
|
||||
<TD ALIGN=CENTER WIDTH=16>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator() + "&cmd=RB&u="
|
||||
+ prof.getUID()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16
|
||||
HEIGHT=16></A>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
||||
<<A HREF="<%= rdat.getEncodedServletPath("user/" + prof.getUserName()) %>"><%= prof.getUserName() %></A>>
|
||||
<EM>(<%= StringUtil.encodeHTML(prof.getGivenName()) %>
|
||||
<%= StringUtil.encodeHTML(prof.getFamilyName()) %>)</EM>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
<% } // end while %>
|
||||
</TABLE><P>
|
||||
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=2 CELLSPACING=0>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ALIGN=CENTER WIDTH=16>
|
||||
<IMG SRC="<%= rdat.getFullImagePath("icn_x.gif") %>" ALT="Remove" BORDER=0 WIDTH=16 HEIGHT=16>
|
||||
</TD>
|
||||
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
||||
Click this symbol to cease filtering this user in this topic.
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<% } else { %>
|
||||
<DIV ALIGN="CENTER"><EM>No users currently filtered.</EM></DIV>
|
||||
<% } // end if %>
|
||||
</FONT>
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
|
||||
<TR VALIGN=BOTTOM>
|
||||
<TD NOWRAP ALIGN=LEFT CLASS="content">
|
||||
<TD NOWRAP ALIGN=LEFT COLSPAN=2 CLASS="content">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Topic user controls section --><% } %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getConfLocator()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_topic_list.gif") %>" ALT="Topic List" WIDTH=80 HEIGHT=24
|
||||
@@ -68,7 +68,13 @@
|
||||
|
||||
<% } // end if %>
|
||||
<% } // end if %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
|
||||
BORDER=0></A>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN=BOTTOM>
|
||||
<TD> </TD>
|
||||
<TD NOWRAP ALIGN=RIGHT CLASS="content">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Topic admin controls section --><% } %>
|
||||
<% if (data.canFreezeTopic()) { %>
|
||||
@@ -103,7 +109,6 @@
|
||||
<% } // end if %>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR><TD COLSPAN=2> </TD></TR>
|
||||
<TR VALIGN=BOTTOM>
|
||||
<TD NOWRAP ALIGN=LEFT CLASS="content">
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Go box --><% } %>
|
||||
@@ -159,7 +164,7 @@
|
||||
<% if (data.showAdvanced()) { %>
|
||||
<BR>
|
||||
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR VALIGN=TOP><TD NOWRAP ALIGN=LEFT CLASS="content">
|
||||
<% } // end if %>
|
||||
<% } // end if (showing advanced controls) %>
|
||||
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
|
||||
+ msg.getPostNumber()) %>"><%= msg.getPostNumber() %></A> of
|
||||
@@ -168,26 +173,40 @@
|
||||
<% if (data.showAdvanced() && msg.isHidden()) { %>
|
||||
<B><EM>(Hidden)</EM></B>
|
||||
<% } // end if %>
|
||||
<BR>
|
||||
<B><%= msg.getPseud() %></B>
|
||||
(<EM>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
|
||||
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
|
||||
</EM>)
|
||||
<% if (msg.hasAttachment()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("attachment?" + data.getConfLocator() + "&msg="
|
||||
+ msg.getPostID()) %>"
|
||||
<% if (data.displayAttachmentInNewWindow(msg)) { %>TARGET="_blank"<% } %> ><IMG
|
||||
SRC="<%= rdat.getFullImagePath("attachment.gif") %>"
|
||||
ALT="(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)"
|
||||
WIDTH=16 HEIGHT=16 BORDER=0></A>
|
||||
<% if (data.showAdvanced() && data.showBozoFilteredIndicator(msg.getCreatorUID())) { %>
|
||||
<B><EM>(User filtered;
|
||||
<A HREF="<%= rdat.getEncodedServletPath("postops?" + data.getLocator() + "&msg="
|
||||
+ msg.getPostNumber() + "&cmd=BN") %>">remove filter</A>)
|
||||
</EM></B>
|
||||
<% } // end if %>
|
||||
<% if (!(data.bozoFilterUser(msg.getCreatorUID()))) { %>
|
||||
<BR>
|
||||
<B><%= msg.getPseud() %></B>
|
||||
(<EM>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
|
||||
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
|
||||
</EM>)
|
||||
<% if (msg.hasAttachment()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("attachment?" + data.getConfLocator() + "&msg="
|
||||
+ msg.getPostID()) %>"
|
||||
<% if (data.displayAttachmentInNewWindow(msg)) { %>TARGET="_blank"<% } %> ><IMG
|
||||
SRC="<%= rdat.getFullImagePath("attachment.gif") %>"
|
||||
ALT="(Attachment <%= msg.getAttachmentFilename() %> - <%= msg.getAttachmentLength() %> bytes)"
|
||||
WIDTH=16 HEIGHT=16 BORDER=0></A>
|
||||
<% } // end if %>
|
||||
<% } // end if (message not bozo-filtered) %>
|
||||
</FONT><P><FONT COLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_FOREGROUND) %>">
|
||||
<% if (msg.isScribbled()) { %>
|
||||
<SPAN CLASS="post"><TT><EM><B>
|
||||
(Scribbled by <%= data.getMessageBodyText(msg) %> on
|
||||
<%= rdat.formatDateForDisplay(msg.getScribbleDate()) %>)
|
||||
</B></EM></TT></SPAN><P>
|
||||
<% } else if (data.bozoFilterUser(msg.getCreatorUID())) { %>
|
||||
<SPAN CLASS="post"><TT><EM><B>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&nbz=1&p1="
|
||||
+ msg.getPostNumber()) %>">(Message from Filtered User:
|
||||
<%= msg.getNumLines() %> <% if (msg.getNumLines()==1) { %>Line<% } else { %>Lines<% } %>)</A>
|
||||
</B></EM></TT></SPAN><P>
|
||||
<% } else if (msg.isHidden() && !(data.showAdvanced())) { %>
|
||||
<SPAN CLASS="post"><TT><EM><B>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("confdisp?" + data.getLocator() + "&shac=1&p1="
|
||||
@@ -217,6 +236,11 @@
|
||||
BORDER=0></A><P>
|
||||
<% } // end if (can scribble) %>
|
||||
<% } // end if (not already scribbled) %>
|
||||
<% if (data.showFilterButton(msg.getCreatorUID())) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=BY") %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_filter_user.gif") %>" ALT="Filter User" WIDTH=80 HEIGHT=24
|
||||
BORDER=0></A><P>
|
||||
<% } // end if (can bozo filter) %>
|
||||
<% if (msg.canNuke()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=NUKE") %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_nuke.gif") %>" ALT="Nuke" WIDTH=80 HEIGHT=24
|
||||
@@ -290,6 +314,9 @@
|
||||
|
||||
<% } // end if %>
|
||||
<% } // end if %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("topicops?" + data.getLocator()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_manage.gif") %>" ALT="Manage" WIDTH=80 HEIGHT=24
|
||||
BORDER=0></A>
|
||||
</TD>
|
||||
<TD NOWRAP ALIGN=RIGHT> </TD>
|
||||
</TR>
|
||||
|
||||
BIN
web/images/bn_filter_user.gif
Normal file
BIN
web/images/bn_filter_user.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 937 B |
Reference in New Issue
Block a user