The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vb3 : put closed threads down the page
Hello,
im looking for a hack that will move threads to the bottom of the threadlist when they are closed. (see attach image) thnx in advance |
#2
|
||||
|
||||
up
|
#3
|
||||
|
||||
*lazy coder*
Since I'm too lazy to do it, I'll tell you how to figure out how to do it ^.~ Okay, um, if I weren't lazy, I'd go into PHPMyAdmin to check the DB for a boolean flag that triggers closed-ness. Then I'd look for the function that outputs threads and modify the SQL query to exclude closed threads. Then I'd copy and paste and modify the SQL query to explicitly get closed threads. Remember that it shouldn't be hard to figure out! Programming is in english. Something like: Code:
SELECT * FROM thread_table WHERE closed = false; // part 1 SELECT * FROM thread_table WHERE closed = true; // part 2 |
#4
|
||||
|
||||
Its a bad idea to introduce extra queries when they arn't needed at all. It should be easy enough to just change the order it selects the posts. I don't have the vB3 code with me so I'll look into it when I get home.
|
#5
|
||||
|
||||
Yeah, true.
Find the ORDER BY clause of the SQL query and throw in the closed field |
#6
|
||||
|
||||
thnx guys ... ill be waiting NTLDR
|
#7
|
||||
|
||||
In forumdisplay.php find around line 637:
PHP Code:
PHP Code:
|
#8
|
||||
|
||||
thnx ntldr im goin to try it out tonight
|
#9
|
|||
|
|||
i am trying this on VB 3.6 but i cant seem to get it to work properly. Does anyone have an idea how to make this work on 3.6?
|
#10
|
|||
|
|||
*bump*
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|