Quote:
1 if you delete a thread with a thank you post the thank you talbe doen not get deleted in the db. Can you add the function to remove the db entry if a thread get deleted?
|
i fixed this myself
in :
includes/functions_databuild.php
Find:
Code:
delete_post_index($post['postid']); //remove search engine entries
}
}
if (!empty($userbyuserid) AND !$threadinfo['isdeleted'])
{ // if the thread is already deleted, the posts have already been reduced
add this right above it :
Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thanks WHERE threadid=$threadid");
save and your done !
now anytime you Physically remove it it will also remove the thanks.