![]() |
vBulletin 4 Request - [Solved] Ban specific users from specific scripts
Hi!
Lets say that we want to BAN a specific user from specific scripts. As we most know: *we always see users that they have bad manners in sites. *users that they bother others with no particular reason with personal messages. *they change there avatar with restricted images. *they make posts or threads without substance.(some forums may have hidden files, and to display must have a number of specific posts. ...and many other occasions. if Mod has 1st option: Stratis|newreply,private Userx|newthread,search Stratis, cannot make replies and private messages. Userx, cannot make new threads and search. if Mod has 2st option: A field that we can write some info in html that user will see that he is bla, bla, bla. ------------------------------------------- And a bit more if it can be combined :D as an 3d option. Ban specific users from specific forums: Stratis|345,243 (forum ids) :) Thanks :) |
Quote:
|
Thanks for your opinion.
Actually BAN is not a good solution for me. They find ways and register again, you know that is very easy for them to do. I prefer to restrict them from some things in forum rather BAN them. |
EDIT: Nevermind, I'm need a nap too tired. LOL
|
I assume, they will register again with new account, once they come to know about these restrictions on them ?
Check vb.com tricks for vb3 and vb4, there were some tips which showed how to restrict scripts. You might have to search a bit. very old thread |
I did that before making thread. searched many cases, i found some but they only restrict only one specific script, so they can not be used if there is not a way to import what you want to restrict.
Thanks for the answer |
1 Attachment(s)
Hello Stratis,
I have attached a product for your testing. :) |
Mark thank you very much for not forgetting :)
Works in me test forum. 1) Problem with case sensitive user names (Stratis, stratis) 2) and basic, the error user will see is the common You do not have permission to access this page. This could be due to one of several reasons: bla, bla, bla... I don't know if it can have a field that we can write our message. even in two occasions: * Users|Restricted Scripts * Users|Restricted Forums separated field to input error message user will see. If its to much, as it is will do :D |
1 Attachment(s)
Okay...good! :D
I have fixed the case sensitivity of usernames, and added two phrases that you can use to give a custom message to the user: https://vborg.vbsupport.ru/attachmen...1&d=1459270345 |
Yes. that's it, :)
the only issue is that when restrict from new reply. It says first: "Are you sure you want to leave this page? This site says... Changes made in the editor will be lost." and than the message comes up. In all browsers, except Firefox :( When ever you want and have time, I have more ideas for this modification. :up: Thank you so much for making this live. --------------- Added [DATE]1459283838[/DATE] at [TIME]1459283838[/TIME] --------------- Some thing else Mark, when i add phrase in my language it does not take effect if I don't change it in the English field to. |
Quote:
I can't help with the translation...I have never needed to do any translations. :) |
I have quick reply open, member don't need to press to show. sorry if I don't understand. Ok, it is not a big deal. For translate no problem there to. I don't have English language any way for user to select.
Fine, thanks a lot. tomorrow I will put it in my live forum. :D |
Yes, on my local dev site, I have quick reply open as well (the box is present on the "showthread" page), and I don't have any issues with FireFox or Chrome when restricting the "newreply" script. :)
|
Just tested in live forum. Very nice.
Thank you Mark :) --------------------------------------------------------------- Feature For some other time, if this can be added? Users|Restricted Scripts Now = Username|script1, script2, ... Feature = Username|posts?|script1, script2, ... Users|Restricted Forums Now = Username|forumid1, forumid2, ... Feature = Username|posts?|forumid1, forumid2, ... Feature message includes: {1} how many posts user must have. :D |
Quote:
|
Yes, that's good. Thank you.
|
Quote:
|
1 Attachment(s)
Hello, Stratis!
I have attached the updated version...give it a whirl and let me know what you think. ;) |
Yes Mark that's ok. More useful than before :D
:up: Thank you. |
Quote:
|
The only problem, if we can say it problem! is the message with browsers.
I know, I know :D we talk about this in post #11. but why all other mods of you that have a message works fine, and this not? Maybe because it uses a bit of Vbulletin error script? Can be done like... "MarkFL - Restrict Posting By Forum" "MarkFL - Force Avatar" "MarkFL - Cannot PM Self" They work in all browsers, I don't know maybe its not a good idea :) or its different coding. .................................................. ............................ I thing if this modification had an option: Usergroups|Postcount|Restricted Threads It would involve all situations. :p |
Try changing the "Hook Location" of the plugin titled "Prevent Restricted Users From Viewing Scripts" to "global_bootstrap_complete" and see if the message issue is still present. :)
edit: Once we get this message issue ironed out, I will add 2 settings for threads, one for users and one for usergroups. |
I made the change, same results :)
|
Okay, try the hook location "global_start"...all of these hook locations work with no issue for me...
|
No, same.
|
Quote:
edit: I just installed this on another site, and had no issue with the message in Firefox and Chrome... |
My patience and effort? These are my words to you, not from you to me.
Thanks a lot. |
Quote:
|
1 Attachment(s)
I have attached version 1.2! :D
I have added the settings for threads, and grouped the settings by scripts, forums and threads for easier navigation. Until I can figure out how to duplicate the issue you have reported with the message, I can't think of how to address that. :( |
You are a Master Piece :D
Tested in live forum, works fine. This modification is the best solution for quietly BAN users. As we know banning users with the traditional way is not a solution for many purposes. Than you :) |
Quote:
You know, instead of or in addition to the postcount, how would you feel about giving a date for the restriction to be lifted? |
Quote:
because I don't want them to know why they are restricted. In all messages I begin with the phrase "Temporarily you are..." I think this way user don't think to make another registration. So same thought is informing user that in 3 months restrict will end. :D |
Quote:
|
Yes that's a good idea, to ban for 7 or more less. situations for members are different for each of them, must focus what is the problem that each one makes to forum and ban individual. So as many option we have that's the best. :)
|
Okay, I will add that option, and I also think we should give the option for a daily cron job to be run that will remove items from the restrictions lists where the restrictions have been lifted. :)
|
All times are GMT. The time now is 01:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|