vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Bump" topic on any edit (https://vborg.vbsupport.ru/showthread.php?t=32310)

SWFans.net 11-10-2001 08:03 PM

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?

JTMON 11-10-2001 09:59 PM

This would be very nice! I was suprised that vBulletin didn't already do this.

Admin 11-11-2001 11:56 AM

In editpost.php, add this:
Code:

  $DB_site->query("UPDATE thread SET lastpost='".time()."' WHERE threadid='$threadinfo[threadid]'");
right before this:
Code:

  $DB_site->query("DELETE FROM searchindex WHERE postid=$postid");
Should work. :)

SWFans.net 11-11-2001 05:13 PM

Goes to test it out :D

SWFans.net 11-11-2001 05:24 PM

Works like a dream. :D Thank you FireFly. :)

Admin 11-11-2001 05:27 PM

No problem. :)

SWFans.net 11-11-2001 05:54 PM

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.

Admin 11-11-2001 05:59 PM

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... :)

SWFans.net 11-11-2001 06:24 PM

Don't want any of those. I just wanted to let people know its behavior. :)

Freddie Bingham 11-12-2001 02:52 AM

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
  • Page Generation 0.00993 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete