vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Allow all mods to view deleted threads (https://vborg.vbsupport.ru/showthread.php?t=100301)

Alan @ CIT 11-06-2005 10:00 PM

Allow all mods to view deleted threads
 
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! :D

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

Snake 11-07-2005 03:17 PM

Thanks! First one to install. :D

Alan @ CIT 11-07-2005 03:24 PM

Good stuff, now click the "Install" button :D

Alan @ CIT 11-07-2005 04:28 PM

Aftermath: I noticed a bug that broke some of the links in forumdisplay.php - install the updated product XML to fix :)

SoftWareRevue 11-07-2005 09:12 PM

I updated to the new version. It still doesn't work for me. What should I look for?

Thanks again, Alan!

Alan @ CIT 11-08-2005 06:34 AM

What parts not working mate?

When a moderator views the list of threads (forumdisplay.php), it'll show the soft-deleted threads, with the "View" link (but not the manage link), and the "Deleted by x, Reason: y" bit.

Moderators of the forum in question, supermods and admins should see the soft-deleted threadbit as normal.

In theory anyway :) It seems to work here. I created a test-mod and made them a standard moderator of Forum #1, I then went to Forum #2 and viewed the list of threads, and the soft-deleted threads showed up.

SoftWareRevue 11-09-2005 02:02 PM

Hi Alan.

Sorry for my late response. But, I walk away from the internet on Tuesdays. :)

It just doesn't seem to work. I installed the product and made sure it was active. But, still mods cannot see the View link if the post is in a forum they don't moderate.

They can see the Delete Message. But, they can't see the View link.

Alan @ CIT 11-09-2005 03:41 PM

I tested it on 3.5.0, so I'll upgrade to 3.5.1 tonight and see if it still works for me.

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?

Alan @ CIT 11-09-2005 04:20 PM

ok, upgraded to 3.5.1 and it still appears to be working for me.

When they try view the thread list, do they see the attached image, just without the "View" link?

SoftWareRevue 11-09-2005 06:06 PM

Quote:

Originally Posted by Alan @ CIT
ok, upgraded to 3.5.1 and it still appears to be working for me.

When they try view the thread list, do they see the attached image, just without the "View" link?

Yes. They see the thread; just no View link.

I should have mentioned that I first installed it on a 3.5 board. And then on a 3.5.1 board.


All times are GMT. The time now is 06:23 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.01126 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)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
  • (10)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