vb.org Archive

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

AcidX 02-16-2011 10:00 PM

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




Summary:

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

Previous versions can be found here: 3.5, 3.6, 3.7


Features:

1. Allows banning users from a particular thread.
2. This mod can be used by Administrators.
3. Cannot ban Moderators/Super Moderators/Administrators.
4. Gives you the ability to clear all bans in a particular thread, or bans from All threads (forum wide).
5. Can ban/unban user from a single menu when clicking their username (https://vborg.vbsupport.ru/ button).
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. Instead, state your question in this thread.

If you installed the product please click install, so you could receive future update notifications. If you want to help develop this product further, please post your suggestions on the thread, or share your ideas with me via PM.

If you find this mod useful and want to buy the developers a beer or two, please donate via PayPay https://vborg.vbsupport.ru/external/2011/12/12.gif

sulasno 02-17-2011 11:14 AM

tagged and thanks;

at the moment, I use Usergroup permissions to ban members from posting in all threads

CharlieDelta 02-17-2011 12:41 PM

Nice idea.

AcidX 02-17-2011 08:00 PM

Quote:

Originally Posted by sulasno (Post 2163555)
tagged and thanks;

at the moment, I use Usergroup permissions to ban members from posting in all threads

That would be like banning them from the entire forum, wouldn't it? :)

It's way more useful if you could just ban the problematic users only from the particular thread that they're "fighting" in. Well, now you can! :) This way, you could punish members by restricting them access to the thread and still save the thread for the other users to discuss.

Let me know how you and your admins like it when you install it :)

OldSchoolDSL 02-17-2011 08:38 PM

1 Attachment(s)
Did not work on

4.1.1 :(

AcidX 02-17-2011 08:56 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2163713)
Did not work on

4.1.1 :(

Never had this problem on 4.1.2. Working on it...
Anyone else experiencing problems?

MoMan 02-17-2011 10:05 PM

From a development standpoint, wouldn't it make more sense to have this mod use the thread table instead of the datastore? That would eliminate the one query that's currently being added to each showthread pageload. After all, you only really ever care about the thread that you're currently viewing. If you wanted to get a global snapshot of all threads with bans a select where thread.btu != NULL query could be used.

I'll likely end up installing this if such a modification is made. Or, if I have some extra time, I'd be more than willing to try making it given your permission (this would be for the 3.x version of the plugin).

BaanFarsang 02-18-2011 02:27 AM

VB4.1.2 errors

Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4097

Parse error: syntax error, unexpected T_STRING in /home/baanfars/domains/baanfarsang.com/public_html/postings.php(212) : eval()'d code(122) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in [path]/includes/functions.php on line 4097


BSViper 02-18-2011 11:54 AM

Great hack!

But i need using this hack by our moderators, not only administrators.. Can someone help?

Thx..

BadgerDog 02-18-2011 03:02 PM

Quote:

Originally Posted by BSViper (Post 2163926)
Great hack!

But i need using this hack by our moderators, not only administrators.. Can someone help?

Thx..

That would be great for us too ... :)

We're running 4.04pl1 ...

Regards,
Doug

sross 02-18-2011 05:54 PM

yeah, need mods to bea able to use this then I can install. Thanks

COL NIL SATIS 02-18-2011 06:26 PM

tagged

Skyrider 02-18-2011 10:00 PM

Using 4.1.1, banned someone:
Quote:

You have been removed from this discussion thread. Please contact an administrator if you are unaware of the reason.
Works great, thanks!

Manoel J?nior 02-18-2011 11:48 PM

Hoooooooooooooooooooooooooooo GREAT my bro'

Very very Thanks!

Tagged Instaled more five stars

Bulletnewcomer 02-19-2011 12:18 PM

tagged

Manoel J?nior 02-19-2011 12:41 PM

"But i need using this hack by our moderators, not only administrators.. Can someone help?

Thx.."

[2]

sticky 02-19-2011 04:18 PM

This is very useful, could this be edited to allow certain other usergroups to use it?

For example, vendors could ban certain competing vendors from posting in their threads taking them off track?

Jahaziel 02-20-2011 11:36 AM

Hi, I have correctly installed this mod, and it runs fine, but when I go to "View All Thread Bans" on top of the page appear the following code:
Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3957

Parse error: syntax error, unexpected T_STRING in /homez.334/lvalhall/board/postings.php(210) : eval()'d code(92) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in [path]/includes/functions.php on line 3957

What is it??
The page shows correctly users who have been banned, but I don't know what mean this code error... :confused:

Thank you, mark as installed and 5*

AcidX 02-20-2011 12:17 PM

Quote:

Originally Posted by Lestat Armagedd (Post 2164563)
Hi, I have correctly installed this mod, and it runs fine, but when I go to "View All Thread Bans" on top of the page appear the following code:
Code:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3957

Parse error: syntax error, unexpected T_STRING in /homez.334/lvalhall/board/postings.php(210) : eval()'d code(92) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: btu_bans in [path]/includes/functions.php on line 3957

What is it??
The page shows correctly users who have been banned, but I don't know what mean this code error... :confused:

Thank you, mark as installed and 5*

Nothing serious, the mod (banning) still works. I'll post an update that fixes this error soon. ;)

NunzioG 02-20-2011 10:35 PM

1 Attachment(s)
I've this problem.

Can you fix please ?

Manoel J?nior 02-20-2011 11:55 PM

Quote:

Originally Posted by NunzioG (Post 2164748)
I've this problem.

Can you fix please ?

I too

reki 02-21-2011 03:53 AM

Great mod!

I would also like to request the ability for moderators to do this, as well as admins. Our mods are regularly telling people not to post in a thread again, and this hack will be very handy.

It would also be great to add a reason, which could then appear on the user message: "You have been removed from this thread because xxx". It would also appear when admins view the thread bans list.

AcidX 02-21-2011 07:44 AM

Quote:

Originally Posted by NunzioG (Post 2164748)
I've this problem.

Can you fix please ?

Quote:

Originally Posted by Manoel J?nior (Post 2164770)
I too

NunzioG, Manoel J?nior
Make sure you have the ban icon (https://vborg.vbsupport.ru/) in /images/site_icons/ignore.png. If not, save it and add it there.

The modification uses this (default and already existing) icon from vBulletin 4 on purpose, so it would spare you the trouble of uploading a custom icon via FTP manually. But, in case for any reason you don't have the icon in your /images/site_icons folder - you should upload it manually :)



Quote:

Originally Posted by reki (Post 2164836)
Great mod!

I would also like to request the ability for moderators to do this, as well as admins. Our mods are regularly telling people not to post in a thread again, and this hack will be very handy.
It would also be great to add a reason, which could then appear on the user message: "You have been removed from this thread because xxx". It would also appear when admins view the thread bans list.

At the moment, that option is not available, but it's in my to-do list.
However, there is a simple work-around that will allow your moderators to ban users from threads - but it's kinda tricky. It will give your moderators permissions to ban users from threads even on forums that they don't moderate.

However, I must advise you to be patient. Both features you mentioned are in my to-do list.

To-Do:

- Allow Mods/Supermods to use thread bans [optional];
- Time ban [hours, days, weeks...];
- Display ban reason when user tries to enter thread;
- Notification for banned users via PM.

Hall of Famer 02-21-2011 08:15 AM

Does this work fine on VB 4.12?

AcidX 02-21-2011 08:25 AM

Quote:

Originally Posted by Hall of Famer (Post 2164882)
Does this work fine on VB 4.12?

Yes, I'm running 4.1.2 on my board.

king zell 02-21-2011 03:23 PM

does this work on 4.0.3 ?

NunzioG 02-21-2011 05:54 PM

Quote:

Originally Posted by AcidX (Post 2164876)
NunzioG, Manoel J?nior
Make sure you have the ban icon (https://vborg.vbsupport.ru/) in /images/site_icons/ignore.png. If not, save it and add it there.

The modification uses this (default and already existing) icon from vBulletin 4 on purpose, so it would spare you the trouble of uploading a custom icon via FTP manually. But, in case for any reason you don't have the icon in your /images/site_icons folder - you should upload it manually :)

Tks. Fix it :)

sulasno 02-22-2011 04:03 AM

Quote:

Originally Posted by AcidX (Post 2163701)
That would be like banning them from the entire forum, wouldn't it? :)

It's way more useful if you could just ban the problematic users only from the particular thread that they're "fighting" in. Well, now you can! :) This way, you could punish members by restricting them access to the thread and still save the thread for the other users to discuss.

Let me know how you and your admins like it when you install it :)

going to install vB 4.1.2 during the weekend and install this mod and will post more

sola 02-25-2011 05:23 AM

Quote:

Originally Posted by AcidX (Post 2164876)
NunzioG, Manoel J?nior
Make sure you have the ban icon (http://forum.kajgana.com/images/site_icons/ignore.png) in /images/site_icons/ignore.png. If not, save it and add it there.

The modification uses this (default and already existing) icon from vBulletin 4 on purpose, so it would spare you the trouble of uploading a custom icon via FTP manually. But, in case for any reason you don't have the icon in your /images/site_icons folder - you should upload it manually :)

I still have this issue and uploading that .png file did not resolve it. Any ideas?

Thanks.

oatsy 02-26-2011 10:43 AM

Quote:

Originally Posted by sola (Post 2166602)
I still have this issue and uploading that .png file did not resolve it. Any ideas?

Thanks.

Yep. I had the same thing and used Firebug to compare the code for this icon/link in the user info to others there, e.g. 'View Forum Posts'. I noticed that in the others, the image paths were missing the leading '/'

I edited the xml file for this mod to remove it, reinstalled the mod, and it's sorted.

So, open the xml file in a text editor, go to line 62 and change it from ...

<img src="/images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}">

to

<img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}">

Save, and reinstall.

sola 02-26-2011 12:04 PM

Good catch oatsy. Problem solved. Thanks a lot.

Coder may want to take note and fix the path in the file for the benefit of others.
Quote:

Originally Posted by oatsy (Post 2167081)
Yep. I had the same thing and used Firebug to compare the code for this icon/link in the user info to others there, e.g. 'View Forum Posts'. I noticed that in the others, the image paths were missing the leading '/'

I edited the xml file for this mod to remove it, reinstalled the mod, and it's sorted.

So, open the xml file in a text editor, go to line 62 and change it from ...

<img src="/images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}">

to

<img src="images/site_icons/ignore.png" alt="{vb:rawphrase btu_unban}">

Save, and reinstall.


BSViper 03-01-2011 11:46 AM

Any news about new release?

Martini-man 03-09-2011 11:18 AM

Great mod :)

Fakher 03-10-2011 05:05 AM

Now one this ....
If the forums is not installed at root the image ignore.png ll not load coz it tries to load image
http://yourdomain/images/site_icons/ignore.png
so if you have forums like in forum directory it should load from here
http://yourdomain/forums/images/site_icons/ignore.png
but it stall loads from old path http://yourdomain/images/site_icons/ignore.png....

i guess this needs to be fixed.

BSViper 03-14-2011 11:05 AM

Quote:

Originally Posted by BSViper (Post 2168212)
Any news about new release?

UP..

Dennis Olson 03-24-2011 06:46 PM

Two things:

1) All staff levels need to be able to ban/unban (as has been stated)

2) There needs to be an indicator on the banned persons post(s) in the thread letting us know that he is banned from it.

Thanks

Rofo 03-28-2011 02:09 AM

Thanks for this. Haven't tested it yet, but seems to be working well on 4.1.1.

Marked installed and rated.

DonosOdD 03-31-2011 12:37 AM

Tagged for later. Might find a good use for this one. :)

Phaedrus 04-02-2011 04:59 AM

Does anybody have this working on 4.1.2?

8thos 04-02-2011 07:37 AM

Quote:

Originally Posted by sticky (Post 2164313)
This is very useful, could this be edited to allow certain other usergroups to use it?

For example, vendors could ban certain competing vendors from posting in their threads taking them off track?

^^^What this guy said!


All times are GMT. The time now is 08:44 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.01409 seconds
  • Memory Usage 1,839KB
  • 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
  • (3)bbcode_code_printable
  • (17)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