replaced the "default SIG logo" with a nicer one; fixed the topic scrolling
behavior
This commit is contained in:
parent
17d9a58867
commit
609568b95c
3
INSTALL
3
INSTALL
|
@ -25,6 +25,9 @@ Software requirements:
|
||||||
* Apache Jakarta Servlet API, version 3.2, available from
|
* Apache Jakarta Servlet API, version 3.2, available from
|
||||||
http://jakarta.apache.org.
|
http://jakarta.apache.org.
|
||||||
* Apache Tomcat version 3.2.1, available from http://jakarta.apache.org.
|
* Apache Tomcat version 3.2.1, available from http://jakarta.apache.org.
|
||||||
|
If you plan on using Apache-Tomcat integration, get at least 3.2.2b3, as
|
||||||
|
otherwise there will be a problem with file uploads (Bug#526 in the Apache
|
||||||
|
Jakarta Bug Database).
|
||||||
|
|
||||||
It is recommended that you install JAXP, JSSE, JavaMail, JAF, and LOG4J
|
It is recommended that you install JAXP, JSSE, JavaMail, JAF, and LOG4J
|
||||||
by copying or symbolically linking their JAR files to the <jdk>/jre/lib/ext
|
by copying or symbolically linking their JAR files to the <jdk>/jre/lib/ext
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class MenuSIG implements ComponentRender
|
||||||
image_url = ci.getPhotoURL();
|
image_url = ci.getPhotoURL();
|
||||||
if (StringUtil.isStringEmpty(image_url))
|
if (StringUtil.isStringEmpty(image_url))
|
||||||
{ // just hit the default
|
{ // just hit the default
|
||||||
image_url = "default_sig_logo.gif";
|
image_url = "sig_other.jpg";
|
||||||
image_url_needs_fixup = true;
|
image_url_needs_fixup = true;
|
||||||
|
|
||||||
} // end if
|
} // end if
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class SIGProfileData implements JSPRender
|
||||||
{
|
{
|
||||||
String tmp = ci.getPhotoURL();
|
String tmp = ci.getPhotoURL();
|
||||||
if (StringUtil.isStringEmpty(tmp))
|
if (StringUtil.isStringEmpty(tmp))
|
||||||
tmp = rdat.getFullImagePath("default_sig_logo.gif");
|
tmp = rdat.getFullImagePath("sig_other.jpg");
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
||||||
} // end getSIGLogoURL
|
} // end getSIGLogoURL
|
||||||
|
|
|
@ -317,7 +317,7 @@ public class TopicPosts implements JSPRender
|
||||||
public String getScrollUpLocator()
|
public String getScrollUpLocator()
|
||||||
{
|
{
|
||||||
int new_first = first - engine.getNumPostsPerPage();
|
int new_first = first - engine.getNumPostsPerPage();
|
||||||
int new_last = last - 1;
|
int new_last = first - 1;
|
||||||
if (new_first<0)
|
if (new_first<0)
|
||||||
{ // normalize so we start at 0
|
{ // normalize so we start at 0
|
||||||
new_last += (-new_first);
|
new_last += (-new_first);
|
||||||
|
@ -333,14 +333,18 @@ public class TopicPosts implements JSPRender
|
||||||
|
|
||||||
public boolean canScrollDown()
|
public boolean canScrollDown()
|
||||||
{
|
{
|
||||||
return ((topic.getTotalMessages() - (1 + last))>=engine.getNumPostsPerPage());
|
return ((topic.getTotalMessages() - (1 + last))>0);
|
||||||
|
|
||||||
} // end canScrollDown
|
} // end canScrollDown
|
||||||
|
|
||||||
public String getScrollDownLocator()
|
public String getScrollDownLocator()
|
||||||
{
|
{
|
||||||
|
int new_last = last + engine.getNumPostsPerPage();
|
||||||
|
int my_last = topic.getTotalMessages() - 1;
|
||||||
|
if (new_last>my_last)
|
||||||
|
new_last = my_last; // normalize so we end at the last post
|
||||||
StringBuffer buf = new StringBuffer("p1=");
|
StringBuffer buf = new StringBuffer("p1=");
|
||||||
buf.append(last+1).append("&p2=").append(last+engine.getNumPostsPerPage());
|
buf.append(last+1).append("&p2=").append(new_last);
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
|
|
||||||
} // end getScrollDownLocator
|
} // end getScrollDownLocator
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 731 B |
BIN
web/images/sig_other.jpg
Normal file
BIN
web/images/sig_other.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in New Issue
Block a user