vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - moderation queue hack (https://vborg.vbsupport.ru/showthread.php?t=247094)

renlok 07-22-2010 10:00 PM

moderation queue hack
 
1 Attachment(s)
This makes it so when a board requires moderation a user can see their own posts even if they have no been accepted yet.

in forumdisplay.php find
PHP Code:

$visiblethreads " AND visible = 1 "

and replace with
PHP Code:

$visiblethreads " AND (visible = 1 OR (visible = 0 AND postuserid = " $vbulletin->userinfo['userid'] . ")) "

in showthread.php find
PHP Code:

if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts'))
    OR (
$thread['isdeleted'] AND !can_moderate($thread['forumid']))) 

and replace with
PHP Code:

if (($thread['isdeleted'] AND !can_moderate($thread['forumid']))) 

in editpost.php find
PHP Code:

if (!$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) 

and replace with
PHP Code:

if (!$postinfo['postid'] OR $postinfo['isdeleted']) 

then find
PHP Code:

if (!$threadinfo['threadid'] OR $threadinfo['isdeleted'] OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) 

and replace with
PHP Code:

if (!$threadinfo['threadid'] OR $threadinfo['isdeleted']) 

:up: and now you have a properly functioning mod queue option

ellovo 07-22-2010 11:33 PM

great job bro.

crazyace 07-23-2010 03:33 AM

Care to release a screenshot as to what this looks like to the mods and admin?

renlok 07-23-2010 10:01 AM

It doesnt change how it looks for mods & admins it just changes it so users can see their own posts

Skyrider 07-23-2010 12:48 PM

Quote:

Originally Posted by renlok (Post 2073295)
It doesnt change how it looks for mods & admins it just changes it so users can see their own posts

Screenshots is always handy-dandy.

renlok 07-23-2010 05:43 PM

Added a screen racken is a user without any moderator permissions but with this he can see/edit his own posts (still in the mod queue)

Hornstar 07-23-2010 10:29 PM

Quote:

Originally Posted by crazyace (Post 2073207)
Care to release a screenshot as to what this looks like to the mods and admin?

Usually when a post is in the moderation que, only staff can see it. Quite often what happens is that person will post it a few times or post it in a different section.

The only thing this modification changes is that not only will the staff still see the post, but so will the user who posted it. Making them believe it was posted okay.

This is how it should be default imo

Thanks for sharing the code.

Greight 07-24-2010 02:23 AM

Thanks for the handy mod.

Quote:

This is how it should be default imo
Exactly.

renlok 09-01-2010 09:54 PM

just updated my forum to 4.0.6 and this hack works fine in that aswell :)
Again just updated to 4.1 still works fine

Breakpoint 12-20-2011 11:31 PM

This is what VB should do by default


All times are GMT. The time now is 10:15 PM.

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.01065 seconds
  • Memory Usage 1,745KB
  • 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
  • (8)bbcode_php_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