Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #12  
Old 08-30-2012, 04:17 PM
renlok renlok is offline
 
Join Date: Mar 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally updated my board to 4.2 mod still works fine, no changes
Reply With Quote
  #13  
Old 07-25-2013, 03:53 AM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I understanding right that this hack requires editing the php files instead of just template edits?

Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=285655

So the moderated posts have a different background color for mods and admins but look normal for the post author.
Reply With Quote
  #14  
Old 08-30-2013, 06:06 AM
renlok renlok is offline
 
Join Date: Mar 2009
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dougdirac View Post
Am I understanding right that this hack requires editing the php files instead of just template edits?

Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=285655

So the moderated posts have a different background color for mods and admins but look normal for the post author.
theres no reason they wouldn't work together
Reply With Quote
  #15  
Old 08-30-2013, 07:18 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure they can work together, but I only want the different color for moderators.

I don't want the moderated posts to look different from normal posts for the people that make them.
Reply With Quote
  #16  
Old 08-31-2013, 12:05 AM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried this on 4.2.1

Seems to be working with threads but not posts. Any help?
Reply With Quote
  #17  
Old 11-08-2014, 07:45 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2
Reply With Quote
  #18  
Old 11-22-2014, 06:21 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please update this addon for support vb 4.2.2

Thank you
Reply With Quote
  #19  
Old 12-06-2014, 11:24 AM
blah100 blah100 is offline
 
Join Date: Oct 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't work for vb 4.2
Reply With Quote
  #20  
Old 07-31-2015, 07:38 AM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by v123shine View Post
Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2
Can anybody fix this?
Reply With Quote
  #21  
Old 07-31-2015, 08:34 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by v123shine View Post
Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2
Quote:
Originally Posted by akz645 View Post
Can anybody fix this?
Same to me, in vb4.2.0, I will try if I can make this phrase, if some coder can help to this it will be great. Thanks
Reply With Quote
Благодарность от:
akz645
Reply

Thread Tools

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 04:21 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.14383 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
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
  • (4)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
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete