vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - SCANU's Quick Moderation: Moderation queue info on Forum home (https://vborg.vbsupport.ru/showthread.php?t=285008)

Scanu 06-27-2012 10:00 PM

SCANU's Quick Moderation: Moderation queue info on Forum home
 
1 Attachment(s)
Description
It displays in the forumhome a box that shows your admins and moderators what does need moderation:
  • Posts to moderate
  • Threads to moderate
  • Attachments to moderate
  • Events to moderate
  • Blogs to moderate
  • Groups Messages to moderate
  • Visitors Messages to moderate
  • Pictures Comments to moderate
  • Users to moderate

Installation

Upload the product via admincp and.. Done!.
If something isn't working go in Settings->Quick moderation set autotemplate edit to No and put
{vb:raw quickmod_template} wherever you want on forumhome template.
For the update just redownload and reupload the file, make sure that overwriting is set to Yes.

Translations

Please post your translation in a reply so everyone can uses it.

PLEASE VOTE THIS MOD FOR MOTM CLICK HERE, AND CLICK MARK AS INSTALLED

To get support:
  1. Mark this mod as Installed
  2. Copy/Pasted errors or screenshots
  3. URL/link to site

Follow me on twitter for updates

If you like italian G-funk/rap please try out this music or this music

Scanu 06-28-2012 03:32 PM

Version History
- 0.1 First release on Vbulletin.org as Beta

- 0.2 You can choose wich usergroups can see the quick moderation box

- 1.0
- No more Beta release
- Added Blogs, Groups and Visitors Messages and Pictures Comments to moderate
- Centered everything

- 1.1 Less code and more compatibility with custom styles

- 1.3
- Added a message when there isn't anything to moderate (now it will only show what need moderation not zeros
- Fixed missing number of attachments awaiting moderation
- Set 'no blog' as default to prevent database error
- Fixed blank name options
- Added Version check url

Scanu 06-28-2012 03:33 PM

http://www.dvdimagehosting.altervist...enquickmod.png

Scanu 06-28-2012 03:33 PM

*Reserved*

Jncocontrol 06-28-2012 06:49 PM

Mark as installed and nominated

Scanu 06-28-2012 07:08 PM

Thanks so now it is working?

Kraxell 06-28-2012 08:25 PM

Box only visible for admins/mods?

davidg 06-28-2012 08:31 PM

is not working by default people need to do "If something isn't working go in Settings->Quick moderation set autotemplate edit to No and put
{vb:raw quickmod_template} wherever you want on forumhome template." manually to make this work

BirdOPrey5 06-28-2012 08:39 PM

Did you get permission from rosco_2005 to "port" this mod?

Scanu 06-28-2012 08:41 PM

Quote:

Originally Posted by Kraxell (Post 2343677)
Box only visible for admins/mods?

Yes but you can change it to whatever usergroup you want
Quote:

Originally Posted by davidg (Post 2343680)
is not working by default, people need to do "If something isn't working go in Settings->Quick moderation set autotemplate edit to No and put
{vb:raw quickmod_template} wherever you want on forumhome template." manually to make this work

Maybe is because you have edited the forumhome template.. On default style and in a style where forumhome is "unchanged" everything should works "by default"

Scanu 06-28-2012 08:44 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2343684)
Did you get permission from rosco_2005 to "port" this mod?

Really not but there is almost nothing of his mod

davidg 06-28-2012 08:47 PM

Quote:

Originally Posted by Scanu (Post 2343685)
Yes but you change it to whatever usergroup you want

Maybe is because you have edited the forumhome template.. On default style and in a style where forumhome is "unchanged" everything should works "by default"

it may be this(i have edited the forumhome template)
nice work anyway

Scanu 06-28-2012 08:50 PM

Thanks :)

Jncocontrol 06-28-2012 11:50 PM

I got it to work.
My only problem with this is that (i dunno if it has anything to do with where i put the code in the forumhome templete) But my quick Moderation bar is at the bottem of my forums and not the top. But overall, well done Scanu

Sage Knight 06-29-2012 05:14 AM

Could you add other items such as Articles, Blogs etc... to moderate?

Scanu 06-29-2012 09:26 AM

Quote:

Originally Posted by Jncocontrol (Post 2343727)
I got it to work.
My only problem with this is that (i dunno if it has anything to do with where i put the code in the forumhome templete) But my quick Moderation bar is at the bottem of my forums and not the top. But overall, well done Scanu

Move this: {vb:raw quickmod_template} under {vb:raw navbar}


Quote:

Originally Posted by Sage Knight (Post 2343766)
Could you add other items such as Articles, Blogs etc... to moderate?


I think so, wait for an update

Kraxell 06-29-2012 10:50 AM

Dont work for me, it shows only the box, no content.

Scanu 06-29-2012 10:56 AM

Search this template: "Quick Moderation template" and replace all the content with this:
Code:

<br />
    <div class="floatcontainer forumbit_nopost">
        <div class="forumhead foruminfo collapse">
            <h3>
                <span class="forumtitle"><a href="#">Quick Moderation by SCANU</a></span>
                <a class="collapse" id="collapse_quickmod_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" title="Collapse" /></a>
            </h3>
        </div>
        <div id="quickmod_content" class="forumbit_post table">
            <div class="forumrow table" style="padding-{vb:stylevar right}:0px">
<div align="left" width="100%" style="margin:10px 0px 20px 10px;">
                                        <a href="modcp/moderate.php?do=posts">Threads</a>: <b>{vb:raw threads.count}</b>
                                        <a href="modcp/moderate.php?do=posts#posts">Posts</a>: <b>{vb:raw posts.count}</b>
                                        <a href="modcp/moderate.php?do=attachments">Attachments</a>: <b>{vb:raw attachments.count}</b>
                                        <a href="modcp/moderate.php?do=events">Events</a>: <b>{vb:raw events.count}</b>
                                        Users: <b>{vb:raw users.count}</b>
                               
                </div>
            </div>
        </div>
    </div></br>


Kraxell 06-29-2012 01:42 PM

http://pic-place.de/images-i3463bmzy58.jpg

Dont work too ^^ No numbers.

Scanu 06-29-2012 04:36 PM

Just to try, do you have prefix on vbulletin tables?

Scanu 06-29-2012 04:39 PM

No that should'nt be the problem it should works anyway.. but tell me if you have it

Kraxell 06-29-2012 08:03 PM

No prefix.

Jncocontrol 06-29-2012 08:19 PM

If i was to also suggest something, Can you center everything, add blogs into the moderation, Remove the collapes button, and add other groups.

Scanu 06-29-2012 08:42 PM

Quote:

Originally Posted by Kraxell (Post 2343927)
No prefix.

I really don't know something's wrong with your database.. Maybe you changed the name of the Quick Moderation template?

Quote:

Originally Posted by Jncocontrol (Post 2343933)
If i was to also suggest something, Can you center everything, add blogs into the moderation, Remove the collapes button, and add other groups.

1 yes
2 yes
3 Why you should want to remove the collapse button?
5 I will ad an option for set the ids of the usergroup that can view quickmod

Kraxell 06-29-2012 09:41 PM

I have install the xml file, add {vb:raw quickmod_template} under navbar (Template forumhome) and save the template.

Theres nothing wrong with my db, all other 20 addons works perfect :)

Scanu 06-29-2012 10:02 PM

You have a pm

Jncocontrol 06-30-2012 12:47 AM

Quote:

Originally Posted by Scanu (Post 2343937)
3 Why you should want to remove the collapse button?

I don't like the idea that my mod's and fellow admins trying to avoid doing what i expect of them, i put it there to help make their job a little easier, not so that they can avoid doing their job.
But, thats just me, I'm sure many wouldn't mind having the collapes button.

Scanu 06-30-2012 07:57 AM

Quote:

Originally Posted by Jncocontrol (Post 2343971)
I don't like the idea that my mod's and fellow admins trying to avoid doing what i expect of them, i put it there to help make their job a little easier, not so that they can avoid doing their job.
But, thats just me, I'm sure many wouldn't mind having the collapes button.

If so find and remove this code on quick moderation template
Code:

<a class="collapse" id="collapse_quickmod_content" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" title="Collapse" /></a>

Jncocontrol 07-20-2012 03:09 AM

Hey scanu, I have my own personal usergroup, How i put myself in the loop with this?

Scanu 07-20-2012 11:43 AM

Are you trying to change usergroups that can view the box? If so go in plugin manager and edit the plugin called "Template"
Find this
PHP Code:

if ($vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='5'

You can change the ids 6 and 5 as you want if you want to add an id for example 3 write this
PHP Code:

if ($vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='5' OR $vbulletin->userinfo[usergroupid]=='3'


Jncocontrol 07-20-2012 11:52 AM

i want me, my fellow admins, global Moderators, and regular mods to be able to see it

I'm usergroup 9, Admins-6 and Gmods 7 and mods-5

Scanu 07-20-2012 12:11 PM

If so Replace this
PHP Code:

if ($vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='5'

With this
PHP Code:

if ($vbulletin->userinfo[usergroupid]=='9' OR $vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='7' OR $vbulletin->userinfo[usergroupid]=='5'

:)

Jncocontrol 07-20-2012 12:41 PM

Got this error

Parse error: syntax error, unexpected '}' in /home/content/47/9363947/html/forums/includes/class_bootstrap.php(430) : eval()'d code on line 42

Not to be rude, If you decide to update the mod, I would like to suggest add a field in the mod to allow X groups to view this mod.

Scanu 07-20-2012 12:57 PM

Yes i will do it in the next update but please can you post all your plugin code you probably delete the { after the )

Jncocontrol 07-20-2012 12:59 PM

Code:

if ($vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='5') {
$templater = vB_Template::create('Quick Moderation template');
$quickmod_template = $templater->render();
vB_Template::preRegister('FORUMHOME',array('quickmod_template' => $quickmod_template));
if ($vbulletin->options['quickmod_auto']) {
require_once(DIR . '/includes/class_template_parser.php');
$parser = new vB_TemplateParser('<div id="pagetitle">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>');
$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());
$find = trim($parser->_parse_nodes($parser->dom_doc->childNodes()));
$parser = new vB_TemplateParser('<div id="pagetitle">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>{vb:raw quickmod_template}');
$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());
$replace = trim($parser->_parse_nodes($parser->dom_doc->childNodes()));
$vbulletin->templatecache['FORUMHOME'] = str_replace($find, $replace, $vbulletin->templatecache['FORUMHOME']);
unset($find, $replace);
}}


Scanu 07-20-2012 01:16 PM

Try to replace all the code with this
PHP Code:

if ($vbulletin->userinfo[usergroupid]=='9' OR $vbulletin->userinfo[usergroupid]=='6' OR $vbulletin->userinfo[usergroupid]=='7' OR $vbulletin->userinfo[usergroupid]=='5')  {

$templater vB_Template::create('Quick Moderation template');

$quickmod_template $templater->render();

vB_Template::preRegister('FORUMHOME',array('quickmod_template' => $quickmod_template));

if (
$vbulletin->options['quickmod_auto']) {

require_once(
DIR '/includes/class_template_parser.php');

$parser = new vB_TemplateParser('<div id="pagetitle">

                <h1>{vb:raw vboptions.bbtitle}</h1>

                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>

        </div>'
);

$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());

$find trim($parser->_parse_nodes($parser->dom_doc->childNodes()));

$parser = new vB_TemplateParser('<div id="pagetitle">

                <h1>{vb:raw vboptions.bbtitle}</h1>

                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>

        </div>{vb:raw quickmod_template}'
);

$parser->dom_doc = new vB_DomDocument($parser->fetch_dom_compatible());

$replace trim($parser->_parse_nodes($parser->dom_doc->childNodes()));

$vbulletin->templatecache['FORUMHOME'] = str_replace($find$replace$vbulletin->templatecache['FORUMHOME']);

unset(
$find$replace);

}} 


Scanu 07-20-2012 05:44 PM

Updated to choose usergroups ids

Jncocontrol 07-21-2012 01:25 AM

it work Scanu, Well done.

Only other thing i would suggest for the future update would be to do what has already been suggested, Center everything, Blogs, all that good stuff.

Cheer

Scanu 07-21-2012 12:43 PM

i've done almost everything but i d0n't know about articles what do you normally do to moderate an article?

Scanu 07-23-2012 02:08 PM

Updated to 1.0, i didn't add Articles to moderate because i don't know anything about this :/
Quote:

- 1.0
- No more Beta release
- Added Blogs, Groups and Visitors Messages and Pictures Comments to moderate
- Centered everything


All times are GMT. The time now is 06:19 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.01482 seconds
  • Memory Usage 1,854KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (11)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
  • (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