Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-31-2005, 07:36 PM
Urges Urges is offline
 
Join Date: Jul 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the super moderator permissions plug, and that does pretty much everything I want, except I can't limit the amount of time moderators are allowed to ban for, and I can't add extra administrative tools into Smod CP.

I'm pretty fussy :P.

Does anyone know how I can manually remove and add mod tools, and manually create another modcp, (which is password protected - this will be given out to super moderators), and add/remove tools from there.

Thanks a lot.
Reply With Quote
  #12  
Old 08-31-2005, 07:41 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add: Hook mod_index_navigation
Remove: Not possible without File Edits. However, this should not be necessary as only those Entries where the User has Permission will show up.

To limit the amount of time for a Ban, take a look here:
https://vborg.vbsupport.ru/showthread.php?t=93459
Reply With Quote
  #13  
Old 08-31-2005, 08:03 PM
Urges Urges is offline
 
Join Date: Jul 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Add: Hook mod_index_navigation
What do you mean by that? I appologise for my incompetence, and thank you.
Reply With Quote
  #14  
Old 08-31-2005, 08:04 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I mean that you can add Code to Hook mod_index_navigation the extend the ModCP Navigation Frame.
Reply With Quote
  #15  
Old 08-31-2005, 08:13 PM
Urges Urges is offline
 
Join Date: Jul 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
I mean that you can add Code to Hook mod_index_navigation the extend the ModCP Navigation Frame.
...And how would I go about doing that? Lol, I do appologise, I have no experience when it come to editing vB...

Also, the 3 week ban plugin only allows the moderator to ban for a period of 3 weeks, nothing less. The object is so that they can ban for the time periods of 1 day - 3 weeks. Oh, and there is no way to separate the 3 week ban permission from modcp to smodcp (who should be able to to ban for any of the default periods of time).

Perhaps you should just give up on me now? :P.

Thanks.
Reply With Quote
  #16  
Old 08-31-2005, 08:29 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, your request was "for 3 weeks ONLY.", so the Plugin exactly implements this
If you want "for up to 3 weeks ONLY", use this Code instead:

PHP Code:
function my_convert_date_to_timestamp($period)
{
    
$p explode('_'$period);

    if (
$p[0] == 'P')
    {
        
$time 0;
        return 
0;
    }
    else
    {
        
$d explode('-'date('H-i-n-j-Y'));
        
$date = array(
            
'h' => &$d[0],
            
'm' => &$d[1],
            
'M' => &$d[2],
            
'D' => &$d[3],
            
'Y' => &$d[4]
        );

        
/*if ($date['m'] >= 30)
        {
            $date['h']++;
        }*/

        
$date["$p[0]"] += $p[1];
        return 
mktime($date['h'], 00$date['M'], $date['D'], $date['Y']);
    }
}


if (
$_REQUEST['do'] == 'dobanuser' AND my_convert_date_to_timestamp($vbulletin->GPC['period']) > (TIMENOW+1814400) AND !($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
    
print_stop_message('no_permission_ban_users');

The Code you have to put in Hook mod_index_navigation depends on what you want to do, therefore I can't tell.

There is no "SMod CP" - just a ModCP that can be accessed by Moderators, Supermods and Admins.
Reply With Quote
Reply


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 07:54 AM.


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.05483 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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