The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Is there already a hack that will "bump" a topic to the top if there is an edit to any of the posts by any user? If not, is it possible?
|
#2
|
||||
|
||||
This would be very nice! I was suprised that vBulletin didn't already do this.
|
#3
|
||||
|
||||
In editpost.php, add this:
Code:
$DB_site->query("UPDATE thread SET lastpost='".time()."' WHERE threadid='$threadinfo[threadid]'"); Code:
$DB_site->query("DELETE FROM searchindex WHERE postid=$postid"); |
#4
|
||||
|
||||
Goes to test it out
|
#5
|
||||
|
||||
Works like a dream. Thank you FireFly.
|
#6
|
||||
|
||||
No problem.
|
#7
|
||||
|
||||
The only downside to it is that it doesn't adjust the "last posted by" on the index, but that is actually a very minor thing that I can live without.
|
#8
|
||||
|
||||
Yeah, that's how it works.
You could in theory add another field to the thread table, let's say "lastactivity" and order everything by it, but it would be such a headache... |
#9
|
||||
|
||||
Don't want any of those. I just wanted to let people know its behavior.
|
#10
|
||||
|
||||
vBulletin used to do this by default but I changed it as users found it fun to bump posts just be editing them.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|