Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 10-13-2007, 08:11 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tiredoff, please check your PM.
Reply With Quote
  #43  
Old 10-13-2007, 07:32 PM
tiredoff tiredoff is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
tiredoff, please check your PM.
hi
You received my PM?
Reply With Quote
  #44  
Old 10-13-2007, 07:50 PM
tiredoff tiredoff is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
I cannot find this in postbit_legacy 3). Find $template_hook[postbit_user_popup]
just i found i8t in postbit
Reply With Quote
  #45  
Old 10-15-2007, 03:35 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I cannot find this in postbit_legacy 3). Find $template_hook[postbit_user_popup]
Just add the code right ABOVE
Code:
	</table>
</div>
<!-- / post $post[postid] popup menu -->

I got your PM and emailed you the info you requested.
Reply With Quote
  #46  
Old 10-15-2007, 10:10 AM
tiredoff tiredoff is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
Just add the code right ABOVE
Code:
	</table>
</div>
<!-- / post $post[postid] popup menu -->

I got your PM and emailed you the info you requested.
above here ?
</table>
</div>
<!-- / post $post[postid] popup menu -->
Reply With Quote
  #47  
Old 10-15-2007, 11:32 AM
tiredoff tiredoff is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
After i add that above the code , i can see the link thank you
but just the ban from the thread or from the all forum ?
Reply With Quote
  #48  
Old 10-15-2007, 04:40 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod only bans from threads.
I have one that will do both but it is not free
Reply With Quote
  #49  
Old 10-17-2007, 05:36 AM
oceanizer oceanizer is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, I don't see "ban user" link under the username. What did possibly go wrong?

Also, is this correct from banning_PHP.txt?
Quote:
3). Find if (!$canbanuser)
and ABOVE insert:

// start code 'ban from thread'
// added ,'threadid' => TYPE_INT
// above
// end code 'ban from thread'
All quoted out? And there were multiple "if (!$canbanuser)."


= Edit =
Trying out the fix you gave to Tiredoff...
Reply With Quote
  #50  
Old 10-17-2007, 05:45 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

First of all the ban from thread link under the username has to do with code in the postbit and/or postbit_legacy templates and not 'banning.php'.

Secondly,
Quote:
All quoted out? And there were multiple "if (!$canbanuser)."
Yes, all commented out as it is there only as reference for future VB file upgrades.
The "if (!$canbanuser)" is the one found right after step 2.

I hope this helps.
Reply With Quote
  #51  
Old 10-17-2007, 05:49 AM
oceanizer oceanizer is offline
 
Join Date: Sep 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Fullytested.

It turned out I was modifying postbit_legacy/postbit for a different skin. It shows up now. Sorry for the trouble.
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 12:59 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.14973 seconds
  • Memory Usage 2,310KB
  • Queries Executed 27 (?)
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_code
  • (5)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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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