MCP info on index

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4814
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: MCP info on index

Post by Derky » Thu Nov 13, 2008 4:01 pm

I just tested my MOD with 3.0.3 and it still works perfect, inclusive the new post-based queue feature. :D

ham1299
Registered User
Posts: 613
Joined: Mon Sep 11, 2006 2:12 am
Location: USA
Contact:

Re: MCP info on index

Post by ham1299 » Fri Jan 02, 2009 2:21 am

AWESOME MOD! This is one of those things I don't get why it wasn't part of the software in the first place! This was easy to install and works perfectly. Thank you so much! :mrgreen:
Heather

Shantibuba
Registered User
Posts: 73
Joined: Tue Sep 09, 2008 3:41 pm

Re: MCP info on index

Post by Shantibuba » Tue Jan 20, 2009 4:04 pm

Hi there.

I just wanted to check whether this MOD discriminates between moderators that only have moderator permissions on certain forums. Will these moderators still see the info displayed on the index for forums that they do not have moderator permissions for?

Many thanks.
Yes, yet another nooby

User avatar
wang5555
Translator
Posts: 587
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: MCP info on index

Post by wang5555 » Tue Jan 20, 2009 5:35 pm

Shantibuba wrote:Hi there.

I just wanted to check whether this MOD discriminates between moderators that only have moderator permissions on certain forums. Will these moderators still see the info displayed on the index for forums that they do not have moderator permissions for?

Many thanks.
Which version do you use?
My forum (phpbb v3.0.4) the "moderator permission" function is perfect.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: MCP info on index

Post by RMcGirr83 » Tue Jan 20, 2009 5:52 pm

DragonMaster1 wrote:The Mod Needed adds an extra line about new warnings or whatever next to the MCP link
The mod needed mod shows the number of posts and/or number of topics waiting approval as well as the number of posts that have been reported. Clicking on either link presented takes the user directly to the appropriate spot in the MCP to deal with the post or the topic.

So yes they are very similar.

Just thought I would clear that up a bit.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Shantibuba
Registered User
Posts: 73
Joined: Tue Sep 09, 2008 3:41 pm

Re: MCP info on index

Post by Shantibuba » Wed Jan 21, 2009 8:29 am

wang5555 wrote:
Shantibuba wrote:Hi there.

I just wanted to check whether this MOD discriminates between moderators that only have moderator permissions on certain forums. Will these moderators still see the info displayed on the index for forums that they do not have moderator permissions for?

Many thanks.
Which version do you use?
My forum (phpbb v3.0.4) the "moderator permission" function is perfect.
I am running v3.04.

I will double check the moderators permissions.
Yes, yet another nooby

User avatar
wang5555
Translator
Posts: 587
Joined: Wed Oct 27, 2004 2:57 pm
Location: Taiwan

Re: MCP info on index

Post by wang5555 » Wed Jan 21, 2009 6:42 pm

RMcGirr83 wrote:
DragonMaster1 wrote:The Mod Needed adds an extra line about new warnings or whatever next to the MCP link
The mod needed mod shows the number of posts and/or number of topics waiting approval as well as the number of posts that have been reported. Clicking on either link presented takes the user directly to the appropriate spot in the MCP to deal with the post or the topic.

So yes they are very similar.

Just thought I would clear that up a bit.
Shares my experience:

The function of two mods is same--Reminds moderators editor have reported or waiting approval posts.

Compares tiny difference is:
  • The "mod needed" mod can "shows the number of posts and/or number of topics waiting approval as well as the number of posts that have been reported. Clicking on either link presented takes the user directly to the appropriate spot in the MCP to deal with the post or the topic";
    The "MCP info on index" mod just show reported and waiting approval posts, and Clicking on either link can not "directly to the appropriate spot in the MCP to deal with the post or the topic".
  • But the "MCP info on index" mod install better simple and at index remind block is very nice;
    I think: If it is able to appear every page much perfect.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to my forum!!
http://wang5555.hopto.org/phpBB3/
p.s. Shut down computer before 11 clock night!!!

User avatar
Ahri89
Registered User
Posts: 512
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: MCP info on index

Post by Ahri89 » Thu Jan 29, 2009 1:11 am

Great mod, thanks.
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD

User avatar
pascal24
Registered User
Posts: 60
Joined: Mon Apr 06, 2009 7:12 am
Location: Netherlands
Contact:

Re: MCP info on index

Post by pascal24 » Mon Apr 06, 2009 8:15 am

Handy and usefull MOD, many thanks!
-Pascal

Support will not be given via PM, MSN or e-mail

fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: MCP info on index

Post by fasko » Sat Apr 11, 2009 4:51 pm

Thank you


Image :)
Sorry for my english

zach'
Registered User
Posts: 44
Joined: Sat Nov 01, 2008 2:07 pm

Re: MCP info on index

Post by zach' » Sat Apr 18, 2009 6:44 pm

Thanks for this great mod, ;)

I think it would be perfect if the MCP Info could be seen at the top of viewforum_body.html and viewtopic_body.html (in addition of index_body.html)

So i have add your part of the code :

Code: Select all

<!-- IF S_HAS_REPORTS or S_HAS_UNAPPROVED_POSTS -->
<div id="message" class="rules">
    <div class="inner"><span class="corners-top"><span></span></span>
        <strong>{L_INFORMATION}:</strong> 
        <!-- IF S_HAS_REPORTS --><a href="{U_MCP_REPORTS}">{L_REPORTS_TOTAL}</a><!-- ENDIF -->
        <!-- IF S_HAS_REPORTS and S_HAS_UNAPPROVED_POSTS --> &bull; <!-- ENDIF -->
        <!-- IF S_HAS_UNAPPROVED_POSTS --><a href="{U_MCP_QUEUE}">{L_UNAPPROVED_TOTAL}</a><!-- ENDIF -->
    <span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
to viewforum_body.html and viewtopic_body.html,

Could you tell me witch php file i have to add the fonction (like in index..php)

I think it's viewforum.php and viewtopic.php but it doesnt work, for alert in viewtopic_body.html :|

Ineed help please :oops:

Thanks a lot

User avatar
Derky
Development Team Member
Development Team Member
Posts: 4814
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: MCP info on index

Post by Derky » Thu Apr 23, 2009 5:44 pm

Open: viewforum.php
Find:

Code: Select all

            $mark_time_forum = (isset($tracking_topics['f'][$forum_id])) ? (int) (base_convert($tracking_topics['f'][$forum_id], 36, 10) + $config['board_startdate']) : $user->data['user_lastmark'];
        }
    } 
After add:

Code: Select all

    // Show amount of reported and queue posts for authenticated users
    if ($auth->acl_getf_global('m_report') || $auth->acl_getf_global('m_approve'))
    {
        if (!function_exists('get_forum_list'))
        {
            include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
        }
        $user->add_lang('mcp');
        
        // Reported posts
        $forum_list = get_forum_list('m_report');
        if (!empty($forum_list))
        {
            $sql = 'SELECT COUNT(r.report_id) AS total
                FROM ' . REPORTS_TABLE . ' r, ' . POSTS_TABLE . ' p
                WHERE r.post_id = p.post_id
                    AND r.report_closed = 0
                    AND ' . $db->sql_in_set('forum_id', $forum_list);
            $result = $db->sql_query($sql);
            $total = (int) $db->sql_fetchfield('total');
            $db->sql_freeresult($result);

            if ($total)
            {            
                $template->assign_vars(array(
                    'L_REPORTS_TOTAL'    => ($total == 1) ? $user->lang['REPORT_TOTAL'] : sprintf($user->lang['REPORTS_TOTAL'], $total),
                    'U_MCP_REPORTS'        => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports'),
                    'S_HAS_REPORTS'        => true)
                );
            }
        }
        
        // Posts in queue
        $forum_list = get_forum_list('m_approve');
        if (!empty($forum_list))
        {
            $sql = 'SELECT COUNT(post_id) AS total
                FROM ' . POSTS_TABLE . '
                WHERE ' . $db->sql_in_set('forum_id', $forum_list) . '
                    AND post_approved = 0';
            $result = $db->sql_query($sql);
            $total = (int) $db->sql_fetchfield('total');
            $db->sql_freeresult($result);

            if ($total)
            {
                $template->assign_vars(array(
                    'L_UNAPPROVED_TOTAL'        => ($total == 1) ? $user->lang['UNAPPROVED_POST_TOTAL'] : sprintf($user->lang['UNAPPROVED_POSTS_TOTAL'], $total),
                    'U_MCP_QUEUE'            => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue'),
                    'S_HAS_UNAPPROVED_POSTS'    => true)
                );
            }
        }    
    } 
Open: viewtopic.php
Find:

Code: Select all

    $s_first_unread = false;
    if (!$first_unread && $post_unread)
    {
        $s_first_unread = $first_unread = true;
    } 
After add:

Code: Select all

    // Show amount of reported and queue posts for authenticated users
    if ($auth->acl_getf_global('m_report') || $auth->acl_getf_global('m_approve'))
    {
        if (!function_exists('get_forum_list'))
        {
            include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
        }
        $user->add_lang('mcp');
        
        // Reported posts
        $forum_list = get_forum_list('m_report');
        if (!empty($forum_list))
        {
            $sql = 'SELECT COUNT(r.report_id) AS total
                FROM ' . REPORTS_TABLE . ' r, ' . POSTS_TABLE . ' p
                WHERE r.post_id = p.post_id
                    AND r.report_closed = 0
                    AND ' . $db->sql_in_set('forum_id', $forum_list);
            $result = $db->sql_query($sql);
            $total = (int) $db->sql_fetchfield('total');
            $db->sql_freeresult($result);

            if ($total)
            {            
                $template->assign_vars(array(
                    'L_REPORTS_TOTAL'    => ($total == 1) ? $user->lang['REPORT_TOTAL'] : sprintf($user->lang['REPORTS_TOTAL'], $total),
                    'U_MCP_REPORTS'        => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports'),
                    'S_HAS_REPORTS'        => true)
                );
            }
        }
        
        // Posts in queue
        $forum_list = get_forum_list('m_approve');
        if (!empty($forum_list))
        {
            $sql = 'SELECT COUNT(post_id) AS total
                FROM ' . POSTS_TABLE . '
                WHERE ' . $db->sql_in_set('forum_id', $forum_list) . '
                    AND post_approved = 0';
            $result = $db->sql_query($sql);
            $total = (int) $db->sql_fetchfield('total');
            $db->sql_freeresult($result);

            if ($total)
            {
                $template->assign_vars(array(
                    'L_UNAPPROVED_TOTAL'        => ($total == 1) ? $user->lang['UNAPPROVED_POST_TOTAL'] : sprintf($user->lang['UNAPPROVED_POSTS_TOTAL'], $total),
                    'U_MCP_QUEUE'            => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue'),
                    'S_HAS_UNAPPROVED_POSTS'    => true)
                );
            }
        }    
    } 
Open: ./styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<!-- IF FORUM_DESC or MODERATORS or U_MCP -->
<p>
	<!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body -->
	<!-- IF FORUM_DESC --><span style="display: none">{FORUM_DESC}<br /></span><!-- ENDIF -->
	<!-- IF MODERATORS --><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}<!-- ENDIF -->
</p>
<!-- ENDIF -->
After add:

Code: Select all

<!-- IF S_HAS_REPORTS or S_HAS_UNAPPROVED_POSTS -->
<div id="message" class="rules">
    <div class="inner"><span class="corners-top"><span></span></span>
        <strong>{L_INFORMATION}:</strong> 
        <!-- IF S_HAS_REPORTS --><a href="{U_MCP_REPORTS}">{L_REPORTS_TOTAL}</a><!-- ENDIF -->
        <!-- IF S_HAS_REPORTS and S_HAS_UNAPPROVED_POSTS --> &bull; <!-- ENDIF -->
        <!-- IF S_HAS_UNAPPROVED_POSTS --><a href="{U_MCP_QUEUE}">{L_UNAPPROVED_TOTAL}</a><!-- ENDIF -->
    <span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Open: ./styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- IF MODERATORS or U_MCP -->
	<p>
		<!-- IF MODERATORS -->
			<strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}
		<!-- ENDIF -->

	</p>
<!-- ENDIF -->
After add:

Code: Select all

<!-- IF S_HAS_REPORTS or S_HAS_UNAPPROVED_POSTS -->
<div id="message" class="rules">
    <div class="inner"><span class="corners-top"><span></span></span>
        <strong>{L_INFORMATION}:</strong> 
        <!-- IF S_HAS_REPORTS --><a href="{U_MCP_REPORTS}">{L_REPORTS_TOTAL}</a><!-- ENDIF -->
        <!-- IF S_HAS_REPORTS and S_HAS_UNAPPROVED_POSTS --> &bull; <!-- ENDIF -->
        <!-- IF S_HAS_UNAPPROVED_POSTS --><a href="{U_MCP_QUEUE}">{L_UNAPPROVED_TOTAL}</a><!-- ENDIF -->
    <span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Go to the ACP > Styles > Templates and refresh prosilver. ;)

zach'
Registered User
Posts: 44
Joined: Sat Nov 01, 2008 2:07 pm

Re: MCP info on index

Post by zach' » Mon May 11, 2009 10:45 pm

Thank a lot Derky

great addition feature

it work fine ;)

kbriggs
Registered User
Posts: 3
Joined: Sat May 30, 2009 6:29 pm

Re: MCP info on index

Post by kbriggs » Sat May 30, 2009 6:54 pm

Does this mod work on 3.0.4? I modified index.php and styles/prosilver/template/index_body.html per the instructions but I see no change on my Index page. But when I click Moderator Control Panel it shows that I have pending action: "In total there is 1 post waiting for approval."

User avatar
Derky
Development Team Member
Development Team Member
Posts: 4814
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: MCP info on index

Post by Derky » Sat May 30, 2009 7:35 pm

It works fine on 3.0.4 8-)

You need to refresh the template. ;)
ACP > Styles > Templates > [refresh]

Locked

Return to “[3.0.x] MOD Database Releases”