Reworked the sidebox implementation to depend less on the database and more

on XML config files...the implementation should now be much more customizable
and less klunky.  Added a provision for implementing "generic" (JSP-driven)
sideboxes.  Implemented the sidebox configure button on the front page
(finally!).  Implemented a random password generator class which will be used
in a future implementation of reminder-driven automatic forgotten-password
changing.  Fixed some minor funnies in SIG menu generation.
This commit is contained in:
Eric J. Bowersox
2001-11-04 05:57:58 +00:00
parent bf040973ba
commit 1c69955046
32 changed files with 2049 additions and 495 deletions

View File

@@ -89,6 +89,9 @@
<site-logo width="140" height="80"
href="http://venice.sourceforge.net">/venice/images/powered-by-venice.gif</site-logo>
<!-- The location of the sidebox configuration file, relative to the application root. -->
<sidebox-config>WEB-INF/sidebox-config.xml</sidebox-config>
</paths>
<!-- Contains standard messages displayed by front end -->

57
etc/sidebox-config.xml Normal file
View File

@@ -0,0 +1,57 @@
<?xml version="1.0"?>
<!--
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):
-->
<!-- Configuration file for sideboxes, referenced by both venice-config.xml and render-config.xml -->
<sidebox-config>
<sidebox id="1">
<title>Your SIGs</title>
<anon-title>Featured SIGs</anon-title>
<factory-class>com.silverwrist.venice.servlets.format.sideboxes.SIGBox</factory-class>
<null-msg>You are not a member of any SIGs.</null-msg>
<manage-link>Manage</manage-link>
<create-new-link>Create New</create-new-link>
<bullet width="14" height="14" fixup="true">purple-ball.gif</bullet>
<host-image width="40" height="20" alt="Host!" fixup="true">tag_host.gif</host-image>
</sidebox>
<sidebox id="2">
<title>Your Conference Hotlist</title>
<anon-title>Featured Conferences</anon-title>
<factory-class>com.silverwrist.venice.servlets.format.sideboxes.ConferenceBox</factory-class>
<null-msg>You have no conferences in your hotlist.</null-msg>
<manage-link>Manage</manage-link>
<bullet width="14" height="14" fixup="true">purple-ball.gif</bullet>
<new-image width="40" height="20" alt="New!" fixup="true">tag_new.gif</new-image>
</sidebox>
<!-- test sidebox only, do not use -->
<!--
<sidebox id="-1">
<title>Test Sidebox</title>
<factory-class>com.silverwrist.venice.servlets.format.sideboxes.JSPSideBoxFactory</factory-class>
<format-jsp>test/test_sidebox.jsp</format-jsp>
<strings>
<test1>This is a test.</test1>
<test2>This is only a test.</test2>
<test3>If this had been an actual emergency, we would all be dead by now.</test3>
</strings>
</sidebox>
-->
</sidebox-config>

View File

@@ -8,7 +8,7 @@
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 Community System.
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
@@ -23,6 +23,9 @@
<engine>
<!-- The fully-qualified Java classname of the Venice engine class. -->
<classname>com.silverwrist.venice.core.impl.VeniceEngineImpl</classname>
<!-- The pathname of the sidebox config file, relative to the Web application root directory. -->
<sidebox-config>WEB-INF/sidebox-config.xml</sidebox-config>
</engine>
<!-- This section is used to configure the database pool system. -->
@@ -94,7 +97,7 @@ Venice - community services, conferencing and more. <http://venice.sourceforge.
</signature>
<!-- This is the message sent out with the email confirmation number. -->
<!-- Parameters: $USERNAME - account user name, $CONFNUM - confirmation number -->
<!-- Parameters: username - account user name, confnum - confirmation number -->
<email-confirm>
<![CDATA[
Welcome to the Venice conferencing system! In order to fully activate your
@@ -102,7 +105,7 @@ account after you register or change your E-mail address, you must provide a
confirmation number to the system. Please enter this number into the "Confirm
E-mail Address" dialog on the system when indicated.
Your confirmation number for your account "$USERNAME" is $CONFNUM.
Your confirmation number for your account "${username}" is ${confnum}.
Thank you, and enjoy the Venice conferencing system!
@@ -110,13 +113,16 @@ Thank you, and enjoy the Venice conferencing system!
]]>
</email-confirm>
<!-- The subject of the message with the email confirmation number. -->
<email-confirm-subject>Venice Email Confirmation</email-confirm-subject>
<!-- This is the "password reminder" message. -->
<!-- Parameters: $USERNAME - account user name, $REMINDER - password reminder -->
<!-- Parameters: username - account user name, reminder - password reminder -->
<reminder>
<![CDATA[
Here is the password reminder for your account "$USERNAME" as you requested:
Here is the password reminder for your account "${username}" as you requested:
$REMINDER
${reminder}
If this reminder is not sufficient for you to remember what your password is,
please contact the server administrator for further assistance.
@@ -125,50 +131,53 @@ please contact the server administrator for further assistance.
]]>
</reminder>
<reminder-subject>Venice Password Reminder Message</reminder-subject>
<!-- Invitation message to a public SIG -->
<!-- Parameters: $SIGNAME = name of SIG, $SIGALIAS = alias of SIG, $PERSONAL = personal message,
$FULLNAME = name of inviter, $USERNAME = user name of inviter -->
<!-- Parameters: signame = name of SIG, sigalias = alias of SIG, personal = personal message,
fullname = name of inviter, username = user name of inviter -->
<invite-public>
<![CDATA[
Hi! I would like to invite you to join the "$SIGNAME" Special Interest Group (SIG) on the Venice
Hi! I would like to invite you to join the "${signame}" Special Interest Group (SIG) on the Venice
conferencing system. To do so, you must register as a user, which is absolutely free! Just point
your Web browser at <http://delenn:8080/venice/sig/$SIGALIAS> and click the "Create Account" link
your Web browser at <http://delenn:8080/venice/sig/${sigalias}> and click the "Create Account" link
at the top of the page, or click the "Log In" link if you already have a Venice account. Once you have
completed the process, click the "Join Now" button. You will then be able to take part in the conferences
that are going on in the SIG.
$PERSONAL
${personal}
Hope to see you in "$SIGNAME" soon!
Hope to see you in "${signame}" soon!
-- $FULLNAME (Venice user ID: $USERNAME)
-- ${fullname} (Venice user ID: ${username})
]]>
</invite-public>
<!-- Invitation message to a private SIG -->
<!-- Parameters: $SIGNAME = name of SIG, $SIGALIAS = alias of SIG, $JOINKEY = join key for SIG,
$PERSONAL = personal message, $FULLNAME = name of inviter,
$USERNAME = user name of inviter -->
<!-- Parameters: signame = name of SIG, sigalias = alias of SIG, joinkey = join key for SIG,
personal = personal message, fullname = name of inviter,
username = user name of inviter -->
<invite-private>
<![CDATA[
Hi! I would like to invite you to join the "$SIGNAME" Special Interest Group (SIG) on the Venice
Hi! I would like to invite you to join the "${signame}" Special Interest Group (SIG) on the Venice
conferencing system. To do so, you must register as a user, which is absolutely free! Just point
your Web browser at <http://delenn:8080/venice/sig/$SIGALIAS> and click the "Create Account" link
your Web browser at <http://delenn:8080/venice/sig/${sigalias}> and click the "Create Account" link
at the top of the page, or click the "Log In" link if you already have a Venice account. Once you have
completed the process, click the "Join Now" button. You will be prompted for the "password" for this
SIG, which is "$JOINKEY". You will then be able to take part in the conferences that are going on in the SIG.
SIG, which is "${joinkey}". You will then be able to take part in the conferences that are going on in the
SIG.
$PERSONAL
${personal}
Hope to see you in "$SIGNAME" soon!
Hope to see you in "${signame}" soon!
-- $FULLNAME (Venice user ID: $USERNAME)
-- ${fullname} (Venice user ID: ${username})
]]>
</invite-private>
<!-- Subject line for invitation messages -->
<!-- Parameters: $SIGNAME = name of SIG -->
<subj-invite>Invitation to "$SIGNAME" SIG</subj-invite>
<!-- Parameters: signame = name of SIG -->
<subj-invite>Invitation to "${signame}" SIG</subj-invite>
</messages>