Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
QUICKMODERATION: Moderation queue info on Forums Details »»
QUICKMODERATION: Moderation queue info on Forums
Version: 1.00, by rossco_2005 rossco_2005 is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 07-24-2005 Last Update: Never Installs: 84
Uses Plugins Template Edits
 
No support by the author.

What does it do? Well, at the top of all forums will be a bar that tells your mods and admins how many:
  • Posts to moderate
  • Threads to moderate
  • Attachments to moderate
  • Events to moderate
  • Users to moderate
  • Reports that have not been fulfilled (only works for my report system mod)

The features include:
  • Links to each type of moderation CP or page
  • Can be placed anywhere in the forum, and modded easily (different per skin if you'd like)
  • Which usergroup can see quick mod panel can be changed easily
  • Option to have the bar turn red if there is something to attend to (a post to moderate, user to moderate, etc.)

Hope this is to your liking, and if anyone has any I am open to suggestions.

The installation requires 2 new plugins, 1 template change, 1 new template and a bit of configuration to choose which options you want.

[high]Plugins[/high]

Open your admincp -> Click Plugin System on the left nav panel -> Click 'Download/upload Plugins' -> Browse to QUICKMOD plugin.xml included in this package.

This adds 2 plugins. One is the quick mod php code + queries. The second is the caching of the quick mod template (not required but recommended).


[high]Templates[/high]

Add new template called navbar_moderation to all styles with this code:

Code:
<if condition="$bbuserinfo[usergroupid]=='6' or $bbuserinfo[usergroupid]=='5'">
<!-- Quick Moderation -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="<if condition="$alertmods==true">alertmod<else />alt1</if>" width="100%">
			<div class="smallfont">
				<b>Quick Moderation:</b> 
				<if condition="$show['threads']">
					<a href="modcp/moderate.php?do=posts">Threads</a>: <b>$threads[count]</b> 
				</if>
				<if condition="$show['posts']">
					<a href="modcp/moderate.php?do=posts#posts">Posts</a>: <b>$posts[count]</b> 
				</if>
				<if condition="$show['attachments']">
					<a href="modcp/moderate.php?do=attachments">Attachments</a>: <b>$attachments[count]</b> 
				</if>
				<if condition="$show['events']">
					<a href="modcp/moderate.php?do=events">Events</a>: <b>$events[count]</b> 
				</if>	
				<if condition="$show['users']">
					Users: <b>$users[count]</b> 
				</if>			
				<if condition="$show['reports']">
					<a href="private.php">Reports Unfulfilled</a>: <b>$reports[count]</b>
				</if>
			</div>
		</td>
	</tr>
</table>
<!-- / Quick Moderation -->
<br />
</if>
Open template called navbar
At absolute bottom of template insert this code:

Code:
$moderate
and/or insert it anywhere in any other template if you'd like


[high]Configuration[/high]

To change what user groups can view the quick-mod bar replace

Code:
<if condition="$bbuserinfo[usergroupid]=='6' or $bbuserinfo[usergroupid]=='5'">
in the navbar_moderation template with whatever user group IDs you would like. You can find the usergroup IDs in the admincp by clicking 'usergroups' -> 'usergroup manager' then looking at what it says in the dropdown on the right of each user group [example: Edit Usergroup (ID:2)].

You may choose which options are shown on the quick moderation bar through the 'QUICKMOD::code' template

By default all but "reports unfulfilled" are shown on the quick mod bar, you can see that it is commented out using /* and */ (text between those is commented out, meaning it is not included in the code).

The Users, Posts, Threads, Attachments and Events can also be turned off this same way.

To have the quick mod bar show in a red color (or any other color of your choice) if there is something your mods must attend to, replace the following code in the QUICKMOD::code plugin:

Code:
//See if any of them are greater than 1
/*
if ($threads['count']>0 or $posts['count']>0 or $reports['count']>0 or $events['count']>0 or $attachments['count']>0 or $users['count']>0)
{
	$alertmods = true;
}

*/
with:

Code:
//See if any of them are greater than 1

if ($threads['count']>0 or $posts['count']>0 or $reports['count']>0 or $events['count']>0 or $attachments['count']>0 or $users['count']>0)
{
	$alertmods = true;
}
(it's been uncommented) and then add this css to all of your skins/styles:

Code:
.alertmod {
  background-color: #F2D0D0;
  color: #183562;
}
If you want the links to open in a new window, add target="_BLANK" to all links. See here for a better explanation.

That's about it, fairly simple but VERY useful mod. Enjoy
If anyone has any questions or suggestions post, pm or email me.

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-25-2005, 07:46 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful! Should be standard.

Thanks for sharing...
Reply With Quote
  #3  
Old 07-25-2005, 04:08 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

np, glad you like it.

BTW, i just made a small change to the template to make sure the URLs for posts, threads, etc. should work.
Reply With Quote
  #4  
Old 07-25-2005, 06:05 PM
Loki12 Loki12 is offline
 
Join Date: Jul 2004
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. If I want the links to open in a new window, where must I add code?
Reply With Quote
  #5  
Old 07-25-2005, 06:41 PM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loki12
Very nice. If I want the links to open in a new window, where must I add code?
Replace the code in the template navbar_moderation with this:

Code:
<if condition="$bbuserinfo[usergroupid]=='6' or $bbuserinfo[usergroupid]=='5'">
<!-- Quick Moderation -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="<if condition="$alertmods==true">alertmod<else />alt1</if>" width="100%">
			<div class="smallfont">
				<b>Quick Moderation:</b> 
				<if condition="$show['threads']">
					<a href="modcp/moderate.php?do=posts" target="_BLANK">Threads</a>: <b>$threads[count]</b> 
				</if>
				<if condition="$show['posts']">
					<a href="modcp/moderate.php?do=posts#posts" target="_BLANK">Posts</a>: <b>$posts[count]</b> 
				</if>
				<if condition="$show['attachments']">
					<a href="modcp/moderate.php?do=attachments" target="_BLANK">Attachments</a>: <b>$attachments[count]</b> 
				</if>
				<if condition="$show['events']">
					<a href="modcp/moderate.php?do=events" target="_BLANK">Events</a>: <b>$events[count]</b> 
				</if>	
				<if condition="$show['users']">
					Users: <b>$users[count]</b> 
				</if>			
				<if condition="$show['reports']">
					<a href="private.php" target="_BLANK">Reports Unfulfilled</a>: <b>$reports[count]</b>
				</if>
			</div>
		</td>
	</tr>
</table>
<!-- / Quick Moderation -->
<br />
</if>
(added target="_BLANK" to all links [<a href="X" target="_BLANK"])
Reply With Quote
  #6  
Old 07-25-2005, 09:13 PM
Loki12 Loki12 is offline
 
Join Date: Jul 2004
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #7  
Old 07-25-2005, 09:59 PM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good, keep up the good work
Reply With Quote
  #8  
Old 07-27-2005, 04:18 AM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested and works fine in RC1.
Reply With Quote
  #9  
Old 10-15-2005, 12:18 AM
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod should work fine in 3.5.0
Reply With Quote
  #10  
Old 10-15-2005, 04:41 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok sorry but I butchered this. I just wanted it for admins to know when users need to be moderated. Is there a way to make it so this box ONLY shows up IF there is a user to moderate?

Here is the code I have left over. Did I miss anything of reference to user moderation?
PHP Code:
// ++=========================++
// || QUICK MODERATION v1.0   ||
// || BY:   ROSSCO_2005       ||
// || Date: July 24, 2005     ||
// ++ ========================++ require_once('./includes/functions_calendar.php');   //Users to Moderate $users = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4");
$users['count'] = vb_number_format($users['count']);
$show['users'] = true//See if any of them are greater than 1
/*
if $users['count']>0])
{
 $alertmods = true;
}
*/  
eval('$moderate = "' fetch_template('navbar_moderation') . '";'); 
Reply With Quote
Reply

Thread Tools

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 06:13 PM.


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.04540 seconds
  • Memory Usage 2,312KB
  • Queries Executed 24 (?)
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
  • (7)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete