PDA

View Full Version : Stop-Treads-From-Moving-HaCK !


azerty
02-22-2001, 02:34 PM
Is it possible to make a hack , or edit something in the templates so that the treads would STOP movind around when someone replies on em ? I mean it's really unhandy on our forum and we would like the threads to just stay in their places. Anyone know a way to do this ?

02-22-2001, 05:14 PM
What version of vB are you talking about?

02-22-2001, 05:20 PM
v1.14

02-22-2001, 07:46 PM
Its not a big deal for me, but I have had people request this along with threaded view. Personally I don't like the threaded view, but some do.

It might be nice as a per-forum option, but I would rather see other useful features be added or worked on (at least get version 2 officially released) before adding something like this, my personal opinion though.

02-22-2001, 08:09 PM
Just the first point to start.

In forumdisplay.php find (can look different in your file)
$threads=$DB_site->query("SELECT thread.iconid, icon.title AS icontitle, icon.iconpath,threadid,thread.title AS title,
open,lastpost,replycount,postusername,lastposter,n otes,views,userindex,dateline,topped
FROM thread
LEFT JOIN icon ON (icon.iconid = thread.iconid)
WHERE forumid=$forumid AND visible=1 $datecut
ORDER BY topped DESC,lastpost
DESC LIMIT $limitlower,$perpage");

change the lastpost to threadid

Now the threads will be sorted by their id. New threads at the top and older threads at the bottom.

That's it? (perhaps) ;)

02-23-2001, 01:15 PM
Thanks dude

02-23-2001, 01:26 PM
I can't find it

{htmldoctype}
<HTML>
<HEAD><TITLE>$bbtitle - $forumtitle</title>
$cssinclude
</head>
<body>
$header

<td valign="top" align="left"><a href="index.php"><img src="$titleimage" border="0"></a></td>

<table border="0" width="100%" cellpadding="2">
<form action="forumdisplay.php" method="get">
<tr><td width="100%">

<normalfont><b><a href="index.php">$bbtitle</A> &gt; $forumtitle</b><br><smallfont>$moderatedby</smallfont></normalfont>

</td><td valign="bottom" align="right" nowrap>
<normalfont><b>Show threads from:</b></normalfont>
<INPUT TYPE="HIDDEN" NAME="forumid" VALUE="$forumid">
<SELECT NAME="daysprune">
<OPTION value="1" $daysprune1selected>Last day
<OPTION value="2" $daysprune2selected>Last 2 days
<OPTION value="5" $daysprune5selected>Last 5 days
<OPTION value="10" $daysprune10selected>Last 10 days
<OPTION value="20" $daysprune20selected>Last 20 days
<OPTION value="30" $daysprune30selected>Last 30 days
<OPTION value="45" $daysprune45selected>Last 45 days
<OPTION value="60" $daysprune60selected>Last 60 days
<OPTION value="75" $daysprune75selected>From last 75 days
<OPTION value="100" $daysprune100selected>From last 100 days
<OPTION value="365" $daysprune365selected>From the last year
<OPTION value="1000" $daysprune1000selected>Show all threads
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Go"></smallfont>
</TD></tr></form>
</table>

<table border=0 cellpadding=4 border=0 cellspacing=1 width="100%">
<tr bgcolor="{tableheadbgcolor}">
<td colspan=3>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<A HREF="newthread.php?action=newthread&forumid=$forumid"><IMG SRC="$newthreadimage" BORDER=0 ALT="Post New Thread"></A>
</td>
<td width="100%" align="center">
<smallfont color="{tableheadtextcolor}"><B>Thread</A></B></smallfont>
</td>
</tr></table>

</td>

<td align=center nowrap><smallfont color="{tableheadtextcolor}"><B>Thread Starter</B></smallfont>
</td>
<td align=center><smallfont color="{tableheadtextcolor}"><B>Replies</B></smallfont>
</td>
<td align=center><smallfont color="{tableheadtextcolor}"><B>Views</B></smallfont>
</td>
<td align=center nowrap>

<smallfont color="{tableheadtextcolor}"><B>Last Post</A></B></smallfont>

</td></tr>

$announcement
$forumdisplaybits

<TR bgcolor="{tableheadbgcolor}">
<TD valign="middle" width="100%" colspan="7">

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>

<td valign="middle">
<A HREF="newthread.php?action=newthread&forumid=$forumid"><IMG SRC="$newthreadimage" BORDER=0 ALT="Post New Thread"></A>
</td>

<td width="100%" valign="middle" align="right">
<smallfont color="{tableheadtextcolor}"><b>
All times are $timezone. All dates are in Month-Day-Year format.</b></smallfont>
</td>

</tr></table>

</table>

<table border="0" width="100%" cellpadding="2">
<tr><td nowrap valign="top">

$forumjump

</td><td valign="top" align="right">
<smallfont>$pagenav</TD></tr></table>

<center><table border=0><tr>
<td><img src="images/newfolder.gif" border=0 alt="New Posts"></td>
<td><b><smallfont>New Posts</smallfont></b></td>
<td><img src="images/folder.gif" border=0 alt="No New Posts"></td>
<td><b><smallfont>No New Posts</smallfont></b></td>
<td><img src="images/newhotfolder.gif" border=0 alt="Hot Thread"><img src="images/hotfolder.gif" border=0 alt="Hot Thread"></td>
<td><b><smallfont>More than $hotnumber replies</smallfont></b></td>
<td><IMG SRC="images/lock.gif" BORDER=0 ALT="Closed Thread"></td>
<td><b><smallfont>Closed thread</smallfont></b>
</tr></table></center>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="100%">
<p><smallfont><b>Forum Rules:</b><br>
$forumrules</smallfont></p>
</td><td nowrap>
<p><smallfont><b>Admin Options:</b><br>
<a href="moderator.php?action=viewqueue&forumid=$forumid">View Moderation Queue</a><br>
<a href="moderator.php?action=move&forumid=$forumid">Mass Move</a><br>
<a href="moderator.php?action=prune&forumid=$forumid">Mass Prune</a>
</smallfont></td></tr></table>

$footer
</body>
</html>

02-23-2001, 01:38 PM
You need to look in the correct place.. You are looking in a template. Whereas the code you need to change is in the FORUMDISPLAY.PHP file.

02-23-2001, 02:14 PM
/me slaps himself in the face with a giant baseball bat