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 New Threads but not Replies (https://vborg.vbsupport.ru/showthread.php?t=41162)

Ben Johnson 07-16-2002 05:12 PM

Moderate New Threads but not Replies
 
I would really like to see this hack. Does anyone know how to do this?
I made a tutorials forum on my site and I want to moderate new threads. But I dont want to moderate replies.

Can anyone help. I will be willing to pay $ for someone that can write this hack or help me out.

Ben Johnson 07-17-2002 02:27 AM

bump

Logician 07-17-2002 08:22 AM

save your bucks to something worth paying, here you go: ;)

edit newthread.php, find:

PHP Code:

$visible=iif($foruminfo[moderatenew],0,1); 

After that add:

PHP Code:

if ($foruminfo[forumid]==X
{
$visible=0;


(REplace X with forumid you want moderation)
Enjoy..

amykhar 07-17-2002 01:19 PM

If you don't want to moderate replies in ANY forum, there is an easier way that means you won't have to edit every time you add a new forum that you want to moderate threads in.

In newreply.php

Find:
PHP Code:

$visible=!$foruminfo[moderatenew]; 

Change to

PHP Code:

$visible 1

Been running it this way on my board for months.

skrazydogz 02-10-2008 10:08 AM

I dont find the line in reply.php
Quote:

$visible=!$foruminfo[moderatenew];

Marco van Herwaarden 02-10-2008 10:10 AM

I would be surprised if 6 year old information (probably for vB 2) would still work on your current version.


All times are GMT. The time now is 08:39 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.00975 seconds
  • Memory Usage 1,723KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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