vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Ban from Thread (https://vborg.vbsupport.ru/showthread.php?t=158445)

FullyTested 09-21-2007 10:00 PM

Ban from Thread
 
Ban from Thread

This mod allows your moderators to do the following:
  • Ban a user from a thread via the username drop down menu in a post (as well as the admin/mod cp).
    This opens a page which allows you to select a ban period, whether or not to allow the user to view the thread, and provide a text message which the user will see when trying to view or reply to the thread.
  • Once you ban the user you are returned to the same post from which you banned.
    You will now notice a small icon besides the ip icon.
    Clicking on that will open a page that will display the current ban information as well as a list of other threads from which this user is banned.
    You will also have the option to edit or lift the ban from here.
    You may now also unban the user from the username drop down menu.
  • From the admin cp you can set whether you wish to have a Private Message sent to the user whenever they are banned/unbanned.
  • You may also view, edit, or lift bans from the admin/mod control panel. Just click on the 'view banned from thread users' link.

To Intall:
Please see the 'readme' text file for installation instructions.


Revisions:

version 1.1
Fixed a problem with search bots.
Just re-import the product, but remember to select 'allow overwrite'.


I hope you find this mod useful.
Sincerely,
FullyTested.

johnrizz 09-22-2007 10:50 AM

Looks good, I'll give it a shot! thanks

BaHyXuH 09-22-2007 11:09 AM

Won`t be disturbed if try it

BaHyXuH 09-22-2007 12:00 PM

What to d0 please tell me :?
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 52

FullyTested 09-22-2007 12:38 PM

Quote:

Originally Posted by BaHyXuH (Post 1344528)
What to d0 please tell me :?
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 52

Ensure your code around line 52 looks like this:
PHP Code:

// pre-cache templates used by specific actions
$actiontemplates = array(
    
'editthread' => array(
        
'threadadmin_editthread',
        
'threadadmin_logbit',
        
'posticonbit',
        
'posticons'
    
),
    
'deleteposts'  => array('threadadmin_deleteposts'),
    
'deletethread' => array('threadadmin_deletethread'),
    
'managepost'   => array('threadadmin_managepost'),
    
'mergethread'  => array('threadadmin_mergethread'),
    
'movethread'   => array('threadadmin_movethread'),
    
'copythread'   => array('threadadmin_movethread'),
    
// start code 'ban from thread'
    
'banuserthread' => array('threadadmin_banuserthread'),
    
'liftbanthread' => array('threadadmin_liftbanthread'),
    
'banthreadinfo' => array('threadadmin_banthreadinfo'),
    
// end code 'ban from thread'
); 

I would have included the modified php files but was not sure if it is legal to include them with these mods.

BaHyXuH 09-22-2007 12:44 PM

I corrected.Now `Parse error: syntax error, unexpected T_CASE in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 94`

FullyTested 09-22-2007 12:46 PM

Once again, insure the code is inside the curly brackets:

PHP Code:

    switch ($_REQUEST['do'])
    {
        case 
'movethread':   $navbits[''] = $vbphrase['move_thread']; break;
        case 
'copythread':    $navbits[''] = $vbphrase['copy_thread']; break;
        case 
'editthread':   $navbits[''] = $vbphrase['edit_thread']; break;
        case 
'deletethread'$navbits[''] = $vbphrase['delete_thread']; break;
        case 
'deleteposts':  $navbits[''] = $vbphrase['delete_posts']; break;
        case 
'mergethread':  $navbits[''] = $vbphrase['merge_threads']; break;
    
// start code 'ban from thread'
        
case 'banuserthread'$navbits[''] = $vbphrase['ban_from_thread']; break;
        case 
'liftbanthread'$navbits[''] = $vbphrase['lift_threadban']; break;
        case 
'banthreadinfo'$navbits[''] = $vbphrase['banthread_info']; break;
    
// end code 'ban from thread'
    



Snake 09-22-2007 01:16 PM

Thanks for the release!

BrotherX 09-22-2007 03:10 PM

I was not install this but if this working, this is revolution in the forum.

m002.p 09-22-2007 03:20 PM

Great work there mate! Will download & "keep on reference" to use when required.

Thanks


All times are GMT. The time now is 02:40 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.03470 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (1)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
  • (10)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