vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Moderation Queue on FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=120150)

Kirk Y 07-01-2006 10:00 PM

Moderation Queue on FORUMHOME
 
Moderation Queue on FORUMHOME

What does this do?
Adds a Moderation Queue displaying:
  • Users needing Moderation
  • Threads needing Moderation
  • Posts needing Moderation
  • Attachments needing Moderation
  • Events needing Moderation
Features
Queue stored in collapsable container.
Easily customizable and best of all -- NO Template Edits!
Linked directly to AdminCP/ModCP Moderation Pages.

Installation
1. Download and Unzip the attached ZIP file.
2. Upload includes/xml/bitfield_modqueue.xml to your includes/xml directory.
3. Import the Product XML File.
(Cont'd) 3. If you're Upgrading -- Set Overwrite to YES when importing the XML File.
4. Go to your AdminCP - Usergroups -> Usergroup Manager -> Pick A Usergroup -> Set 'Can View Moderation Queue' to Yes - To allow Usergroups to view the Queue. (See Note Below!)

Version History
1.00 - Initial Release
1.01 - Bug fix: Event SQL had missing tableprefix - Download latest version!
1.02 - Now uses Usergroup Permissions - Download latest version!

Notes
With version 1.02 comes the ability to allow multiple Usergroups the permission to view the Moderation Queue. It should be noted however, that this hack currently pulls ALL Events Needing Moderation. This means that if you're planning on using this with Moderators who can, for example, only Moderate Forum A, then this hack will show ALL of the events needing moderation, not just those in Forum A. The capability for Moderators to only be shown their specific Moderation Events will be coming in the next version.

MentaL 07-02-2006 07:11 PM

cool

SMO 07-02-2006 08:34 PM

if one has no moderation awaiting..is it blank?

also, is it possible to add gallery pics/posts and links/posts awaiting as well?

Kirk Y 07-02-2006 08:54 PM

If there aren't any events needing moderation, a message basically stating that will show. Which gallery hack? I suppose I could take a look at it.

SMO 07-02-2006 10:59 PM

Quote:

Originally Posted by acidburn0520
If there aren't any events needing moderation, a message basically stating that will show. Which gallery hack? I suppose I could take a look at it.


i use vbgallery (vbagallery) and vba links.

Kirk Y 07-02-2006 11:12 PM

That's a paid modification. I don't have a version to test on, sorry.

jluerken 07-03-2006 05:31 AM

I want to see this for the upcoming vB 3.6.x

R1D1 07-03-2006 09:53 AM

It's possible to run that on 3.5.3?

I get this error:

Quote:

SELECT COUNT(*) AS count
FROM event AS event
INNER JOIN calendar AS calendar USING (calendarid)
WHERE event.visible = 0;

MySQL-Error: Table 'XXXXXXXXXXXX.event' doesn't exist

Snake 07-03-2006 12:24 PM

Awesome, I'll install this when I get back to home. :)

Diana Notacat 07-03-2006 03:24 PM

Fantastique! I've been waiting for something like this to come along!

Kirk Y 07-03-2006 04:28 PM

Quote:

Originally Posted by R1D1
It's possible to run that on 3.5.3?

Yes -- that's my fault, I forgot to take into account boards with table prefixes. I'll fix that right now.

Quote:

Originally Posted by jluerken
I want to see this for the upcoming vB 3.6.x

I don't have a version of that to test on either, lol. But I'll probably be renewing my license sometime next week.

Edit: Product Updated - Fixed Table Prefix bug. Be sure you download the latest version.

R1D1 07-04-2006 03:57 AM

thx for the bugfix! ;)

seems to work now. :)

UZFRED 07-04-2006 12:33 PM

Are super administrators allowed to see the moderation queue, if so, then this modification is not working for me :/.

coffee_bean 07-04-2006 01:34 PM

Does it show the table only to those users with moderation/admin priviledges?

Kirk Y 07-04-2006 03:15 PM

@UZFRED: I set it for only Administrators but I'll add Super Administrators.

@Coffee_bean: At the moment, only Administrators can see it and as I said above -- I'll be adding Super Administrators shortly.

If you'd like to add more Usergroups:

Look for: (In template forumhome_moderationqueue)
Code:

<if condition="is_member_of($vbulletin->userinfo,6)">
Replace with:
Code:

<if condition="is_member_of($vbulletin->userinfo,6,XX)">
Replace the XX with the Usergroupid of whatever Usergroup you'd like to view the Queue.

Jafo232 07-04-2006 03:58 PM

BTW, this works perfect in conjuction with the Akismet Anti-Spam hack that places suspected SPAM posts/threads into moderation:

https://vborg.vbsupport.ru/showthread.php?t=118421

sam anders 07-04-2006 06:24 PM

installed this hack and works great thanks, but it killed my second navbar please can you help, it looks like when the product is added it over writes my calling to a second navbar: $navbar2

any suggestions?

Kirk Y 07-04-2006 06:30 PM

Mind posting the address to your site? I'll take a look.

One fix I can think off the top of my head is that you'd need to change the forumhome_complete plugin I use that says where to put the Queue. The plugin is called Moderation Queue HTML -- click Edit on that and change '$navbar' to '$navbar2'. That should fix it, but if not, I'll take another look.

UZFRED 07-04-2006 07:12 PM

This isn't working at all for me :s can anybody help me?

I just imported it and nothing happened... I got 5 templates (Default, Air, AirX, Fusion, FusionX) on none of the templates it appeared.

I would really like to have this hack since it tells staff they have things to do.

Kirk Y 07-04-2006 08:10 PM

The two templates included with the product are placed inside the forumhome template category. Have you made any modifications to your forumhome template and do you have the standard navbar on your vBulletin?

Also, what is the Usergroup ID for Administrators on your forum?

sam anders 07-05-2006 07:51 AM

Quote:

Originally Posted by acidburn0520
Mind posting the address to your site? I'll take a look.

One fix I can think off the top of my head is that you'd need to change the forumhome_complete plugin I use that says where to put the Queue. The plugin is called Moderation Queue HTML -- click Edit on that and change '$navbar' to '$navbar2'. That should fix it, but if not, I'll take another look.

tried what you mentioned but they removed your mod all together, so reverted back to normal and all ok,still missing my second navbar will have a look this morning and get back to you

Kirk Y 07-05-2006 10:36 AM

If the template was reverted, most likely your $navbar2 variable was removed. If you're willing to try again, I'm certain that applying the change I mentioned would work for you. But that's up to you.

UZFRED 07-05-2006 04:30 PM

Quote:

Originally Posted by acidburn0520
The two templates included with the product are placed inside the forumhome template category. Have you made any modifications to your forumhome template and do you have the standard navbar on your vBulletin?

Also, what is the Usergroup ID for Administrators on your forum?

Yes there are probably allot of modifications to my forumhome (ShoutBox, top10 stats,...).

The usergroup of Administrators are the default ones (I never changed), but once I can show it on my homepage I will edit to show to moderators and stuff.

Was hoping maybe you could make a version that allows you to place it yourself on forumhome? Since I think many people will have trouble with it like me.

And if I add buttons for example to my forum template. On the vBulletin Default Style I have to edit navbar to add buttons. For my ExtremePixels styles Air & Fusion I have to edit header for it.

Kirk Y 07-05-2006 08:33 PM

All my plugin does is look for the string: $navbar in your forumhome template. It's a unique string that should be in everyone's template, except for occassional change, as in Sam Anders' case in which there are $navbar and $navbar2.

If you'd like to position the Queue yourself, just go into the Plugin system and disable the 'Moderation Queue HTML' Plugin in the forumhome_complete category. Then take the contents of the template forumhome_moderationqueue and position them as you please. But you should note that the Queue will only work on the forumhome, if you want to put it on other pages, you'll have to make a modification.

If you'd like me to do it for you, I can -- no charge or anything like that.

Also I should note that in the next version, the Queue permissions will be set via Usergroup Permissions, rather than having to edit the template.

UZFRED 07-06-2006 02:29 AM

:0 it's working now. Now I was able to select usergroups it's working. So guess there is nothing wrong after all, just a usergroup issue, nice modification :).

Kirk Y 07-06-2006 06:25 AM

That's good to hear UZ. Hope everything works fine.

sam anders 07-07-2006 09:26 AM

Quote:

Originally Posted by sam anders
installed this hack and works great thanks, but it killed my second navbar please can you help, it looks like when the product is added it over writes my calling to a second navbar: $navbar2

any suggestions?

this has now been fix, removed the navbar mod and reinstalled this hack then installed a different navbar hack and all ok :banana:

great hack works very well now :)

bashy 07-10-2006 07:30 PM

I did take a look at this but i have 40 querires already on my forumhone adding another 6 will not do any favours, big shame though as i was looking for something like this!!

Thanks anyway!!

Kirk Y 07-10-2006 08:59 PM

As far as I know, this is the most efficient way of doing this, so the six queries can't be helped. For most people it shouldn't be a problem, but like you said -- you've got 40 queries. I believe my board only has 25-27 and that's with this hack installed.

neofootball 07-13-2006 09:09 PM

Very nice, works great is there any way to change the colors?

Kirk Y 07-13-2006 10:23 PM

Quote:

Originally Posted by neofootball
Very nice, works great is there any way to change the colors?

Edit templates forumhome_moderationqueue and forumhome_moderationqueue_bit.

Julie 07-13-2006 11:27 PM

Quote:

The capability for Moderators to only be shown their specific Moderation Events will be coming in the next version.
I'll definitly install this when that version comes :)

*subscribed, and waiting patiently!*

bashy 07-28-2006 10:17 PM

Hi m8

What if i wanted to put this elsewhere, what would i changed please...

usually theres a little bit of code (if on forumhome) like, $menualert or $vbshout
there just examples but i cannot find out like that in the forumhome template for your hack....hence the question?

Kirk Y 07-29-2006 02:07 AM

It's complicated to explain, it'd be easier if you told me where you wanted it and I could provide you with the exact coding needed to place it there.

bashy 07-29-2006 06:43 AM

to be honest i aint really sure...its just that it uses a good handfull of queries and i already got 41 on the index and didnt reallt want to increase this too much...

I am maybe thinking about adding a new page using Logicans Web Templates
How about adding the code to this?

rushabh 08-19-2006 04:04 AM

Thank you. works like a charm and much appreciated.

taydu 01-21-2007 06:09 PM

anything change it get port to 3.6 this is a great hack

taydu 01-25-2007 12:57 AM

how do I add a single user to view the moderation queue ??

Kirk Y 01-25-2007 10:22 PM

Quote:

Originally Posted by taydu (Post 1166741)
how do I add a single user to view the moderation queue ??

Untested, but should work. ;)

Find in forumhome_moderationqueue:
Code:

<if condition="$permissions[modqueueperms] & $vbulletin->bf_ugp[modqueueperms][view_queue]">
Replace with:
Code:

<if condition="$permissions[modqueueperms] & $vbulletin->bf_ugp[modqueueperms][view_queue] OR $bbuserinfo['userid'] == 'xx'">
Replace xx with the UserID of the User you'd like to view the queue.

Necrosaro420 02-13-2007 01:44 PM

This does not work with 3.6.4 =( Are there any other alternatives? This is a great idea!


All times are GMT. The time now is 06:16 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.01838 seconds
  • Memory Usage 1,819KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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