![]() |
Quote:
|
Quote:
This is his hack, so he will implement if any adition is good :> I'm not going to make an alias. |
Bug.
I found that username/userid are displayed not correctly, since you have different values for them. I would call each value seperately: look for the part for $softdelposts = $DB_site->query(" replace the whole query by PHP Code:
look for $vbphrase['soft_deleted_by'] = 'Deleted by'; Add above $vbphrase['soft_posted_by'] = 'Posted by'; look for PHP Code:
PHP Code:
look for PHP Code:
PHP Code:
|
Whoah. This was lotta stuff XD
I cant remember, but I dont think I counted the threads and posts in a seperate query. I dont like this because I try my best to optimise my hacks, reducing query load as much as possible. The counting worked when I tested it with multiple pages on my localhost, but my localhost is running low on posts from too much testing with this hack XD Im gonna look into all of this when I get home :) |
Quote:
I count thread and post, which also use 2 :) |
I tried your suggestions mtha, and now no records are shown..
Unless I went wrong somewhere, but I don't think so. |
Ive implemented both fixes, and they work just fine.
Cheers :) Updated to v2.5: To upgrade, replace softdeladmin.php with the one in the zip. |
Hmm.. The file in the zip worked, so it must have been something wrong that I did somewhere. My bad.. :disappointed:
4 of the threads listed have the date/time of 00:00, 1st Jan 1970.. Is there any explanation for this? |
Yes, they were deleted BEFORE this hack was installed. Try running this:
Quote:
|
That updated 1 of them, I still have 3 with that date.. :)
|
Try running it several times?
Lol only thing I can think of |
That query won't work on the other 3 because they weren't deleted by a moderator, so there's no record of them in the moderatorlog.. Is there any other way to get the timestamp?
|
Quote:
hehe, yes. Ask those who deleted it, when he/she did delete the post/thread and fill them in. If you make up some number, it wouldnt be different from 00:00, 1st Jan 1970 right? I dont know if there's any other place that record this timestamp, so for my forum, I just ... let it be, or try to ... hard delete them if they are worth to be deleted. if you can find the place where this deletion time recorded, let me know |
Quote:
|
Hm okay lol :p
Fixes/Features for v2.5:
I think thats about it :) And @ the missing timestamps: Unless they are posts/threads that you want sticking around for usage as evidence against spammers, why not just remove them and be done with it ;) |
Quote:
anyway, if post's owner want to delete a post, there's no reason for not delete them (unless it contains valuable information that you want to keep). |
PHP Code:
the reason i know is because i had some trouble with my functions_databuild.php and i didn't do the file edits until i realised that they were meant to be there for this hack |
If you do not perform that edit, the date stamp of the deleted posts/threads will appear as "00:00, 1st Jan 1970" (in whatever default date format you have).
So if you dont care much for when they are deleted, and you wouldnt use the sorting feature anyways, then its not needed :) |
Quote:
|
I am referring to future records ;)
If they dont get a date inserted, how will the script know what date they were deleted, hm? :p |
I want to record the IP (and proxy IP) to deletionlog too.
Recently one of my member delete alot of his posts, without reason. checking IP migh tell some more information about the origine of the deletion. This proxyIP detect can be used https://vborg.vbsupport.ru/showthrea...threadid=61331 |
solution (assuming my proxyIP detector installed):
Run this query: ALTER TABLE `deletionlog` ADD ipaddress VARCHAR(50) not null; ALTER TABLE `deletionlog` ADD proxyip VARCHAR(50) not null; In includes/functions_databuild.php: - add ,ipaddress, proxyip after deldate added from previous hack (2 places) - add ,'". IPADDRESS ."','". PROXYIP."' after " . TIMENOW . "' added from previous hack Detail: replace PHP Code:
PHP Code:
and replace PHP Code:
PHP Code:
If you dont want to add proxyIP address to the log, you have to remove all places saying proxyip :) Then, in the softdeladmin.php, you can add some lines showing the proxys of the one who deleted thread/post next to his name. |
I dont like the thought of assuming other hacks are installed... else cool addition :)
|
Quote:
Anyone who already installed my proxyIP hack dont need to do this part. in includes/init.php look for: PHP Code:
Add below PHP Code:
|
Quote:
I now can select all post or all thread seperately Look for PHP Code:
PHP Code:
PHP Code:
PHP Code:
Look for PHP Code:
PHP Code:
Look for PHP Code:
PHP Code:
Look for PHP Code:
PHP Code:
Have fun |
What's the difference between this hack and "Deleted Post and Thread Management"
https://vborg.vbsupport.ru/showthread.php?t=59807 |
Quote:
Quote:
and @ the check all seperately: I'll add it to the zip once I get home, cheers mtha :) |
When you add into your code, you might wanna check and find a good place for the javascript part. I added directly on my server, so I just break the php file, and add the html code in. it doesnt sound professional that way :D
I have many information displayed in the hack, so in my version, I also re-arrange the deleted post/thread table alittle bit For each deleted post or thread, I display information into 2 columns, Column 1: Thread title, Forum name, Original poster, Manage Column2: Deleted By, Date (delete), Reason, IPs it looks more organized to me :D |
Update to 2.7:
Code:
Update to 2.7: |
Quote:
- I think you forget to change the softdeladmin.php in your 2.7 zip file. |
Heh ok. Fixed zip.
Thanks :) |
Installed, but face the following problems :
1) Flag threads and flag posts dont work but Check All Entries does. 2) Something is wrong with the navigation. See below attachment : ( crop away the posts and threads though - these are just the headings ). Notice the number of soft deleted threads and posts, shouldnt that give me navigation ? Also how come it only shows the first 15 of both posts and threads , shouldnt it be 50 ? Please help |
any help here ? :)
|
This hack is VB 3.05 compatiable.
|
Quote:
The perpage is a settable option, and by default is set at 15. |
Quote:
Give it a try mate |
Revan,
do you have any plan on developing this hack? some suggestions for you: - Sort by delete user/poster/deletion date/post(thread) title (optional) - Sort by forum (individually) Search by: poster/delete user/reason/thread(post) name/forum ... |
Haven't looked at this in ages, since I have more skills now I might just be able to do those ;)
I'll see if I can get it done whenever I can be buggered to :p |
I deleted over 1000 soft deleted posts, but I still see over 300 blank entries that dont get deleted for some reason! Any fix?
Using vB 3.0.7 screenshot attached. |
Check the deletionlog table, and tell me what the entries look like, and I will be able to give you a query to make them go away for good this time :p
And as for the further development, Im not gonna touch this for some time, I am way too busy porting the RPG over to 3.5. Once that is done, I will port this as well. |
All times are GMT. The time now is 03:21 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:
|