vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Moderate user without changing groupid (https://vborg.vbsupport.ru/showthread.php?t=44023)

isman 09-28-2002 01:33 AM

Moderate user without changing groupid
 
I've seen some hacks available to moderate individual users but they all involve moving the user to a specific usergroup.

Does someone have a hack that will allow me to set a users posts to moderated without having to change their user group?

Thanks in advance if you've got it.

Logician 09-28-2002 11:18 AM

I didnt understand why you dont want to change their usergroup(you could create a replica usergroup anyway) but here is the hack:

Edit newthread.php and newreply.php, find:
PHP Code:

 // auto bypass queueing for admins/mods 

Before that add:

PHP Code:

if ($bbuserinfo[userid]==X)  {$visible=0;} 

Replace X with the userid of the user..

If you want to moderate more than 1 user, the code is:
PHP Code:

if ($bbuserinfo[userid]==OR $bbuserinfo[userid]==Y)  {$visible=0;} 

Enjoy..

isman 09-28-2002 11:51 AM

That's awesome. Thank you so much.

Can you also tell me how I might add this as an option setting in the edit user in the control panel?

Thanks in advance.

Xenon 09-28-2002 11:57 AM

you can try that:
add a new profile field just view and editable by admins

as long as you leave this field blank, the user won't be moderated

find out the fieldid and then change Logicians code into that:

PHP Code:

if (trim($bbuserinfo[fieldX])!="")  {$visible=0;} 


isman 09-28-2002 12:28 PM

You guys are awesome. Thank you both very much.


All times are GMT. The time now is 06:13 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.01032 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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