Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Soft Deleted Archive v2.7 Details »»
Soft Deleted Archive v2.7
Version: 2.5, by Revan Revan is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-21-2004 Last Update: 12-04-2004 Installs: 42
DB Changes
 
No support by the author.

Soft Deleted Archive v2.7

If you have a forum where you disallow your Moderators to Hard Delete posts, you might want to look over exactly what posts they have deleted, in case of disputes between staff and members. But running a huge forum with hundreds of threads, this task can get tiring.
This is where the Soft Deleted Archive comes in handy!

Features:
  • Seperate threads and posts
  • Name and link to forum of the thread/post
  • Username that posted the post
  • Username that deleted the post
  • Reason for deletion, if any were inputted
  • Date of thread/post deletion
  • For threads, link that takes you directly to the thread in question
  • For posts, link that takes you directly to the post in question, for manual managing
  • Limit the number of total entries to show per page
  • Ability to choose Sorting Order (Ascending or Descending)
  • Flagging Threads and Posts seperately
  • Fully phrased
  • Ability to Hard Delete selected threads/posts
  • Ability to Restore selected threads/posts

Screenshots attached.
They are abit outdated, but they present the gist of the hack.


If you use this mod,

Click it!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-29-2004, 09:23 AM
Bozkurtum's Avatar
Bozkurtum Bozkurtum is offline
 
Join Date: Aug 2003
Location: TH / Turkey
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful hack

Thanks
Reply With Quote
  #33  
Old 10-29-2004, 01:32 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
I want to sort the list by deldate, so that all the oldest deleted post are displayed first => I can take a look and hard-delete them first
actually, being able to reverse order back and fort, or choose ASC or DESC when displaying is better. You can either add another link (to reverse order) or have another option to chose sorting direction
Reply With Quote
  #34  
Old 10-29-2004, 02:08 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v2.2 is released, implementing fixes of the bugs mentioned already, and mtha's feature requests.

To upgrade, simply replace softdeladmin.php with the one in the zip.


Thanks for installing this hack!
Reply With Quote
  #35  
Old 10-29-2004, 03:21 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated.. Again.. Thanks
Reply With Quote
  #36  
Old 10-30-2004, 07:28 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have the assign physical delete hack installed and i seem to get errors with this one now


i'm getting error where i can't normally delete a post only physical delete and somehow people can delete there own threads

this is the error i get when i try to delete a post normally

Code:
Database error in vBulletin 3.0.0:

Invalid SQL: 
				REPLACE INTO deletionlog
				(primaryid, type, userid, username, reason, deldate)
				VALUES
				(, 'post', 1, 'wAmbAm',
				'', '1099124008')
			
mysql error: 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 ' 'post', 1, 'wAmbAm',
				'', '1099124008')' at line 4

mysql error number: 1064

Date: Saturday 30th of October 2004 01:13:29 AM
Script: http://www.wambam.net/vbulletin/editpost.php
Referer: http://www.wambam.net/vbulletin/editpost.php?do=editpost&p=4504
Username: wAmbAm
IP Address: 82.37.24.63
can anyone help me
i;ve disabled my forums until i can fix this
Reply With Quote
  #37  
Old 10-30-2004, 08:39 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using both hacks in perfect combination
Your problem is that whatever is assigning the primaryid seems to have broken.
Reply With Quote
  #38  
Old 10-30-2004, 03:00 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Revan
I am using both hacks in perfect combination
Your problem is that whatever is assigning the primaryid seems to have broken.
i repaired the error by using repair tables however its weird that using the none physical delete seems to be now deleting threads
Reply With Quote
  #39  
Old 10-31-2004, 09:08 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msimplay
i repaired the error by using repair tables however its weird that using the none physical delete seems to be now deleting threads
Total Entries: 1830

You've messed up with the counting part:
Page1:

Soft Deleted Threads (Showing thread 1 to 14, total: 14 threads)
Soft Deleted Posts (Showing post 1 to 15, total: 15 posts)


Page2
Soft Deleted Posts (Showing post 16 to 1830, total: 15 posts)

Page3:
Soft Deleted Posts (Showing post 31 to 1830, total: 15 posts)


also, here you have

$countlog = $DB_site->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "deletionlog");
$numentries = &$countlog['total'];
$numpages = ceil($numentries / $perpage);


your $countlog is post+thread counts
$perpage is actually post perpage AND thread perpage.

=> $countlog / $perpage is NOT correct $numpages.
You have to get
$countpost and $countthread

if $countpost > $countthread => $numentries = $countpost, else $entries = $countthread

otherwise, if you have more than one page of thread and post deleted, the last pages will give empty results.
Reply With Quote
  #40  
Old 10-31-2004, 09:22 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
Total Entries: 1830

You've messed up with the counting part:
Page1:

Soft Deleted Threads (Showing thread 1 to 14, total: 14 threads)
Soft Deleted Posts (Showing post 1 to 15, total: 15 posts)


Page2
Soft Deleted Posts (Showing post 16 to 1830, total: 15 posts)

Page3:
Soft Deleted Posts (Showing post 31 to 1830, total: 15 posts)


also, here you have

$countlog = $DB_site->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "deletionlog");
$numentries = &$countlog['total'];
$numpages = ceil($numentries / $perpage);


your $countlog is post+thread counts
$perpage is actually post perpage AND thread perpage.

=> $countlog / $perpage is NOT correct $numpages.
You have to get
$countpost and $countthread

if $countpost > $countthread => $numentries = $countpost, else $entries = $countthread

otherwise, if you have more than one page of thread and post deleted, the last pages will give empty results.
hmm dunno i seemed to have fixed it by rehacking my functions_databuild.php
i've left the rest untouched
Reply With Quote
  #41  
Old 10-31-2004, 10:15 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry msimplay, I didnt mean to quote your post. I am talking about the whole hack.

Revan

Here's what I use, I think it'd be better

Look for (Line 114)

PHP Code:
    $countlog $DB_site->query_first("SELECT COUNT(*) AS total    FROM " TABLE_PREFIX "deletionlog"); 
Replaced by

PHP Code:
//    $countlog = $DB_site->query_first("SELECT COUNT(*) AS total    FROM " . TABLE_PREFIX . "deletionlog");
 
$countthreads $DB_site->query_first("SELECT COUNT(*) AS total FROM " TABLE_PREFIX "deletionlog WHERE type = 'thread'");
 
$countposts $DB_site->query_first("SELECT COUNT(*) AS total FROM " TABLE_PREFIX "deletionlog WHERE type = 'post'");
     
$totalcount = ($countthreads['total'] + $countposts['total']);
  if (
$countthreads['total'] > $countposts['total']) {
      
$numentries = &$countthreads['total'];
  }
  else 
$numentries = &$countposts['total']; 

line 171, look for
PHP Code:
         <td class="thead">' . $vbphrase['total_entries'] . '' . $numentries . ' 
replaced by
PHP Code:
              <td class="thead">' . $vbphrase['total_entries'] . '' . $totalcount . ' 
line 207. look for
PHP Code:
         $threads $DB_site->query_first("SELECT COUNT(*) AS threads FROM " TABLE_PREFIX "deletionlog WHERE `type`='thread'");
              
$totalthreads $threads['threads'];
             
$iifcalc iif($page == 01, (($page 1) * $perpage) + 1);
              
$threadpage $totalthreads $iifcalc;
              
$threadpage $threadpage $iifcalc;
             
$threadpage iif($page == 0$numthreads $page$threadpage); 
replaced by

PHP Code:
            $totalthreads $countthreads['total'];
                      
$iifcalc iif($page == 01, (($page 1) * $perpage) + 1);
                      
$threadpage = ($iifcalc $perpage 1);
                      if (
$threadpage $totalthreads) {$threadpage $totalthreads;} 
Line 269, look for

PHP Code:
            $totalposts $numentries $numthreads;
             
$iifcalc iif($page == 01, (($page 1) * $perpage) + 1);
             
$postpage $totalposts $iifcalc;
             
$postpage $postpage $iifcalc;
             
$postpage iif($page == 0$numposts $page$postpage);
             
print_table_header("$vbphrase[soft_deleted_posts] (Showing post $iifcalc to $postpage, total: $numposts posts)"); 
replaced by


PHP Code:
            $totalposts $countposts['total'];
            
$iifcalc iif($page == 01, (($page 1) * $perpage) + 1);
 
             
$postpage = ($iifcalc $perpage 1);
             if (
$postpage $totalposts) {$postpage $totalposts;}
             
print_table_header("$vbphrase[soft_deleted_posts] (Showing post $iifcalc to $postpage, total: $totalposts posts)"); 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05447 seconds
  • Memory Usage 2,361KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete