vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Moderators Functions - Ban Users From a Thread (https://vborg.vbsupport.ru/showthread.php?t=152121)

AcidX 07-12-2007 10:00 PM

Ban Users From a Thread
 
Ban Users From A Thread
(Keep users out of a particular thread)




Summary:

Allows Administrators/Supermods to ban a user from a particular thread.
Most useful if you have a "flame started" and you dont want to lock the entire thread or ban the user entirely - just keep them out of the thread!

This mod was originaly created by Trigunflame for vb 3.5, but since the developer hasn't been online and updated his mod since 2006, I've decided to publish this port for 3.6 (thanks beano33)! I've tested it on 3.6.4 and 3.6.7 - and it works perfectly.


Features:

1. Allows Banning users from a particular thread.
2. This mod can be used if user has SuperModerator or higher permissions.
3. Cannot ban Mods/Supermods/Admins.
4. Can clear all bans in a particular thread, or bans from All threads.
5. Can ban/unban user from a single menu when clicking their username.
6. Page to display Forum Wide Thread Bans.


Instructions:

1. Download the .zip file
2. Read the guide in the README.txt document
3. Click Install if you like the mod :)


Support:

I will offer as much support as I can for all of you that installed this mod.
Please do not PM me for support, and state your question in this thread.

apiasto 07-13-2007 11:19 AM

will give it a try , nice idea thnx.

Taios 07-13-2007 12:14 PM

yaaaaaaaaay tyvm!!

Naxon 07-13-2007 01:44 PM

WOWW !!
That's what I always needed !!

Installed !!

4x4 Mecca 07-13-2007 04:00 PM

They can still read it by logging out right? Just not post in it?

AcidX 07-13-2007 04:06 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1290059)
They can still read it by logging out right? Just not post in it?

Yes, they can read it when they're not logged it.

Exactly the same as banned users. They can read every forum/thread depending on the permissions in their usergroup or the forum permissions - when they're not logged in. Only IP address bans can prevent someone from reading the entire content on your form.

Using this mod you can ban your member's username/userid from the specific thread. So, that way, they won't be able post in the particular thread, nor access it while logged in. There's no other way to limit someone's access from a thread. This is exactly what forum administrators want ;)

Subah 07-13-2007 06:49 PM

Cool, Thanks

FreshFroot 07-13-2007 08:05 PM

finally.. someone fixes the hack!! thanks so much mate!!

Taios 07-13-2007 08:39 PM

Hey,
I installed the mod however am having some difficulties.

In the 'Thread tools' what is in the screenshot appears. However when i click the username, it does not say 'Ban user from thread' :(.

I installed the product and then i did the template edits :).

Any help is appreciated

- Thanksyou

aj8690 07-13-2007 10:14 PM

This is great. Is there any way to make it so normal moderators can do this in their assigned forums, too?

AcidX 07-13-2007 10:37 PM

Quote:

Originally Posted by Taios (Post 1290246)
Hey,
I installed the mod however am having some difficulties.

In the 'Thread tools' what is in the screenshot appears. However when i click the username, it does not say 'Ban user from thread' :(.

I installed the product and then i did the template edits :).

Any help is appreciated

- Thanksyou

You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work. ;)

Quote:

Originally Posted by aj8690 (Post 1290316)
This is great. Is there any way to make it so normal moderators can do this in their assigned forums, too?

Not yet, but probably will soon.

Code Monkey 07-13-2007 11:32 PM

Maybe add a temp ban as well.

aj8690 07-13-2007 11:33 PM

Quote:

Originally Posted by AcidX (Post 1290347)
Not yet, but probably will soon.

Thanks! Then it would be perfect! I really hope it is possible.

Taios 07-13-2007 11:41 PM

Quote:

Originally Posted by AcidX (Post 1290347)
You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work. ;)

Not yet, but probably will soon.

Ah, sorry about that.

It fixed my problem :D. Thankyou very much!

SuperTaz 07-14-2007 05:36 AM

How do I use it? Do I right-click on the flamers name and something will come up and click ban or do I just go to the user options menu?

AcidX 07-14-2007 06:52 AM

Quote:

Originally Posted by Warden-B- (Post 1290566)
How do I use it? Do I right-click on the flamers name and something will come up and click ban or do I just go to the user options menu?

Just click on your member's usernames (not avatars) while reading the specific thread.

You will notice the following options in the drop-down menu:

- View Public Profile
- Send a private message to [member]
- Find all posts by [member]
- Add [member] to Your Buddy List
- Ban User from Thread

Choose "Ban User from Thread" and Whoala!

If you wish to unban the member, either click it's username again and choose "Unban User from Thread", or click Thread tools and choose to: Clear this threads bans, Clear every threads bans, or - View all threads bans.

SuperTaz 07-14-2007 07:34 AM

Doesn't show and I did everything right. Will it conflict with other mods on my site?

http://img175.imageshack.us/img175/7618/nopeat0.jpg

AcidX 07-14-2007 08:14 AM

Quote:

Originally Posted by Warden-B- (Post 1290633)
Doesn't show and I did everything right. Will it conflict with other mods on my site?

No mate, I dobt there's a conflict with some other mod.
I'll have to repeat myself thouh :)

You probably missed step #3 from the installation manual:
- Open BOTH templates posbit and postbit_legacy;
- FIND:
Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>

- Bellow that code, add the following:
Code:

<if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&t=$post[threadid]&u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&t=$post[threadid]&u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>

Make sure you edit both templates. It will surely work.

Magnumutz 07-14-2007 12:43 PM

This is exactly what Coders Shack was looking for.

projectego 07-14-2007 05:59 PM

/me clicks install

Snake 07-14-2007 06:19 PM

Thanks for this. It might come in handy. =]

SuperTaz 07-14-2007 06:20 PM

In your zip file it says open one template OR the other. Not both. You should change that if that is what you meant. But it works now, so thanks.

See Here is what it says on your readme document.

Quote:

3. Open your styles "posbit" or "postbit_legacy" template, whichever you use.
- Find near the bottom of the template:

<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>

- Below that, add:

<if condition="$show['btu_canban']">
<if condition="!isset($btu[$post[threadid]][$post[userid]])">
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
<else />
<tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
</if>
</if>

AcidX 07-14-2007 10:02 PM

I'm glad it works now ;)

It also says: "whichever you use".
But since most people don't really know which template to edit, I'll change the readme document.

Thanks.

sola 07-14-2007 11:23 PM

Quote:

Originally Posted by aj8690 (Post 1290316)
Is there any way to make it so normal moderators can do this in their assigned forums, too?

The limitation of the original is still the limitation of the revised version, it seems. Mods actually need this more than Admins. Mods are always on the site, not the Admins. Oh well, shouldn't look a gift horse in the mouth...

SuperTaz 07-15-2007 12:07 AM

Quote:

Originally Posted by AcidX (Post 1291175)
I'm glad it works now ;)

It also says: "whichever you use".
But since most people don't really know which template to edit, I'll change the readme document.

Thanks.


Thanks man. I just wanted to give you a heads up on that. You had me confused. :)

Muellmann 07-15-2007 12:57 AM

Awesome hack indeed clicked install now. :up:

Milad 07-16-2007 07:33 AM

Some edits can be done via the new template hooks

also

for the plugins newreply_start, threadmanage_start and showthread_getinfo, it's better to use init_startup
PHP Code:

$datastore_fetch[] = "'btu'"

And then, in next hooks, use
PHP Code:

$vbulletin->btu 

By doing that, you'll optimize the hack and save three unnecessary queries.

Alteran Ancient 07-18-2007 12:17 PM

I would love to see the ability to ban people (or even usergroups (doesn't matter ATM)) from threads without needing them to post first. What if you don't want them to see the thread in the first place? It would be nice to either have a dialogue where you enter the specific user's userid, or go to their profile page and ban them that way.

At this time, the mod's benefit is that it only installs with a Product file; not seperate .php files.

Censtudios 07-18-2007 04:46 PM

I installed this and when I use quickreply, no matter how long my quickreply is, it keeps saying I need to insert at least 10 characters.

I had a hard time finding out where it came from and it was this hack!

I dont know what happened, but its annoying, good hack, but shame for the bugs. uninstalled

- edit

now my whole forum is screwed up, thanks a lot!

Alibass 07-18-2007 05:56 PM

Quote:

Originally Posted by Censtudios (Post 1294768)
I installed this and when I use quickreply, no matter how long my quickreply is, it keeps saying I need to insert at least 10 characters.

I had a hard time finding out where it came from and it was this hack!

I dont know what happened, but its annoying, good hack, but shame for the bugs. uninstalled

- edit

now my whole forum is screwed up, thanks a lot!

There are over 50 installs of this hack and one is mine and nobody seems to be having this problem. Maybe you need to uninstall and reinstall hack.

AcidX 07-19-2007 04:30 AM

Quote:

Originally Posted by Censtudios (Post 1294768)
I installed this and when I use quickreply, no matter how long my quickreply is, it keeps saying I need to insert at least 10 characters.

I had a hard time finding out where it came from and it was this hack!

I dont know what happened, but its annoying, good hack, but shame for the bugs. uninstalled

- edit

now my whole forum is screwed up, thanks a lot!

Just disable/uninstall the mod and see if it's working that way.
Really, this mod shouldn't affect your forum posting abilities in any way, especially not the quick editor. It's probably just a coincidence. Have you installed any other mods that day?

question? 07-23-2007 08:02 PM

good mod

question? 07-23-2007 08:30 PM

I've changed the postbit ban, to not allow user group 6:

Code:

<if condition="($show['btu_canban']) AND ($post['usergroupid'] != 6)">
and only allowed admins to clear ALL bans:

Code:

<if condition="$show['btu_canban']">
    <div><label for="ao_btu"><input type="radio" name="do" id="ao_btu" value="btu_clear" />$vbphrase[btu_clear]</label></div>
    <if condition="$usergroupid == 6"><div><label for="ao_btua"><input type="radio" name="do" id="ao_btua" value="btu_clear_all" />$vbphrase[btu_clear_all]</label></div></if>
    <div><label for="ao_btuv"><input type="radio" name="do" id="ao_btuv" value="btu_view_all" />$vbphrase[btu_view_all]</label></div>
    </if>


Nimrod. 07-24-2007 11:49 PM

Just what I was looking for!

*installs*

SuperTaz 08-02-2007 03:40 AM

A great hack. I had to use it once already. lol

Nathan2006 08-03-2007 03:15 PM

Thank you AcidX

nice to see a fully working version of this :D

Install

LadyBeth 08-04-2007 08:30 PM

Question....does this upset them and do they then make alternate threads? This is problem we have seen when trying to ...cool down people. Infractions can be an issue too. How is this working for people?

AcidX 08-06-2007 09:43 PM

It's working as it should be.

If members get "upset" because you banned them from a specific thread and start flooding with alternate threads - why not ban them from the entire forum? LadyBeth, you obviously don't have much experience administrating/moderating large boards.

LadyBeth 08-06-2007 09:47 PM

I do have experience with a fairly large forum, and I just don't want to ban everyone who gets cabin fever. I was just asking if anyone had a backlash from this, that's all.

Julrou 08-09-2007 03:36 PM

Hi, guys ! :)

Could ameliorate your hack to enable mods to ban user from a thread ?

It could be excellent ! ;)


Thanks,

Jul


All times are GMT. The time now is 06:01 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.01517 seconds
  • Memory Usage 1,840KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)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
  • (40)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