Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
moderation queue hack Details »»
moderation queue hack
Version: 1.00, by renlok renlok is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.0 Rating:
Released: 07-22-2010 Last Update: Never Installs: 15
Code Changes  
No support by the author.

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

Screenshots

File Type: png screen2.png (40.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 07-22-2010, 11:33 PM
ellovo ellovo is offline
 
Join Date: May 2010
Location: San Francisco California
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great job bro.
Reply With Quote
  #3  
Old 07-23-2010, 03:33 AM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Care to release a screenshot as to what this looks like to the mods and admin?
Reply With Quote
  #4  
Old 07-23-2010, 10:01 AM
renlok renlok is offline
 
Join Date: Mar 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesnt change how it looks for mods & admins it just changes it so users can see their own posts
Reply With Quote
  #5  
Old 07-23-2010, 12:48 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by renlok View Post
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.
Reply With Quote
  #6  
Old 07-23-2010, 05:43 PM
renlok renlok is offline
 
Join Date: Mar 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #7  
Old 07-23-2010, 10:29 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crazyace View Post
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.
Reply With Quote
  #8  
Old 07-24-2010, 02:23 AM
Greight's Avatar
Greight Greight is offline
 
Join Date: Oct 2009
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the handy mod.

Quote:
This is how it should be default imo
Exactly.
Reply With Quote
  #9  
Old 09-01-2010, 09:54 PM
renlok renlok is offline
 
Join Date: Mar 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 12-20-2011, 11:31 PM
Breakpoint Breakpoint is offline
 
Join Date: Dec 2005
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what VB should do by default
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 07:40 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.04837 seconds
  • Memory Usage 2,328KB
  • Queries Executed 24 (?)
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
  • (8)bbcode_php
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete