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

Reply
 
Thread Tools
Ban from Thread Details »»
Ban from Thread
Version: 1.1, by FullyTested FullyTested is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.8 Rating:
Released: 09-21-2007 Last Update: 10-31-2007 Installs: 76
DB Changes Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 09-22-2007, 10:50 AM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good, I'll give it a shot! thanks
Reply With Quote
  #3  
Old 09-22-2007, 11:09 AM
BaHyXuH BaHyXuH is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Won`t be disturbed if try it
Reply With Quote
  #4  
Old 09-22-2007, 12:00 PM
BaHyXuH BaHyXuH is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 09-22-2007, 12:38 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BaHyXuH View Post
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.
Reply With Quote
  #6  
Old 09-22-2007, 12:44 PM
BaHyXuH BaHyXuH is offline
 
Join Date: Aug 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I corrected.Now `Parse error: syntax error, unexpected T_CASE in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 94`
Reply With Quote
  #7  
Old 09-22-2007, 12:46 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
    

Reply With Quote
  #8  
Old 09-22-2007, 01:16 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the release!
Reply With Quote
  #9  
Old 09-22-2007, 03:10 PM
BrotherX BrotherX is offline
 
Join Date: Sep 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was not install this but if this working, this is revolution in the forum.
Reply With Quote
  #10  
Old 09-22-2007, 03:20 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks
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 06:08 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.08083 seconds
  • Memory Usage 2,304KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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