Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow all mods to view deleted threads Details »»
Allow all mods to view deleted threads
Version: 1.4, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-06-2005 Last Update: 12-01-2005 Installs: 13
Uses Plugins
 
No support by the author.

Requested: https://vborg.vbsupport.ru/showthread.php?t=100108

This little mod allows moderators of any forum to view all soft-deleted threads. (usually they can only view soft-deleted threads in forums they moderate).

This (should) work as long as the user is a moderator of ANY forum. Doesn't matter which forum, just as long as they're listed as a moderator of at least 1.

I've done as much (limited) testing as I can with just me and my test board, so let me know if it causes any problems

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Version 1.4: Fixed the pagenav bug
Version 1.3: Now supports search results + fixed a minor bug
Version 1.2: Added support for mods to view all soft-deleted posts as well as threads
Version 1.1: Fixed a bug that broke most of the links in forumdisplay.php

Show Your Support

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

Comments
  #12  
Old 11-09-2005, 06:08 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
. . . What happens if the mod tries to view a soft-deleted thread directly? (showthread.php?t=deleted-thread-id-here) Does it show the thread, or display a no permission message?
They get this
Quote:
Invalid Post specified. If you followed a valid link, please notify the administrator
Reply With Quote
  #13  
Old 11-09-2005, 06:27 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, very strange. I'll do some more testing here tonight.
Reply With Quote
  #14  
Old 11-09-2005, 06:28 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just realized, you're talking about Threads, while I'm talking about Posts.

/me goes back and deletes a thread.
Reply With Quote
  #15  
Old 11-09-2005, 06:31 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to be a real pain, but if you get a sec, would you mind running the following query and telling me the number it returns (should be 1 or 2):

Code:
SELECT visible FROM thread WHERE threadid=<id of a soft-deleted thread here>
Thanks
Reply With Quote
  #16  
Old 11-09-2005, 06:32 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. Seems to work great for deleted threads.

Think we can get it to work for deleted posts? :bunny:
Reply With Quote
  #17  
Old 11-09-2005, 06:37 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
Sorry to be a real pain, but if you get a sec, would you mind running the following query and telling me the number it returns. . .
2 (and more letters here to meet minimum char requirements)
Reply With Quote
  #18  
Old 11-09-2005, 06:38 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol - I was very confused as to why it didn't work

I'll have a look at posts now mate, didn't even know posts could be soft-deleted
Reply With Quote
  #19  
Old 11-09-2005, 07:45 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I've updated the product XML in the first post - v1.2 now supports soft-deleted post viewing

(hopefully)
Reply With Quote
  #20  
Old 11-09-2005, 09:01 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That got 'er, sir.

Seems to work like a champ.

I'm sure more people will find this handy as well.

Thank you!
Reply With Quote
  #21  
Old 11-09-2005, 09:56 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more request. :angel: <<<< is there an angel emoticon here?

The only place I've noticed that the soft-deleted post doesn't show up is the search results when you search for all posts by a user.

They, also don't show up when you search for a phrase.

I suppose that means they don't show up in search results.

They show up for admins though. So, can you have them show up for mods?
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 02:09 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.08268 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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