Re: thread list indentation

2001-12-08 04:11:33

i want messages indented by thread ...but not getting with this code
check out my code in resource file for thread index...

<!--=== Thread Index Page Customizations
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
int incCount(int incCount){

 return incCount;

int decCount(int incCount){

 return incCount;

String getPadding(int incCount){
 String padString= "";
 int i=0;
 for(i = 0; i < incCount; i++){
  padString= "&nbsp;&nbsp;&nbsp;=>";
 return padString;
String  changecolor (String trcolor,int trcount)
 if (trcolor.equals("#f18fb"))
 else if (trcolor.equals("#BEAF5"))
 return trcolor;

String showNewMessage(String msgDate)
 java.util.Date msgdate=new java.util.Date (msgDate);
 java.util.Calendar Calender = java.util.Calendar.getInstance ();
 java.util.Date todayDate=new java.util.Date (Calender.get(Calender.YEAR) -
 if (!todayDate.after (msgdate))
  return "<img src='/kb/images/newest.gif' border=0>";
  return "";

String sListName="$LISTNAME$";
int incCount=0;
String padString="";
int i=0;
String trcolor="";
int trcount=0;
String spaces="";
int j=0;


 <title>$LISTNAME$ - Mailing List Archive by Thread</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <link rel="stylesheet" href="/kb/css/mailinglist.css">
<body bgcolor="#FFFFFF">
<form name="frmMain">
<input name="LISTNAME" type="hidden" value="<%=sListName%>" >
</form >

<table width="100%" border=0 align="center" cellspacing=0 cellpadding=0>
      <td><b>Messages by Thread</b></td>
     <td ><b>List Name: <%=sListName%> </b></td>
  <td align="left"><b>Messages: $NUMOFMSG$ </b></td>
  <td  align="right"><b>Last updated: $LOCALDATE$</b></td>
    <tr><td colspan=2 heignt="3">&nbsp;</td></tr>
<table width="100%" border=0 align="center" cellspacing=0 cellpadding=0>




<% trcolor=changecolor (trcolor,trcount);%>

<tr bgcolor="<%=trcolor%>"> <% trcount ++;%>

     <td width="65%" height="20">&nbsp;<a $A_ATTR$>$SUBJECT$</</a></td>
     <td width="300" height="20">$MSGGMTDATE(CUR;%a %d %b, %H:%M)$ by
$FROMNAME$<%=showNewMessage ("$MSGGMTDATE$")%></td>


incCount = incCount(incCount); %>

<% trcolor=changecolor (trcolor,trcount);%>
<tr bgcolor="<%=trcolor%>" valign="center">

     <td width="65%" height="20" valign="center">&nbsp;<%
padString=getPadding (incCount); out.print (padString);%><a
     <td width="300" height="20" valign="center">$MSGGMTDATE(CUR;%a %d %b,
%H:%M)$ by $FROMNAME$<%=showNewMessage ("$MSGGMTDATE$")%></td>








<% incCount = decCount(incCount); %>





<% trcolor=changecolor (trcolor,trcount);%>
<tr bgcolor="<%=trcolor%>"><% trcount++; %>

     <td width="*" height="20">&nbsp;<a $A_ATTR$>$SUBJECT$</</a></td>
     <td width="300" height="20">$MSGGMTDATE(CUR;%a %d %b, %H:%M)$ by
$FROMNAME$<%=showNewMessage ("$MSGGMTDATE$")%></td>



  <table width="100%" border=0 align="center" cellspacing=0 cellpadding=0>
     <td colspan=3 height="25">
  [<a href="maillist.jsp">View By Date</a>]
  [<a href="#"
,top=140,left=250,width=300,height=300'); return false; ">Subscribe</a>]
  [<a href="#"
s=no,top=140,left=250,width=300,height=300'); return false;



----- Original Message -----
From: "Earl Hood" <ehood(_at_)hydra(_dot_)acs(_dot_)uci(_dot_)edu>
To: <mhonarc(_at_)ncsa(_dot_)uiuc(_dot_)edu>
Sent: Thursday, December 06, 2001 11:24 PM
Subject: Re: thread list indentation

On December 5, 2001 at 13:27, "niraj" wrote:

1.  what tags are used to indent messages if they belong to the same
 thread and maintain the level of threads by using resource file. I want
 to format the messages for showing messages within same thread ..I get
 the indentation of threads when i am not using rcfile but it losts
 using resource file...

The Page Layout section of the documentation provides a summary of the
resources that affect the layout of the thread index pages.  Since you
have stated that when you specify a resource file the layout is not
what you want, then apparently there are settings in the resource
file that change the value of the resources that affect thread index
page layout.  You will need to correct these settings to get the
desired layout.

If you are having trouble debugging your resource file, we may be able to
help if you provide a pointer to your resource file for us to look


<Prev in Thread] Current Thread [Next in Thread>