Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
Details »»

Version: , by azerty (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-22-2001 Last Update: Never Installs: 0
 
No support by the author.

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 ?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-22-2001, 05:14 PM
Guest
 
Posts: n/a
Default

What version of vB are you talking about?
Reply With Quote
  #3  
Old 02-22-2001, 05:20 PM
Guest
 
Posts: n/a
Default

v1.14
Reply With Quote
  #4  
Old 02-22-2001, 07:46 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #5  
Old 02-22-2001, 08:09 PM
Guest
 
Posts: n/a
Default

Just the first point to start.

In forumdisplay.php find (can look different in your file)
Code:
$threads=$DB_site->query("SELECT thread.iconid, icon.title AS icontitle, icon.iconpath,threadid,thread.title AS title,
                                 open,lastpost,replycount,postusername,lastposter,notes,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)
Reply With Quote
  #6  
Old 02-23-2001, 01:15 PM
Guest
 
Posts: n/a
Default

Thanks dude
Reply With Quote
  #7  
Old 02-23-2001, 01:26 PM
Guest
 
Posts: n/a
Default

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=$foru mid"><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=$foru mid"><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=$foru mid">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>
Reply With Quote
  #8  
Old 02-23-2001, 01:38 PM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #9  
Old 02-23-2001, 02:14 PM
Guest
 
Posts: n/a
Default

/me slaps himself in the face with a giant baseball bat
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04177 seconds
  • Memory Usage 2,260KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete