![]() |
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?
|
This would be very nice! I was suprised that vBulletin didn't already do this.
|
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"); |
Goes to test it out :D
|
Works like a dream. :D Thank you FireFly. :)
|
No problem. :)
|
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.
|
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... :) |
Don't want any of those. I just wanted to let people know its behavior. :)
|
vBulletin used to do this by default but I changed it as users found it fun to bump posts just be editing them.
|
All times are GMT. The time now is 07:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|