vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 4 Request - [Solved] Ban specific users from specific scripts (https://vborg.vbsupport.ru/showthread.php?t=322014)

Stratis 03-04-2016 07:58 PM

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 :)

HM666 03-08-2016 06:25 AM

Quote:

Originally Posted by Stratis (Post 2566543)
*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.

If these things are outlined in your rules on your site why are you wanting to ban them from specific areas? They obviously cannot follow direction or the rules, why not ban them from the site if they break too many rules? Or use the built in infraction system to give infractions and then eventually ban them if they have too many.

Stratis 03-08-2016 06:30 AM

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.

HM666 03-08-2016 06:48 AM

EDIT: Nevermind, I'm need a nap too tired. LOL

SaN-DeeP 03-09-2016 09:09 AM

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

Stratis 03-09-2016 09:18 AM

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

MarkFL 03-29-2016 01:10 PM

1 Attachment(s)
Hello Stratis,

I have attached a product for your testing. :)

Stratis 03-29-2016 02:15 PM

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

MarkFL 03-29-2016 02:53 PM

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

Stratis 03-29-2016 04:47 PM

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.


All times are GMT. The time now is 10:20 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.01717 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)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
  • (10)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