Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Show posts to moderate in the new notification menu Details »»
Show posts to moderate in the new notification menu
Version: 1.2, by ragtek ragtek is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.7.4 Rating:
Released: 01-21-2008 Last Update: 12-23-2008 Installs: 70
Re-useable Code Translations  
No support by the author.

this adds an extra menubit into the menu where you see the posts to moderate

Sorry, in the Screenshot it is german, but in the uploaded version i changed it into english

Changehistory:
1.1

=====
- changed: Menu is just for Mods and Admins vissible
- changed: Now using phrase instead of hardcoded text

1.11

======
- bugfix: in 1.1 i used a false phrasegroup and hook

- Changed: i took can_moderatebecause of the second extraquery out
i have to search for something else

Show Your Support

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

Comments
  #22  
Old 07-18-2008, 11:44 AM
powerful_rogue powerful_rogue is offline
 
Join Date: Jan 2007
Location: Kent
Posts: 603
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TFEX View Post
Been asked a few times already I see. Guess I'll have a look into it myself, I'll let you guys know what I come up with.

Thanks TFEX.

Any update at all?
Reply With Quote
  #23  
Old 07-18-2008, 02:29 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by powerful_rogue View Post
Thanks TFEX.

Any update at all?
See first post:

Quote:
Changehistory:
1.1

=====
- changed: Menu is just for Mods and Admins vissible
- changed: Now using phrase instead of hardcoded text
Reply With Quote
  #24  
Old 07-18-2008, 03:57 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What exactly is the name of the phrase to edit?
Reply With Quote
  #25  
Old 07-19-2008, 09:02 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doz View Post
Can you do it for all things waiting aprovel like user thread any profile mesaage
This would be optimal.
Some help with this might be that vbadvanced 3 has a quick moderation module, which shows posts, threads, VM's, attachments, members, to moderate.
Reply With Quote
  #26  
Old 08-30-2008, 12:31 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by reesev View Post
anyway to make it so non staff members do not see these notices? its really causing confusion but other then that it works fine.
The same for me.

I changed the attached xml-File:

Code:
 <phpcode><![CDATA[
if (can_moderate()) {
$postcount = $db->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "moderation AS moderation
INNER JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = moderation.primaryid)
WHERE moderation.type = 'reply'
");
$vbulletin->userinfo['poststomoderate'] = $postcount['count'];
$notifications['poststomoderate'] = array(
'phrase' => $vbphrase['moderated_posts'],
'link' => 'moderation.html?do=viewposts&type=moderated' . $vbulletin->session->vars['sessionurl_q'],
'order' => 10
);
}
]]></phpcode>
After this changes, only members with moderator-rights see the message.

This addition should be standard in vb.

Greetings,
Chriss
Reply With Quote
  #27  
Old 10-02-2008, 02:39 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be nice if there was something for 3.6 too.
Reply With Quote
  #28  
Old 10-02-2008, 09:38 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.6 doesn't have notifications like 3.7 does.
The upgrade is a must.
Reply With Quote
  #29  
Old 10-17-2008, 07:09 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well.. It doesn't work for a fresh 3.7.3 PL1

Would appreciate if somebody updates this mod.

Thanks
Reply With Quote
  #30  
Old 12-16-2008, 10:29 PM
DebtFree's Avatar
DebtFree DebtFree is offline
 
Join Date: Dec 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got this working, and even better. If you change the 'notifications_list' plugin to the following code, it will display both posts and threads awaiting moderation ...
PHP Code:
if (can_moderate()) {
$postcount $db->query_first("
    SELECT COUNT(*) AS count
    FROM " 
TABLE_PREFIX "moderation AS moderation
    INNER JOIN " 
TABLE_PREFIX "post AS post ON (post.postid = moderation.primaryid)
    WHERE moderation.type = 'reply'
"
);
$vbulletin->userinfo['poststomoderate'] = $postcount['count'];
    
$notifications['poststomoderate'] = array(
            
'phrase' => $vbphrase['posts_awaiting_moderation'],
            
'link'   => 'moderation.php?do=viewposts&type=moderated' $vbulletin->session->vars['sessionurl_q'],
            
'order'  => 10
        
);
$threadcount $db->query_first("
    SELECT COUNT(*) AS count
    FROM " 
TABLE_PREFIX "moderation AS moderation
    INNER JOIN " 
TABLE_PREFIX "thread AS thread ON (thread.threadid = moderation.primaryid)
    WHERE moderation.type = 'thread'
"
);
$vbulletin->userinfo['threadstomoderate'] = $threadcount['count'];
    
$notifications['threadstomoderate'] = array(
            
'phrase' => $vbphrase['threads_awaiting_moderation'],
            
'link'   => 'moderation.php?do=viewthreads&type=moderated' $vbulletin->session->vars['sessionurl_q'],
            
'order'  => 10
        
);

NB: You should also change the 'init_startup' plugin to read
PHP Code:
$phrasegroups[] = 'thread'
Reply With Quote
  #31  
Old 12-24-2008, 05:28 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DebtFree View Post

NB: You should also change the 'init_startup' plugin to read
PHP Code:
$phrasegroups[] = 'thread'
Which init_startup plugin? Did you mean "global_start"?
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 12:07 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.04943 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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