added one more word to the dictionary, fixed a problem with display of

SIG profiles, and corrected the "new post after posting" problem (I hope).
This commit is contained in:
Eric J. Bowersox 2001-04-05 05:40:13 +00:00
parent f19aab70fe
commit 8f31704563
6 changed files with 24 additions and 6 deletions

View File

@ -117,6 +117,7 @@ valen
veni veni
we'll we'll
we're we're
we've
webb webb
webbme webbme
won't won't

View File

@ -112,7 +112,8 @@ public class PostMessage extends VeniceServlet
if (isImageButtonClicked(request,"preview")) // generate a preview if (isImageButtonClicked(request,"preview")) // generate a preview
return new PostPreview(engine,sig,conf,topic,request.getParameter("pseud"),raw_postdata, return new PostPreview(engine,sig,conf,topic,request.getParameter("pseud"),raw_postdata,
request.getParameter("next"),getPostNumber(request,on_error), request.getParameter("next"),getPostNumber(request,on_error),
yes.equals(request.getParameter("attach"))); yes.equals(request.getParameter("attach")),
yes.equals(request.getParameter("slip")));
if ( isImageButtonClicked(request,"post") || isImageButtonClicked(request,"postnext") if ( isImageButtonClicked(request,"post") || isImageButtonClicked(request,"postnext")
|| isImageButtonClicked(request,"posttopics")) || isImageButtonClicked(request,"posttopics"))
@ -131,6 +132,9 @@ public class PostMessage extends VeniceServlet
// post the darn thing! // post the darn thing!
TopicMessageContext msg = topic.postNewMessage(0,request.getParameter("pseud"),raw_postdata); TopicMessageContext msg = topic.postNewMessage(0,request.getParameter("pseud"),raw_postdata);
if (!(yes.equals(request.getParameter("slip"))))
topic.fixSeen(); // no slippage = make sure we mark all as read
if (go_topics) // jump back to the topic list, puhleaze if (go_topics) // jump back to the topic list, puhleaze
throw new RedirectResult("confdisp?sig=" + sig.getSIGID() + "&conf=" + conf.getConfID()); throw new RedirectResult("confdisp?sig=" + sig.getSIGID() + "&conf=" + conf.getConfID());

View File

@ -49,6 +49,7 @@ public class PostPreview implements JSPRender
private int num_errors; private int num_errors;
private int msgs; private int msgs;
private boolean attach; private boolean attach;
private boolean slippage;
/*-------------------------------------------------------------------------------- /*--------------------------------------------------------------------------------
* Constructor * Constructor
@ -56,7 +57,7 @@ public class PostPreview implements JSPRender
*/ */
public PostPreview(VeniceEngine engine, SIGContext sig, ConferenceContext conf, TopicContext topic, public PostPreview(VeniceEngine engine, SIGContext sig, ConferenceContext conf, TopicContext topic,
String pseud, String data, String next, int msgs, boolean attach) String pseud, String data, String next, int msgs, boolean attach, boolean slippage)
{ {
this.sig = sig; this.sig = sig;
this.conf = conf; this.conf = conf;
@ -64,6 +65,7 @@ public class PostPreview implements JSPRender
this.next = next; this.next = next;
this.msgs = msgs; this.msgs = msgs;
this.attach = attach; this.attach = attach;
this.slippage = slippage;
try try
{ // sanitize the pseud data { // sanitize the pseud data
@ -198,4 +200,10 @@ public class PostPreview implements JSPRender
} // end getBodyText } // end getBodyText
public boolean slippageDetected()
{
return slippage;
} // end slippageDetected
} // end class PostPreview } // end class PostPreview

View File

@ -45,6 +45,9 @@
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>"> <INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
<% } // end if %> <% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>"> <INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<% if (data.slippageDetected()) { %>
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<% } // end if %>
<TABLE BORDER=0 CELLPADDING=0> <TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2> <TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR> <%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>

View File

@ -50,13 +50,14 @@
<% if (data.isUserLoggedIn()) { %> <% if (data.isUserLoggedIn()) { %>
<DIV ALIGN="CENTER"> <DIV ALIGN="CENTER">
<% if (sig.canSendInvitation()) { %> <%-- EJB 4/4/2001 - reverse these tests, put canJoin FIRST --%>
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + sig.getSIGID()) %>"><IMG <% if (sig.canJoin()) { %>
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } else if (sig.canJoin()) { %>
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + sig.getSIGID()) %>"><IMG <A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + sig.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now" SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now"
WIDTH=80 HEIGHT=24 BORDER=0></A> WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } else if (sig.canSendInvitation()) { %>
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + sig.getSIGID()) %>"><IMG
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
<% } // end if %> <% } // end if %>
</DIV> </DIV>
<% } // end if (user is logged in) %> <% } // end if (user is logged in) %>

View File

@ -69,6 +69,7 @@
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>"> <INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
<% } // end if %> <% } // end if %>
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>"> <INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
<TABLE BORDER=0 CELLPADDING=0> <TABLE BORDER=0 CELLPADDING=0>
<TR><TD ALIGN=LEFT COLSPAN=2> <TR><TD ALIGN=LEFT COLSPAN=2>
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR> <%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>