vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Deleting posts updates thread.dateline column? (https://vborg.vbsupport.ru/showthread.php?t=197939)

tombr 12-03-2008 09:46 PM

Deleting posts updates thread.dateline column?
 
Hello,

I noticed that upon deleting a post, the thread.dateline column is updated with the current timestamp. How can I avoid this? I tried to find where the delete function is but I couldn't find it. Also why does this happen? I'm not sure why the script needs to update the thread's start date when you delete a post.

Also, are there any side effects to have another script update the thread.dateline column? The reason for this is that I wanted to have the ability to manually "bump" some specific threads.

thanks a lot

Tom

Lynne 12-03-2008 09:57 PM

What method did you use to delete the post? It should not update the time on the thread at all. You should click on the box next to the post, then go to the Moderation drop down and select "delete posts" and then hit Go. You'll then get to choose to hard delete or soft delete the post.

The thread.dateline column is the date the thread was created. It should not be used to 'bump' posts and in fact I don't know that it would since that doesn't change the date on the posts and those are usually used to put items in order.

tombr 12-03-2008 10:19 PM

Hi Lynne

Actually I was wrong, when you delete a post, it doesn't update the thread.dateline column BUT what happens is this:

1) I have a forum, its default sort field is "Thread Start Time" - fine
2) I manually change the thread.dateline column of one of the threads to the current timestamp - giving it a "bump" effect - works fine, thread shows up on top
3) But when I delete one of the posts of this "bumped" thread, its thread.dateline value reverts back to the previous value before the "bump"

So I need to know what are the files and functions involved when deleting a post. File editpost.php has this: $postman->delete(...

I've been looking in the includes folder but can't find where this delete method is being defined - does anyone know?

Also it seems that the thread.dateline column is just being used to sort the threads and manually altering this columns value doesn't have any side effects, I guess.


All times are GMT. The time now is 10:05 PM.

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.01341 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete