vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Soft Deleted Archive v2.7 (https://vborg.vbsupport.ru/showthread.php?t=70878)

Revan 10-21-2004 10:00 PM

Soft Deleted Archive v2.7
 
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,
https://vborg.vbsupport.ru/
Click it!

nexialys 10-22-2004 03:49 PM

cool, these days it seems that more and more features are added to the Moderation side... this is a good thing.. they were missing!

Polo 10-22-2004 03:51 PM

Great Job Revan ;)

Thanks

Xenon 10-22-2004 03:57 PM

Looking good.

Definitelly a good idea.

Oblivion Knight 10-22-2004 04:11 PM

Great! :)

Tigga did something similar to this a while ago, but it lacked options and hasn't been updated since it was released.. Thanks for sharing.

the Sandman 10-22-2004 06:10 PM

Any information on compatability with earlier versions of vB3?

Surtain23 10-22-2004 06:17 PM

Great hack! Installing.

assassingod 10-22-2004 08:07 PM

Really nice idea!

Revan 10-22-2004 08:23 PM

Quote:

Originally Posted by the Sandman
Any information on compatability with earlier versions of vB3?

I cannot tell as I only tested it on 3.0.3
But as long as the table structure of the involved tables did not change (too much), then it does still work.

And thanks for all the nice feedback, people :)

mtha 10-22-2004 10:07 PM

very nice.
I've been using Tigga hack, now it's time to move on :)
https://vborg.vbsupport.ru/showthrea...ost+Management


will take a look and install tonight

I'd like to have this information

- Forum(board) name that the post/thread belong to

- Thread title (already available)
- Deleted by: (already available)
- Date of deletion (need addon)
- Reason:


and also limit how many post/thread displayed per page? there may be too many post softdeleted.

Revan 10-22-2004 10:52 PM

Ill get to work on adding the requested features tomorrow :)
About the limit, currently there's no limit, but I suppose I should add one lol. Thats gonna be a bish to test out tho, havnt got Inline Mod Tools installed on localhost :p

Remi 10-23-2004 01:26 AM

very useful hack

Thanks

Logikos 10-23-2004 03:00 AM

Nice work man

Revan 10-23-2004 11:34 AM

v2 has been released, I fulfilled the feature requests of mtha.
The following features was added to the mod:
  • Name and link to forum of the thread/post
  • Reason for deletion, if any were inputted
  • Date of thread/post deletion
  • Limit the number of total entries to show per page

To upgrade, simply download the upgrade zip and follow the instructions there.
This zip will be deleted in 1 week, after that you will have to redo the file edits as described in the main zip readme.

Also, if you use this mod,

mtha 10-23-2004 03:28 PM

that's GREAT! Thank you very much.

you may want to consider adding a phrase "del_deleted_by" for Name?

Oblivion Knight 10-23-2004 04:11 PM

Thanks for the update, running smooth.. :)

mtha 10-23-2004 09:37 PM

In your file,
Code:

          $softdelposts = $DB_site->query("
                  SELECT
                          deletionlog.*,
                          deletionlog.primaryid AS postid,
                deletionlog.type AS deltype,                       
                          deletionlog.userid AS userid,
                          post.*,
                          post.title AS posttitle,
                          post.threadid AS threadid,
                          thread.*,
                          thread.title AS threadtitle,
                          thread.forumid AS forumid,
                          forum.*,
                          forum.title AS forumtitle,

post.* also has the userid value, this will take over the deletionlog.userid I would bring that line deletionlog.userid AS userid to the end of serquence, and put a link to deletor's profile:

In thread section
<strong>". $vbphrase['soft_deleted_by'].":</strong> <a href='" . $vboptions['bburl'] . "/member.php?u=". $thread['userid'] . "' target='_blank'>" . stripslashes($thread['username']) . "</a><br>


In Post section
<strong>". $vbphrase['soft_deleted_by'].":</strong> <a href='" . $vboptions['bburl'] . "/member.php?u=". $post['userid'] . "' target='_blank'>" . stripslashes($post['username']) . "</a><br>


PS. I added a phrase called soft_deleted_by as GLOBAL with the text: Deleted by (instead of using "NAME" phrase).



adding
print_table_break();

on top of
print_table_header($vbphrase['soft_deleted_posts']);

would also seperate two sections.


also, showing the total of soft deleted posts/threads (and/or the current number of thread) would be nice

something like

Soft Deleted Threads (showing thread 16 to 30 in total of 82 threads)
Soft Deleted Posts (showing post 16 to 30 in total of 511 posts)


here's the code:

Look for:
$countlog = $DB_site->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "deletionlog");
Add after
PHP Code:

    $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'"); 


Look for (the first one)

print_table_header($vbphrase['soft_deleted_threads']);
while ($thread = $DB_site->fetch_array($softdelthreads))


Replace by

print_table_header("$vbphrase[soft_deleted_threads] (Total: $countthreads[total] threads)");
while ($thread = $DB_site->fetch_array($softdelthreads))

Look for

print_table_header($vbphrase['soft_deleted_posts]);
while ($post = $DB_site->fetch_array($softdelposts))

replace by

print_table_header("$vbphrase[soft_deleted_posts] (Total: $countposts[total] posts)");
while ($post = $DB_site->fetch_array($softdelposts))

Revan 10-23-2004 11:48 PM

Quote:

Originally Posted by mtha
In your file,
Code:

          $softdelposts = $DB_site->query("
                  SELECT
                          deletionlog.*,
                          deletionlog.primaryid AS postid,
                deletionlog.type AS deltype,                       
                          deletionlog.userid AS userid,
                          post.*,
                          post.title AS posttitle,
                          post.threadid AS threadid,
                          thread.*,
                          thread.title AS threadtitle,
                          thread.forumid AS forumid,
                          forum.*,
                          forum.title AS forumtitle,

post.* also has the userid value, this will take over the deletionlog.userid I would bring that line deletionlog.userid AS userid to the end of serquence, and put a link to deletor's profile:

In thread section
<strong>". $vbphrase['soft_deleted_by'].":</strong> <a href='" . $vboptions['bburl'] . "/member.php?u=". $thread['userid'] . "' target='_blank'>" . stripslashes($thread['username']) . "</a><br>


In Post section
<strong>". $vbphrase['soft_deleted_by'].":</strong> <a href='" . $vboptions['bburl'] . "/member.php?u=". $post['userid'] . "' target='_blank'>" . stripslashes($post['username']) . "</a><br>


PS. I added a phrase called soft_deleted_by as GLOBAL with the text: Deleted by (instead of using "NAME" phrase).



adding
print_table_break();

on top of
print_table_header($vbphrase['soft_deleted_posts']);

would also seperate two sections.


also, showing the total of soft deleted posts/threads (and/or the current number of thread) would be nice

something like

Soft Deleted Threads (showing thread 16 to 30 in total of 82 threads)
Soft Deleted Posts (showing post 16 to 30 in total of 511 posts)


here's the code:

Look for:
$countlog = $DB_site->query_first("SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "deletionlog");
Add after
PHP Code:

    $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'"); 


Look for (the first one)

print_table_header($vbphrase['soft_deleted_threads']);
while ($thread = $DB_site->fetch_array($softdelthreads))


Replace by

print_table_header("$vbphrase[soft_deleted_threads] (Total: $countthreads[total] threads)");
while ($thread = $DB_site->fetch_array($softdelthreads))

Look for

print_table_header($vbphrase['soft_deleted_posts]);
while ($post = $DB_site->fetch_array($softdelposts))

replace by

print_table_header("$vbphrase[soft_deleted_posts] (Total: $countposts[total] posts)");
while ($post = $DB_site->fetch_array($softdelposts))

About the post.*, when I tested it on localhost it always showed the mod name that deleted it, regardless of who the post belonged to.

I am implementing your changes on localhost now, and gonna see if theres a way to optimise it some (I always try my best to keep my query count to an all time low). Thanks alot for your suggestions :) Users like you, that are able to come up with simple yet very useful suggestions (even writing them :p), is what makes hacks great and hack authors happy :)


//peace

mtha 10-24-2004 01:03 AM

Bug ... (that might come out from original version of vB)

If you has a "soft deleted thread" containing some "soft deleted posts"

If you "Hard delete" the thread, the co-responding "soft deleted posts" will be undefined ($post['postid'] will not exists, only $post['primaryid'] exists)

Check that out, and it might be a bug in vB.com too. I dont know if it is, or if it has beed reported over there.




Additional suggestion.

01:
This migh not be functionally important, but has "management" cleaner.

Giving the option to manage the thread and post seperately.

Says if you have

/forum/admincp/softdeladmin.php?type=thread, it will only process the deleted threads

/forum/admincp/softdeladmin.php?type=post, it will only process the deleted posts

if no value given, do both (like what you already have)


02: CHECK ALL option. Can you make it to check all thread and check all post seperately?


03. Thread Name/Moderator Name/Thread Link phrase should be changed :) I dont think you need that phrase at all.



... development ...
I just check the moderatorlog table, and dateline information for any moderating action is recored in there (with postid and threadid if applicable).
However, for one post, there could be many record in the log, including editing, moving, deleting/undeleting many times. So I expect (guess) the latest date record for one post should be the deletion time
... well but this will introduce few more searching, sorting ... queries ...

dont know if we should use this one or just use a new date record, for convenient

(just look that back because the new deldate is only applicable for posts/threads that are deleted after this hack installed. ... or we should just update the value from moderatorlog to deletionlog ONCE)

we can also sort them by date (asc or des - dont even need to have deldate value) so all recent deletion log displayed first.

just ideas, I dont know if all of them are useful :D

Revan 10-24-2004 01:37 AM

Quote:

Originally Posted by mtha
Bug ... (that might come out from original version of vB)

If you has a "soft deleted thread" containing some "soft deleted posts"

If you "Hard delete" the thread, the co-responding "soft deleted posts" will be undefined ($post['postid'] will not exists, only $post['primaryid'] exists)

Check that out, and it might be a bug in vB.com too. I dont know if it is, or if it has beed reported over there.




Additional suggestion.

01:
This migh not be functionally important, but has "management" cleaner.

Giving the option to manage the thread and post seperately.

Says if you have

/forum/admincp/softdeladmin.php?type=thread, it will only process the deleted threads

/forum/admincp/softdeladmin.php?type=post, it will only process the deleted posts

if no value given, do both (like what you already have)


02: CHECK ALL option. Can you make it to check all thread and check all post seperately?


03. Thread Name/Moderator Name/Thread Link phrase should be changed :) I dont think you need that phrase at all.

About that bug, I havnt really tried it. Do you mean if you hard delete a thread through this hack or vB itself?

Sug #1: This Ill do tomorrow. 4.30 AM here XD
Sug #2: Not poss as I am using vB internal JScript (I know no JS myself), and it checks all the elements in a form.

mtha 10-24-2004 01:56 AM

Quote:

Originally Posted by Revan
About that bug, I havnt really tried it. Do you mean if you hard delete a thread through this hack or vB itself?

Sug #1: This Ill do tomorrow. 4.30 AM here XD
Sug #2: Not poss as I am using vB internal JScript (I know no JS myself), and it checks all the elements in a form.

I did the hard delete through this hack, and it (after deleting some threads) show up some post that are undeletable (throughj this hack) since there's no postid responding to it (dont need to delete it actually, but the records for soft delete posts in deletionlog are still exist)
I did not try in vB itself, that's why I said I thought it'd be vB bug since you use vB delete_thread and delete_post functions.

Will take some more look at that for you.
=================
update1. bing. I hit the right spot. it's vB bug, not removing post record in deletionlog if its thread is physically removed
... going to check vB bug list :P

update2. bing. actually I did report this in vB but getting no answer :D
http://www.vbulletin.com/forum/showt...=delete+thread
----------------------


about #2, if you can do #1, then #2 will automatically be solved, you just go to manage post (or thread) alone and select all :P


ps. I add some more stuff on the post above.

This hack is very usefull for me.
I attempted to write (actually advance Tigga's hack), but didnt have time to do so. Now you make it real. Thank you very much :)

mtha 10-25-2004 02:47 PM

The bug was reported here. Can you confirm?
http://www.vbulletin.com/forum/bugs....iew&bugid=3455

This bug hit directly to this hack, so I'd think we should urge vB.com to fix :D

Revan 10-25-2004 04:58 PM

I will check it out later :)

Blam Forumz 10-25-2004 06:09 PM

Revan! Stop releasing new hacks ¬¬ get back to work on RPG v3

anyway nice hack thanks

Revan 10-26-2004 05:07 AM

XD which part of the middle section of my sig didnt you understand ;)

EDIT:
Quote:

Originally Posted by mtha
The bug was reported here. Can you confirm?
http://www.vbulletin.com/forum/bugs....iew&bugid=3455

This bug hit directly to this hack, so I'd think we should urge vB.com to fix :D

Yes, I can confirm. I am posting a reply in this bug report as soon as I posted this :)

mtha 10-27-2004 07:14 PM

Quote:

Originally Posted by Revan
XD which part of the middle section of my sig didnt you understand ;)

EDIT:
Yes, I can confirm. I am posting a reply in this bug report as soon as I posted this :)

Cool, the bug was fix by Freddie over vB.com
http://www.vbulletin.com/forum/bugs....iew&bugid=3455


Now you can keep advancing the hack Revan



Bug. When hard deleting a thread, it doesnt come back to the deleted list. can anyone confirm?



If you want to update deldate from moderator log (if available), these two querries could help:


UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'post' AND deletionlog.deldate=0 AND (moderatorlog.postid = deletionlog.primaryid) AND moderatorlog.action LIKE 'post %deleted%';

UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'thread' AND deletionlog.deldate=0 AND (moderatorlog.threadid = deletionlog.primaryid) AND moderatorlog.action LIKE 'thread %deleted%';


Note: if you have prune your moderator log sometime, there will be some date missing in deldate (since you dont have the information in moderatorlog either)


Sort ASC by deldate:

Look for (2 places
LIMIT " . (($page - 1) * $perpage) . ", $perpage

Add after:
ORDER BY `deldate` ASC

Revan 10-28-2004 10:33 AM

Quote:

Originally Posted by mtha
Bug. When hard deleting a thread, it doesnt come back to the deleted list. can anyone confirm?

Ill look into this in a few.



Quote:

Originally Posted by mtha
If you want to update deldate from moderator log (if available), these two querries could help:


UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'post' AND deletionlog.deldate=0 AND (moderatorlog.postid = deletionlog.primaryid) AND moderatorlog.action LIKE 'post %deleted%';

UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'thread' AND deletionlog.deldate=0 AND (moderatorlog.threadid = deletionlog.primaryid) AND moderatorlog.action LIKE 'thread %deleted%';


Note: if you have prune your moderator log sometime, there will be some date missing in deldate (since you dont have the information in moderatorlog either)


Sort ASC by deldate:

Look for (2 places
LIMIT " . (($page - 1) * $perpage) . ", $perpage

Add after:
ORDER BY `deldate` ASC

Im alittle confused... Whats the usage of this..? :rolleyes:

mtha 10-28-2004 11:11 AM

Quote:

If you want to update deldate from moderator log (if available), these two querries could help:

UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'post' AND deletionlog.deldate=0 AND (moderatorlog.postid = deletionlog.primaryid) AND moderatorlog.action LIKE 'post %deleted%';

UPDATE deletionlog, moderatorlog SET deletionlog.deldate=moderatorlog.dateline
WHERE deletionlog.type = 'thread' AND deletionlog.deldate=0 AND (moderatorlog.threadid = deletionlog.primaryid) AND moderatorlog.action LIKE 'thread %deleted%';
These are ONE TIME query, to get dateline information from moderatorlog and put into deldate in deletion log.

Assume that you have whole bunch of posts/threads deleted, and you just add a new field deldate (actually you should name it dateline for vB consistancy). the deldate value for all deleted posts/threads are ZERO.
However, when a moderator/admin delete a post/thread, the action will be record into moderator log (with dateline, and action = Post/Thread XXX Deleted)
The timeline in moderator log IS the time when the mod/admin delete a thread. I can just copy this value and put into deletionlog (if the deldate indeletionlog is missing (=0)



Quote:

Sort ASC by deldate:

Look for (2 places
LIMIT " . (($page - 1) * $perpage) . ", $perpage

Add after:
ORDER BY `deldate` ASC
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

teksigns 10-28-2004 02:23 PM

Small Bug found ....

if i select a few deleted post and i forget to tick one of the radio buttons .....

your script undeletes them instead of giving a error !

can you fix this

Revan 10-29-2004 07:05 AM

Quote:

Originally Posted by mtha
These are ONE TIME query, to get dateline information from moderatorlog and put into deldate in deletion log.

Assume that you have whole bunch of posts/threads deleted, and you just add a new field deldate (actually you should name it dateline for vB consistancy). the deldate value for all deleted posts/threads are ZERO.
However, when a moderator/admin delete a post/thread, the action will be record into moderator log (with dateline, and action = Post/Thread XXX Deleted)
The timeline in moderator log IS the time when the mod/admin delete a thread. I can just copy this value and put into deletionlog (if the deldate indeletionlog is missing (=0)

You mean I could add these to the installer?

And I cant name it dateline because it interferes with other rows, which causes errors. Believe me I tried ;)




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

Ill add this :)


Quote:

Originally Posted by teksigns
Small Bug found ....

if i select a few deleted post and i forget to tick one of the radio buttons .....

your script undeletes them instead of giving a error !

can you fix this

Ill take a look at this when I get home, I promise :)

I got abit distracted yest cos I installed RPG Maker XP..... :p

Bozkurtum 10-29-2004 09:23 AM

Very useful hack

Thanks ;)

mtha 10-29-2004 01:32 PM

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 :D

Revan 10-29-2004 02:08 PM

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! :D

Oblivion Knight 10-29-2004 03:21 PM

Updated.. Again.. Thanks ;)

msimplay 10-30-2004 07:28 AM

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

Revan 10-30-2004 08:39 AM

I am using both hacks in perfect combination :)
Your problem is that whatever is assigning the primaryid seems to have broken.

msimplay 10-30-2004 03:00 PM

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

mtha 10-31-2004 09:08 PM

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.

msimplay 10-31-2004 09:22 PM

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

mtha 10-31-2004 10:15 PM

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)"); 



All times are GMT. The time now is 06:37 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
  • Page Generation 0.01575 seconds
  • Memory Usage 1,952KB
  • 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
  • (3)bbcode_code_printable
  • (10)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete