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
  #22  
Old 11-10-2005, 08:14 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Product XML updated, it now shows soft-deleted posts in search results if the user is a mod
Reply With Quote
  #23  
Old 11-10-2005, 03:27 PM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack!

/me does the dance of joy. :banana:
Reply With Quote
  #24  
Old 11-25-2005, 04:20 PM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I had this plugin running and then created a new forum, the $forumid for just that forum kept being reset it f=0 and was totally messed up. When I disabled this plugin, it was fine again. I'm not sure what part of this plugin caused that error, but it's something I thought I'd let you know about in case anyone else was affected.
Reply With Quote
  #25  
Old 11-25-2005, 04:37 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The plugin sets the $forumid to 0, then resets it back before it displays the page. I thought I'd found all the spots where it needed to be reset back, but apparently not. Exactly where is it set to 0? ie, what links are displayed on the page with f=0 attached to them?
Reply With Quote
  #26  
Old 11-25-2005, 05:16 PM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything was great until I added a new forum. It only affected that particular one for some reason.

If I tried to hit "new thread" it returned "no forum specified" or some similar error, and I could see that it was trying to draw on f=0

Also I guess it's 'pagenav' where it has Page 1 of 20, and if I tried clicking on any of the numbers or the forward or back arrows it was drawing on f=0
Reply With Quote
  #27  
Old 11-25-2005, 05:54 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
The plugin sets the $forumid to 0, then resets it back before it displays the page. I thought I'd found all the spots where it needed to be reset back, but apparently not. Exactly where is it set to 0? ie, what links are displayed on the page with f=0 attached to them?
I haven't tried creating a new forum to see. But, I do see this happening when I'm in a forum that has multiple pages of threads. Clicking on "Last" or "First" will give the Invalid Forum error.

Appears to be because there is no forum
Quote:
xxx.com/forumdisplay.php?f=&sort=threadstarted&order=desc
Reply With Quote
  #28  
Old 11-25-2005, 06:19 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... I added another plugin to v1.3 to fix this bug, but it appears it didn't fix it at all

will investigate more tonight
Reply With Quote
  #29  
Old 11-30-2005, 08:55 PM
SoLo OnE SoLo OnE is offline
 
Join Date: Aug 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fridayweb
Also I guess it's 'pagenav' where it has Page 1 of 20, and if I tried clicking on any of the numbers or the forward or back arrows it was drawing on f=0
Yep totally breaks any page navigation...

Had to uninstall it after finding this out. :ermm:
Reply With Quote
  #30  
Old 12-02-2005, 06:06 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Panic not folks, been away but I'm back now - working on a fixed version as we speak. One that (hopefully) doesn't need to cludge the forumid
Reply With Quote
  #31  
Old 12-02-2005, 06:51 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.4 has been released. This mod no-longer cludges the forumid to 0, which means there shouldn't be any more problems with broken pagenav, etc

Any problems, please let me know
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:47 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.04908 seconds
  • Memory Usage 2,305KB
  • 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
  • (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