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

renlok 08-30-2012 04:17 PM

Finally updated my board to 4.2 mod still works fine, no changes

dougdirac 07-25-2013 03:53 AM

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.

renlok 08-30-2013 06:06 AM

Quote:

Originally Posted by dougdirac (Post 2435251)
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

dougdirac 08-30-2013 07:18 PM

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.

dougdirac 08-31-2013 12:05 AM

Tried this on 4.2.1

Seems to be working with threads but not posts. Any help?

v123shine 11-08-2014 07:45 PM

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

v123shine 11-22-2014 06:21 PM

Please update this addon for support vb 4.2.2

Thank you

blah100 12-06-2014 11:24 AM

Doesn't work for vb 4.2

akz645 07-31-2015 07:38 AM

Quote:

Originally Posted by v123shine (Post 2521974)
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?

Stratis 07-31-2015 08:34 AM

Quote:

Originally Posted by v123shine (Post 2521974)
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 (Post 2551786)
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

Stratis 08-13-2015 06:31 PM

I tried to make this, but no luck, if any help from some coders how to make the phrase
"could not find phrase 'nopermission'"

it would be a great help. Thanks in advanced


All times are GMT. The time now is 06:05 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.01274 seconds
  • Memory Usage 1,771KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete