Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick Moderation Hack for v3articles / vBa CMPS Details »»
Quick Moderation Hack for v3articles / vBa CMPS
Version: 1.00, by maximux1 maximux1 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-17-2004 Last Update: Never Installs: 11
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-18-2004, 10:08 AM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful! *installed*
Reply With Quote
  #3  
Old 07-10-2004, 10:58 PM
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one.
Reply With Quote
  #4  
Old 09-16-2004, 10:51 PM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #5  
Old 09-17-2004, 04:43 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

How can I delete this?
Reply With Quote
  #6  
Old 05-03-2005, 01:15 AM
bashbang bashbang is offline
 
Join Date: Feb 2005
Location: Vancouver, B.C.
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03836 seconds
  • Memory Usage 2,245KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete