From a900d9d51ffe548a5e6c15895b3e6ad82832d723 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Tue, 23 Oct 2001 21:42:29 +0000 Subject: [PATCH] added support for QID (quick ID) generation within pages, in preparation for supporting a hitcounter system in the page footer --- .../venice/servlets/format/AdminFindUser.java | 6 +++++ .../servlets/format/AttachmentForm.java | 6 +++++ .../servlets/format/AuditDataViewer.java | 6 +++++ .../venice/servlets/format/BaseJSPData.java | 14 +++++++++- .../servlets/format/ConferenceActivity.java | 6 +++++ .../servlets/format/ConferenceListing.java | 6 +++++ .../servlets/format/ConferenceMembership.java | 6 +++++ .../servlets/format/ConferenceSequence.java | 8 +++++- .../venice/servlets/format/ConfirmBox.java | 6 +++++ .../venice/servlets/format/ContentDialog.java | 6 +++++ .../servlets/format/ContentMenuPanel.java | 6 +++++ .../venice/servlets/format/ErrorBox.java | 6 +++++ .../venice/servlets/format/FindData.java | 6 +++++ .../venice/servlets/format/Hotlist.java | 6 +++++ .../venice/servlets/format/Invitation.java | 6 +++++ .../servlets/format/ManageConference.java | 6 +++++ .../format/ManageConferenceAliases.java | 6 +++++ .../venice/servlets/format/NewSIGWelcome.java | 6 +++++ .../venice/servlets/format/NewTopicForm.java | 6 +++++ .../venice/servlets/format/PostPreview.java | 6 +++++ .../venice/servlets/format/PostSlippage.java | 6 +++++ .../servlets/format/ReportConferenceMenu.java | 6 +++++ .../format/SIGCategoryBrowseData.java | 8 +++++- .../venice/servlets/format/SIGMembership.java | 6 +++++ .../servlets/format/SIGProfileData.java | 6 +++++ .../venice/servlets/format/SIGWelcome.java | 6 +++++ .../servlets/format/SideBoxConferences.java | 6 +++++ .../venice/servlets/format/SideBoxSIGs.java | 6 +++++ .../venice/servlets/format/StaticRender.java | 6 +++++ .../servlets/format/TextMessageDialog.java | 6 +++++ .../venice/servlets/format/TopDisplay.java | 6 +++++ .../venice/servlets/format/TopicListing.java | 9 +++++++ .../venice/servlets/format/TopicPosts.java | 12 +++++++-- .../servlets/format/UserProfileData.java | 6 +++++ .../venice/servlets/format/UserSIGList.java | 6 +++++ .../venice/servlets/format/VeniceContent.java | 2 ++ web/format/base.jsp | 27 ++++++++++++------- 37 files changed, 246 insertions(+), 14 deletions(-) diff --git a/src/com/silverwrist/venice/servlets/format/AdminFindUser.java b/src/com/silverwrist/venice/servlets/format/AdminFindUser.java index 59e7f1b..cbca977 100644 --- a/src/com/silverwrist/venice/servlets/format/AdminFindUser.java +++ b/src/com/silverwrist/venice/servlets/format/AdminFindUser.java @@ -110,6 +110,12 @@ public class AdminFindUser implements JSPRender, SearchMode } // end getPageTitle + public String getPageQID() + { + return "sysadmin?cmd=UF"; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/AttachmentForm.java b/src/com/silverwrist/venice/servlets/format/AttachmentForm.java index 8d793b9..56d78d8 100644 --- a/src/com/silverwrist/venice/servlets/format/AttachmentForm.java +++ b/src/com/silverwrist/venice/servlets/format/AttachmentForm.java @@ -80,6 +80,12 @@ public class AttachmentForm implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/AuditDataViewer.java b/src/com/silverwrist/venice/servlets/format/AuditDataViewer.java index 037b721..a3db827 100644 --- a/src/com/silverwrist/venice/servlets/format/AuditDataViewer.java +++ b/src/com/silverwrist/venice/servlets/format/AuditDataViewer.java @@ -75,6 +75,12 @@ public class AuditDataViewer implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/BaseJSPData.java b/src/com/silverwrist/venice/servlets/format/BaseJSPData.java index 60ad74f..977ea86 100644 --- a/src/com/silverwrist/venice/servlets/format/BaseJSPData.java +++ b/src/com/silverwrist/venice/servlets/format/BaseJSPData.java @@ -85,10 +85,22 @@ public class BaseJSPData public String getTitle(RenderData rdat) { - return content.getPageTitle(rdat); + if (content==null) + return ""; + else + return content.getPageTitle(rdat); } // end getTitle + public String getPageQID() + { + if (content==null) + return null; + else + return content.getPageQID(); + + } // end getPageQID + public boolean locationSpecified() { return (location!=null); diff --git a/src/com/silverwrist/venice/servlets/format/ConferenceActivity.java b/src/com/silverwrist/venice/servlets/format/ConferenceActivity.java index 5491c21..af241f0 100644 --- a/src/com/silverwrist/venice/servlets/format/ConferenceActivity.java +++ b/src/com/silverwrist/venice/servlets/format/ConferenceActivity.java @@ -112,6 +112,12 @@ public class ConferenceActivity implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ConferenceListing.java b/src/com/silverwrist/venice/servlets/format/ConferenceListing.java index f01935f..eb99627 100644 --- a/src/com/silverwrist/venice/servlets/format/ConferenceListing.java +++ b/src/com/silverwrist/venice/servlets/format/ConferenceListing.java @@ -77,6 +77,12 @@ public class ConferenceListing implements JSPRender } // end getPageTitle + public String getPageQID() + { + return "go/" + sig.getAlias() + "!"; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ConferenceMembership.java b/src/com/silverwrist/venice/servlets/format/ConferenceMembership.java index c64748d..8d4fc67 100644 --- a/src/com/silverwrist/venice/servlets/format/ConferenceMembership.java +++ b/src/com/silverwrist/venice/servlets/format/ConferenceMembership.java @@ -120,6 +120,12 @@ public class ConferenceMembership implements JSPRender, SearchMode } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ConferenceSequence.java b/src/com/silverwrist/venice/servlets/format/ConferenceSequence.java index beb8ddd..be0de17 100644 --- a/src/com/silverwrist/venice/servlets/format/ConferenceSequence.java +++ b/src/com/silverwrist/venice/servlets/format/ConferenceSequence.java @@ -30,7 +30,7 @@ public class ConferenceSequence implements JSPRender */ // Attribute name for request attribute - protected static final String ATTR_NAME = "com.silverwrist.venice.content.Hotlist"; + protected static final String ATTR_NAME = "com.silverwrist.venice.content.ConferenceSequence"; /*-------------------------------------------------------------------------------- * Attributes @@ -97,6 +97,12 @@ public class ConferenceSequence implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ConfirmBox.java b/src/com/silverwrist/venice/servlets/format/ConfirmBox.java index 73a1bc1..b0a33d7 100644 --- a/src/com/silverwrist/venice/servlets/format/ConfirmBox.java +++ b/src/com/silverwrist/venice/servlets/format/ConfirmBox.java @@ -103,6 +103,12 @@ public class ConfirmBox implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ContentDialog.java b/src/com/silverwrist/venice/servlets/format/ContentDialog.java index c1db6b8..6976dc3 100644 --- a/src/com/silverwrist/venice/servlets/format/ContentDialog.java +++ b/src/com/silverwrist/venice/servlets/format/ContentDialog.java @@ -133,6 +133,12 @@ public class ContentDialog implements Cloneable, ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ContentMenuPanel.java b/src/com/silverwrist/venice/servlets/format/ContentMenuPanel.java index 449f9c0..64b2f76 100644 --- a/src/com/silverwrist/venice/servlets/format/ContentMenuPanel.java +++ b/src/com/silverwrist/venice/servlets/format/ContentMenuPanel.java @@ -110,6 +110,12 @@ public class ContentMenuPanel implements Cloneable, ContentRender, ColorSelector } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ErrorBox.java b/src/com/silverwrist/venice/servlets/format/ErrorBox.java index bf3ba55..4e57abd 100644 --- a/src/com/silverwrist/venice/servlets/format/ErrorBox.java +++ b/src/com/silverwrist/venice/servlets/format/ErrorBox.java @@ -61,6 +61,12 @@ public class ErrorBox extends VeniceServletResult implements ContentRender, Colo } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/FindData.java b/src/com/silverwrist/venice/servlets/format/FindData.java index bcc40b3..3d4c33c 100644 --- a/src/com/silverwrist/venice/servlets/format/FindData.java +++ b/src/com/silverwrist/venice/servlets/format/FindData.java @@ -149,6 +149,12 @@ public class FindData implements JSPRender, SearchMode } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/Hotlist.java b/src/com/silverwrist/venice/servlets/format/Hotlist.java index 07222f9..f996de8 100644 --- a/src/com/silverwrist/venice/servlets/format/Hotlist.java +++ b/src/com/silverwrist/venice/servlets/format/Hotlist.java @@ -74,6 +74,12 @@ public class Hotlist implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/Invitation.java b/src/com/silverwrist/venice/servlets/format/Invitation.java index 6290b7a..8d6dbd7 100644 --- a/src/com/silverwrist/venice/servlets/format/Invitation.java +++ b/src/com/silverwrist/venice/servlets/format/Invitation.java @@ -71,6 +71,12 @@ public class Invitation implements JSPRender } // end getPageTitle + public String getPageQID() + { + return "sigops?cmd=I&sig=" + sig.getSIGID(); + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ManageConference.java b/src/com/silverwrist/venice/servlets/format/ManageConference.java index 5d757e7..66e63c8 100644 --- a/src/com/silverwrist/venice/servlets/format/ManageConference.java +++ b/src/com/silverwrist/venice/servlets/format/ManageConference.java @@ -75,6 +75,12 @@ public class ManageConference implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ManageConferenceAliases.java b/src/com/silverwrist/venice/servlets/format/ManageConferenceAliases.java index 37820cf..10456ac 100644 --- a/src/com/silverwrist/venice/servlets/format/ManageConferenceAliases.java +++ b/src/com/silverwrist/venice/servlets/format/ManageConferenceAliases.java @@ -87,6 +87,12 @@ public class ManageConferenceAliases implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/NewSIGWelcome.java b/src/com/silverwrist/venice/servlets/format/NewSIGWelcome.java index 22cdf3b..d167696 100644 --- a/src/com/silverwrist/venice/servlets/format/NewSIGWelcome.java +++ b/src/com/silverwrist/venice/servlets/format/NewSIGWelcome.java @@ -72,6 +72,12 @@ public class NewSIGWelcome implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/NewTopicForm.java b/src/com/silverwrist/venice/servlets/format/NewTopicForm.java index e9d1f86..c10bb2b 100644 --- a/src/com/silverwrist/venice/servlets/format/NewTopicForm.java +++ b/src/com/silverwrist/venice/servlets/format/NewTopicForm.java @@ -81,6 +81,12 @@ public class NewTopicForm implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/PostPreview.java b/src/com/silverwrist/venice/servlets/format/PostPreview.java index 4bdbbac..0ca1a03 100644 --- a/src/com/silverwrist/venice/servlets/format/PostPreview.java +++ b/src/com/silverwrist/venice/servlets/format/PostPreview.java @@ -118,6 +118,12 @@ public class PostPreview implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/PostSlippage.java b/src/com/silverwrist/venice/servlets/format/PostSlippage.java index 22a238d..9cd14f4 100644 --- a/src/com/silverwrist/venice/servlets/format/PostSlippage.java +++ b/src/com/silverwrist/venice/servlets/format/PostSlippage.java @@ -109,6 +109,12 @@ public class PostSlippage implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/ReportConferenceMenu.java b/src/com/silverwrist/venice/servlets/format/ReportConferenceMenu.java index eb21b55..1a97df9 100644 --- a/src/com/silverwrist/venice/servlets/format/ReportConferenceMenu.java +++ b/src/com/silverwrist/venice/servlets/format/ReportConferenceMenu.java @@ -77,6 +77,12 @@ public class ReportConferenceMenu implements JSPRender } // end getPageTitle + public String getPageQID() + { + return "confops?cmd=QR&" + getLocator(); + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SIGCategoryBrowseData.java b/src/com/silverwrist/venice/servlets/format/SIGCategoryBrowseData.java index 68f2afb..841fe11 100644 --- a/src/com/silverwrist/venice/servlets/format/SIGCategoryBrowseData.java +++ b/src/com/silverwrist/venice/servlets/format/SIGCategoryBrowseData.java @@ -29,7 +29,7 @@ public class SIGCategoryBrowseData implements JSPRender */ // Attribute name for request attribute - protected static final String ATTR_NAME = "com.silverwrist.venice.content.UserProfileData"; + protected static final String ATTR_NAME = "com.silverwrist.venice.content.SIGCategoryBrowseData"; /*-------------------------------------------------------------------------------- * Attributes @@ -82,6 +82,12 @@ public class SIGCategoryBrowseData implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SIGMembership.java b/src/com/silverwrist/venice/servlets/format/SIGMembership.java index 195552e..3881bfc 100644 --- a/src/com/silverwrist/venice/servlets/format/SIGMembership.java +++ b/src/com/silverwrist/venice/servlets/format/SIGMembership.java @@ -120,6 +120,12 @@ public class SIGMembership implements JSPRender, SearchMode } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SIGProfileData.java b/src/com/silverwrist/venice/servlets/format/SIGProfileData.java index 75ce8ad..56d395c 100644 --- a/src/com/silverwrist/venice/servlets/format/SIGProfileData.java +++ b/src/com/silverwrist/venice/servlets/format/SIGProfileData.java @@ -81,6 +81,12 @@ public class SIGProfileData implements JSPRender } // end getPageTitle + public String getPageQID() + { + return "go/" + sig.getAlias() + "!"; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SIGWelcome.java b/src/com/silverwrist/venice/servlets/format/SIGWelcome.java index d700bb5..0f8e5a4 100644 --- a/src/com/silverwrist/venice/servlets/format/SIGWelcome.java +++ b/src/com/silverwrist/venice/servlets/format/SIGWelcome.java @@ -72,6 +72,12 @@ public class SIGWelcome implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SideBoxConferences.java b/src/com/silverwrist/venice/servlets/format/SideBoxConferences.java index b3f025b..ca68f3c 100644 --- a/src/com/silverwrist/venice/servlets/format/SideBoxConferences.java +++ b/src/com/silverwrist/venice/servlets/format/SideBoxConferences.java @@ -58,6 +58,12 @@ public class SideBoxConferences implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/SideBoxSIGs.java b/src/com/silverwrist/venice/servlets/format/SideBoxSIGs.java index 827f138..53aae13 100644 --- a/src/com/silverwrist/venice/servlets/format/SideBoxSIGs.java +++ b/src/com/silverwrist/venice/servlets/format/SideBoxSIGs.java @@ -58,6 +58,12 @@ public class SideBoxSIGs implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/StaticRender.java b/src/com/silverwrist/venice/servlets/format/StaticRender.java index f929232..d9b2fc8 100644 --- a/src/com/silverwrist/venice/servlets/format/StaticRender.java +++ b/src/com/silverwrist/venice/servlets/format/StaticRender.java @@ -149,6 +149,12 @@ public class StaticRender implements ContentRender } // end getPageTitle + public String getPageQID() + { + return "static/" + name; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/TextMessageDialog.java b/src/com/silverwrist/venice/servlets/format/TextMessageDialog.java index 9ee85f1..42a46a1 100644 --- a/src/com/silverwrist/venice/servlets/format/TextMessageDialog.java +++ b/src/com/silverwrist/venice/servlets/format/TextMessageDialog.java @@ -120,6 +120,12 @@ public class TextMessageDialog implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/TopDisplay.java b/src/com/silverwrist/venice/servlets/format/TopDisplay.java index 8d6e5ad..cd2c109 100644 --- a/src/com/silverwrist/venice/servlets/format/TopDisplay.java +++ b/src/com/silverwrist/venice/servlets/format/TopDisplay.java @@ -154,6 +154,12 @@ public class TopDisplay implements ContentRender, ColorSelectors } // end getPageTitle + public String getPageQID() + { + return "top"; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface ContentRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/TopicListing.java b/src/com/silverwrist/venice/servlets/format/TopicListing.java index d855452..b0d651e 100644 --- a/src/com/silverwrist/venice/servlets/format/TopicListing.java +++ b/src/com/silverwrist/venice/servlets/format/TopicListing.java @@ -43,6 +43,7 @@ public class TopicListing implements JSPRender private int sort_opt; // the sort option used private List topic_list; // the topic list private TopicVisitOrder visit_order; // indicates order in which topics are visited + private String qid; // "quick ID" for this page /*-------------------------------------------------------------------------------- * Constructor @@ -58,6 +59,8 @@ public class TopicListing implements JSPRender this.sort_opt = sort_opt; this.topic_list = conf.getTopicList(view_opt,sort_opt); this.visit_order = TopicVisitOrder.initialize(request.getSession(true),conf.getConfID(),this.topic_list); + List aliases = conf.getAliases(); + this.qid = "go/" + sig.getAlias() + "!" + (String)(aliases.get(0)); } // end constructor @@ -83,6 +86,12 @@ public class TopicListing implements JSPRender } // end getPageTitle + public String getPageQID() + { + return qid; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/TopicPosts.java b/src/com/silverwrist/venice/servlets/format/TopicPosts.java index e69ad56..ab3998a 100644 --- a/src/com/silverwrist/venice/servlets/format/TopicPosts.java +++ b/src/com/silverwrist/venice/servlets/format/TopicPosts.java @@ -52,6 +52,7 @@ public class TopicPosts implements JSPRender private List messages; private TopicVisitOrder visit_order; private String topic_stem; + private String topic_qid; private String cache_locator = null; /*-------------------------------------------------------------------------------- @@ -84,7 +85,8 @@ public class TopicPosts implements JSPRender if (visit_order!=null) visit_order.visit(topic.getTopicNumber()); List aliases = conf.getAliases(); - topic_stem = (String)(aliases.get(0)) + "." + String.valueOf(topic.getTopicNumber()) + "."; + topic_stem = (String)(aliases.get(0)) + "." + topic.getTopicNumber() + "."; + topic_qid = "go/" + sig.getAlias() + "!" + (String)(aliases.get(0)) + "." + topic.getTopicNumber(); } // end constructor @@ -111,6 +113,12 @@ public class TopicPosts implements JSPRender } // end getPageTitle + public String getPageQID() + { + return topic_qid; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- @@ -399,7 +407,7 @@ public class TopicPosts implements JSPRender public String getMessageReference(TopicMessageContext msg) { - return topic_stem + String.valueOf(msg.getPostNumber()); + return topic_stem + msg.getPostNumber(); } // end getMessageReference diff --git a/src/com/silverwrist/venice/servlets/format/UserProfileData.java b/src/com/silverwrist/venice/servlets/format/UserProfileData.java index 6338b10..e1e5c29 100644 --- a/src/com/silverwrist/venice/servlets/format/UserProfileData.java +++ b/src/com/silverwrist/venice/servlets/format/UserProfileData.java @@ -71,6 +71,12 @@ public class UserProfileData implements JSPRender } // end getPageTitle + public String getPageQID() + { + return "user/" + prof.getUserName(); + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/UserSIGList.java b/src/com/silverwrist/venice/servlets/format/UserSIGList.java index 5c1102f..f015ab0 100644 --- a/src/com/silverwrist/venice/servlets/format/UserSIGList.java +++ b/src/com/silverwrist/venice/servlets/format/UserSIGList.java @@ -74,6 +74,12 @@ public class UserSIGList implements JSPRender } // end getPageTitle + public String getPageQID() + { + return null; + + } // end getPageQID + /*-------------------------------------------------------------------------------- * Implementations from interface JSPRender *-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/venice/servlets/format/VeniceContent.java b/src/com/silverwrist/venice/servlets/format/VeniceContent.java index 4928de9..4b03729 100644 --- a/src/com/silverwrist/venice/servlets/format/VeniceContent.java +++ b/src/com/silverwrist/venice/servlets/format/VeniceContent.java @@ -21,4 +21,6 @@ public interface VeniceContent { public abstract String getPageTitle(RenderData rdat); + public abstract String getPageQID(); + } // end interface VeniceContent diff --git a/web/format/base.jsp b/web/format/base.jsp index 574d1f1..22c5c38 100644 --- a/web/format/base.jsp +++ b/web/format/base.jsp @@ -128,15 +128,24 @@ <% if (rdat.useHTMLComments()) { %><% } %>
- - - -
<%= smallfont %><%= rdat.getStockMessage("footer-text") %> - " ALT="Powered by Venice" - WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0 - HSPACE=0 VSPACE=0> -
+ <% String qid = basedat.getPageQID(); %> + + + + + + <% if (qid!=null) { %> + + <% } // end if %> +
<%= smallfont %><%= rdat.getStockMessage("footer-text") %>ROWSPAN=2<% } %> ALIGN=LEFT> + " ALT="Powered by Venice" + WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0 + HSPACE=0 VSPACE=0> +
+ <% if (rdat.useHTMLComments()) { %><% } %> + <%-- Reserved for future use --%> +