vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick Moderation Hack for v3articles / vBa CMPS (https://vborg.vbsupport.ru/showthread.php?t=66265)

maximux1 06-17-2004 10:00 PM

Quick Moderation Hack for v3articles / vBa CMPS
 
Here's a dirty little hack to the "quick moderation" module in vBa CMPS to let you know how many
v3 Articles you have waiting to be moderated.


1. edit moderate.php

Open modules/moderate.php

find this
################################################## ####
$show['posts'] = true;
################################################## ####


after that add
################################################## ####
$articles = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "article WHERE open = '0'");
$articles['count'] = number_format($articles['count']);
$show['articles'] = true;
################################################## ####

Close and save.



2. edit template

Open the "adv_portal_moderation" template

find this
################################################## ####
<div><phrase 1="$posts[count]" 2="$vboptions[bburl]/$modcpdir/moderate.php?do=posts#postlist">$vbphrase[x_posts]</phrase></div>
</if>
################################################## ####


after that add
################################################## ####
<!-- ARTICLE MODERATION -->

<if condition="$show['articles']">
<div><a href=$vboptions[bburl]/$admincpdir/article.php?do=modarticles>Articles</a> ($articles[count])</div>
</if>

<!-- END ARTICLE MODERATION -->
################################################## ####

That's it folks. Now your vBa CMPS admins can see if you have any v3Articles
waiting for moderation, and links directly to them if ya do.

Happy to help answer any questions or assume the position for any critics ;)

Max
Marijuana.Com

TheComputerGuy 06-18-2004 10:08 AM

Very useful! *installed*

Mike Gaidin 07-10-2004 10:58 PM

Nice one.

TheMusicMan 09-16-2004 10:51 PM

Do you know how I set up a vB usergroup to be able to Moderate submitted articles? I have searched in my installation and cannot fins this anywhere. There doesnt seemto be a setting that will allow any group other than Admin to moderate articles. I must be missing something, surely??

The Realist 09-17-2004 04:43 PM

Quick Moderation is saying I have 2 posts waiting, but I know I dont?

How can I delete this?

bashbang 05-03-2005 01:15 AM

I had the same problem with my moderation queue. It said I had 10 posts to be moderated, but there wasn't anything in the que. I ended up cleaing the queue of these ghost posts by:
1) temperarily shutting down the board
2) Clear the queue of any outstanding items
3) going into the mysql DB and deleting all the items in the queue:
mysql> delete from moderation;
4) turn the board back on.

I'm kinda new the whole vBulletin thing, so I'm not sure this is the "proper" way of doing things, but it solved my problem so I was happy.

PS: I don't know for sure, but I think the reason for the ghost moderation items is due to deleting a thread in one window, while the moderation page is open in another. This in itself creates a MySQL error and I suspect is the cause of the orphaned moderation items.


All times are GMT. The time now is 09:58 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.01296 seconds
  • Memory Usage 1,718KB
  • 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
  • (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