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)

SoftWareRevue 11-09-2005 06:08 PM

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

Alan @ CIT 11-09-2005 06:27 PM

Hmm, very strange. I'll do some more testing here tonight.

SoftWareRevue 11-09-2005 06:28 PM

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

/me goes back and deletes a thread.

Alan @ CIT 11-09-2005 06:31 PM

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

SoftWareRevue 11-09-2005 06:32 PM

Okay. Seems to work great for deleted threads. :)

Think we can get it to work for deleted posts? :bunny:

SoftWareRevue 11-09-2005 06:37 PM

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)

Alan @ CIT 11-09-2005 06:38 PM

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

I'll have a look at posts now mate, didn't even know posts could be soft-deleted :)

Alan @ CIT 11-09-2005 07:45 PM

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

(hopefully) :D

SoftWareRevue 11-09-2005 09:01 PM

That got 'er, sir.

Seems to work like a champ.

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

Thank you!

SoftWareRevue 11-09-2005 09:56 PM

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


All times are GMT. The time now is 01:03 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.01202 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_code_printable
  • (3)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