vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Ignore users function (https://vborg.vbsupport.ru/showthread.php?t=327046)

04wayne 01-22-2019 04:56 PM

Ignore users function
 
Hi,

I was hoping to make the ignore function (which allows users to place certain posters on an ignore list) a usergroup specific permission - does anyone know if this is possible? Or if there's a mod?

So for e.g. only X usergroup can use the ignore facility.

MarkFL 01-22-2019 07:18 PM

It would be pretty easy to give a user a "no permission" message if they try to add a user to their ignore list. Would that suffice, or are you after something more?

04wayne 01-22-2019 07:47 PM

Potentially, what about the same but for a specific usergroup? That would be ideal.

PS thanks for responding.

MarkFL 01-22-2019 10:04 PM

Do you mean you want one specific usergroup to be unable to ignore anyone?

MarkFL 01-23-2019 04:49 AM

1 Attachment(s)
I have attached a simple mod that will allow you to specify which usergroups have access to the ignore system. Anyone not belonging to one of these groups will not see the link on user profiles to add to ignore list, nor will they see the link in their UserCP to edit their ignore list.

If a user without permission tries to circumvent the system by manually entering a URL to add users to their ignore list, they will get a "no permission" error.

Once you install the product, visit the settings to enable the product, and select your usergroups.

Please give this a try and let me know if you'd like anything added. :)

04wayne 01-23-2019 05:04 AM

Appears to work like a treat, and do exactly what I need it to do - you are a star, thank you so very much MarkFL!

MarkFL 01-23-2019 05:24 AM

Please bear in mind that any users that had people on their ignore list prior to the activation of this product will not be able to remove them, and there's no provision in the AdminCP to edit a user's ignore list.

I will update this product soon to include a link in the settings to run an external script that will clear the ignore lists of all users without permission to use the ignore system.

MarkFL 01-24-2019 03:07 AM

1 Attachment(s)
I am attaching the update as promised. In the settings you will find a link, which you can click to clear the ignore lists of everyone who doesn't have permission to use the ignore system.

Upload the contents of the "upload" folder to your forum's root.

MarkFL 01-24-2019 04:05 PM

1 Attachment(s)
Here is an improved version, where the query in the external script is "smarter."


All times are GMT. The time now is 02:03 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.01063 seconds
  • Memory Usage 1,722KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete