![]() |
Can't find this in my function-databuild file......
Code:
--------------------------------------------------------------------------------------------------------------------------- Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "deletionlog WHERE primaryid = $postid AND type = 'post'"); |
What version do you have? of vB?
|
UPDATE: v1.01
By T Montana's request, this hack now also includes last 5 threads and posts in the navbar. Screenshot includes. Upgrade instructions also includes. |
3.0.7
|
In my 3.0.7, there is such a line. Try one of there (you can add the line after any of these):
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "editlog WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "moderation WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "reputation WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "post_parsed WHERE postid IN ($postids" . "0)"); $DB_site->query("DELETE FROM " . TABLE_PREFIX . "post WHERE postid IN ($postids" . "0)"); |
Great hack...although there's a problem:
From 1.0.1 install text: Code:
CREATE TABLE `favorites` ( error number: 1064 error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'dateline` int(100) unsigned NOT NULL default '0' )' at line 6 |
ehh a comma missing :nervous:
The right code: Code:
CREATE TABLE `favorites` ( |
Cool idea, I'm surprised this hasn't been done before.
You should always use TABLE_PREFIX though. You never know how people's databases are set up and they might rely on the prefix. |
Suggestions: When you click on "Complete List of Favorites" link in navbar, if there are none, can we say it, instead of looking at a page and wondering what that is supposed to be?
never mind, I forgot to put the conditionals |
overgrow.com is ran on vb2 and they have a hack like this.
|
All times are GMT. The time now is 04:18 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:
|