added support for QID (quick ID) generation within pages, in preparation for
supporting a hitcounter system in the page footer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user