PDA

View Full Version : forumdisplay columns question


thuffner
04-25-2003, 01:56 PM
I was wondering what the code was (and where to put the code) to get the resulting percentages as shown in the vBT forumdisplay.

Here's what I have, and the next post is what I want...

Thanks.

thuffner
04-25-2003, 01:58 PM
What I want...

FFArmageddon
04-25-2003, 03:53 PM
Can you elaborate on your issue more?

I don;t really understand what you need

thuffner
04-25-2003, 05:05 PM
Sorry. I want to reduce the width of the "Thread Starter" column. Mine's too big. Check out this page:
http://www.bondmovies.com/board/forumdisplay.php?forumid=6

Any ideas?

FFArmageddon
04-25-2003, 08:14 PM
easy:

In the forumdisplay_threadslist template, find:
----------------------------------------------------------------------
<td bgcolor="{tableheadbgcolor}" align="center" nowrap colspan="3"><smallfont>
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="forumid" value="$forumid">
<input type="hidden" name="pagenumber" value="$pagenumber">
<a href="$sorturl&sortorder=asc&sortfield=title"><font color="{tableheadtextcolor}"><b>Thread</b></font></a> $sortarrow[title]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=asc&sortfield=postusername"><font color="{tableheadtextcolor}"><b>Thread Starter</b></font></a> $sortarrow[postusername]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=replycount"><font color="{tableheadtextcolor}"><b>Replies</b></font></a> $sortarrow[replycount]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=views"><font color="{tableheadtextcolor}"><b>Views</b></font></a> $sortarrow[views]</smallfont></td>
$threadrating
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=lastpost"><font color="{tableheadtextcolor}"><b>Last Post</b></font></a> $sortarrow[lastpost]</smallfont></td>
----------------------------------------------------------------------

And replace it with:
----------------------------------------------------------------------
<td bgcolor="{tableheadbgcolor}" align="center" nowrap colspan="3" width="45%"><smallfont>
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="forumid" value="$forumid">
<input type="hidden" name="pagenumber" value="$pagenumber">
<a href="$sorturl&sortorder=asc&sortfield=title"><font color="{tableheadtextcolor}"><b>Thread</b></font></a> $sortarrow[title]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="15%" nowrap><smallfont><a href="$sorturl&sortorder=asc&sortfield=postusername"><font color="{tableheadtextcolor}"><b>Thread Starter</b></font></a> $sortarrow[postusername]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="5%" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=replycount"><font color="{tableheadtextcolor}"><b>Replies</b></font></a> $sortarrow[replycount]</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="5%" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=views"><font color="{tableheadtextcolor}"><b>Views</b></font></a> $sortarrow[views]</smallfont></td>
$threadrating
<td bgcolor="{tableheadbgcolor}" width="25%" nowrap><smallfont><a href="$sorturl&sortorder=desc&sortfield=lastpost"><font color="{tableheadtextcolor}"><b>Last Post</b></font></a> $sortarrow[lastpost]</smallfont></td>
----------------------------------------------------------------------

If you need different widths, just change the ones I put in

thuffner
04-26-2003, 07:15 AM
Would you happen to know what the values are for the vBT forumdisplay_threadlist? That'sactly how I want mine to be...

Brad
04-26-2003, 08:35 AM
Would you happen to know what the values are for the vBT forumdisplay_threadlist? That'sactly how I want mine to be...
When in doupt, view source.

CapitanoN6
08-07-2008, 01:21 PM
for 3.7?