vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderate new threads (https://vborg.vbsupport.ru/showthread.php?t=37780)

kippesp 04-22-2002 10:00 PM

Moderate new threads
 
I first had this hack in a reply in this thread but thought it would be confusing. They are different enough that I'm making my own thread. (The referenced hack disables control of thread moderation making all new threads moderated.) You can blame this thread for my confusion on where to put this hack.

Description: This hack allows forum-level control to moderate new threads. It is similar to the forum-level control to moderate new posts already provided by a default vBulletin installation. On/off controls are in the same area as the controls for moderating attachments & posts. This hack does require a DB modification.

Included in this hack is a small change my admins find useful to the admin/mod control panels (admin/index.php and mod/index.php). It is completely optional and independent of the moderate new thread hack. All it does is add a bit of helpful information after logging in to the admin control panel or moderator contol panel. It will provide something like the following:

There are currently no posts, no attachments, and 1 thread(s) awaiting moderation.

By the way, I hope to never see this hack used here.

inetd 04-23-2002 07:53 PM

Please post screenshot from forum-level in admin CP.

P.S. Post normal .txt file, created with Notepad.

Chris M 04-23-2002 07:56 PM

Aye...

I would like proof of working before "purchase":D

Satan

inetd 04-23-2002 08:25 PM

I install this hack, and testing now :)

inetd 04-23-2002 08:38 PM

I add small replace to hack.
In admin/index.php find this code
Code:

makenavoption("New Posts","../mod/moderate.php?action=posts","<br>");
and replace to this
Code:

makenavoption("New Threads & Posts","../mod/moderate.php?action=posts","<br>");
In mod/index.php find code
Code:

makenavoption("New Posts","moderate.php?action=posts","<br>");
and change to this
Code:

makenavoption("New Threads & Posts","moderate.php?action=posts","<br>");
That's all!

Hack work's fine! But this hack don't work with hack by freddie "Admin Quick Stats". :( :( :( freddie, if you read this thread please help me. kippesp, add combine with "Admin Quick Stats".

kippesp 04-24-2002 03:38 AM

Quote:

Originally posted by inetd
Hack work's fine! But this hack don't work with hack by freddie "Admin Quick Stats". :( :( :( freddie, if you read this thread please help me. kippesp, add combine with "Admin Quick Stats". [/B]
Wordwraps added to file.

I didn't know about freddie's hack. If you have that already, ignore everything in my hack file after the ####'s. freddie's hack looks to take care of all this information plus some more.

As far as proof, I can't give proof. But here is a screen shot that shows the modified on/off control area.

Richard 12-20-2002 03:38 AM

Just wondering, would it be possible to add in an addition to move the moderated thread to another forum if you think it's not suitable for that forum?

Smoothie 12-23-2002 09:17 AM

Installed, works fine.

Dontom 01-24-2003 10:05 AM

I also use this hack . it works perfect for me.
I left away this part
PHP Code:

$invisible=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE visible=0");
if (
$invisible[posts]==0) {
  
$moderatedposts "no posts";
} else {
  
$moderatedposts "<b>$invisible[posts] posts(s)</b>";
}

$invisible=$DB_site->query_first("SELECT COUNT(*) AS attachments FROM attachment WHERE visible=0");
if (
$invisible[attachments]==0) {
  
$moderatedattachments "no attachments";
} else {
  
$moderatedattachments "<b>$invisible[attachments] attachment(s)</b>"

as it took very long for my admincp to load (I have > 400.000 posts in my forums)
Tom

Logikos 03-17-2003 06:19 AM

Also another member using this hack and works great! One question. Can i get it to PM Admins, and Sup Mods? Instead of Email Me?


All times are GMT. The time now is 08:15 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.01088 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete