replaced the "default SIG logo" with a nicer one; fixed the topic scrolling

behavior
This commit is contained in:
Eric J. Bowersox
2001-04-19 04:03:47 +00:00
parent 17d9a58867
commit 609568b95c
6 changed files with 12 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ public class MenuSIG implements ComponentRender
image_url = ci.getPhotoURL();
if (StringUtil.isStringEmpty(image_url))
{ // just hit the default
image_url = "default_sig_logo.gif";
image_url = "sig_other.jpg";
image_url_needs_fixup = true;
} // end if

View File

@@ -113,7 +113,7 @@ public class SIGProfileData implements JSPRender
{
String tmp = ci.getPhotoURL();
if (StringUtil.isStringEmpty(tmp))
tmp = rdat.getFullImagePath("default_sig_logo.gif");
tmp = rdat.getFullImagePath("sig_other.jpg");
return tmp;
} // end getSIGLogoURL

View File

@@ -317,7 +317,7 @@ public class TopicPosts implements JSPRender
public String getScrollUpLocator()
{
int new_first = first - engine.getNumPostsPerPage();
int new_last = last - 1;
int new_last = first - 1;
if (new_first<0)
{ // normalize so we start at 0
new_last += (-new_first);
@@ -333,14 +333,18 @@ public class TopicPosts implements JSPRender
public boolean canScrollDown()
{
return ((topic.getTotalMessages() - (1 + last))>=engine.getNumPostsPerPage());
return ((topic.getTotalMessages() - (1 + last))>0);
} // end canScrollDown
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=");
buf.append(last+1).append("&p2=").append(last+engine.getNumPostsPerPage());
buf.append(last+1).append("&p2=").append(new_last);
return buf.toString();
} // end getScrollDownLocator