vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Thread Blocker by BOP5 - Block usergroup access to specific threads (https://vborg.vbsupport.ru/showthread.php?t=269202)

BirdOPrey5 08-25-2011 10:00 PM

Thread Blocker by BOP5 - Block usergroup access to specific threads
 
1 Attachment(s)
Version 1.2.0: Added blocking by thread prefix
1.1 - Added block by userid
1.0 - Initial Release

I know the best way to control access to threads is via built in permissions and promotions systems however some times for special circmstances there are just certain threads you want to block from certain people- maybe from guests for example. What this mod does is make it easy to block some specific threadids from usergroups you specify. Simple and effective. The users without permission will see an error message saying they don't have access to that particular thread.

1 Plugin and 1 Global Phrase: bop5tb_noaccess - This is the error message others will see when attempting to view a thread.

Working on vBulletin 3.8.7- 4.1.5 and should work on all VB 3.6.x and up including all 4.x versions.

Demo (on VB 4,x forum- but same code):
Blocked Thread: http://www.qapla.com/mods/showthread...ew-this-thread.
Unblocked Thread in same forum: http://www.qapla.com/mods/showthread...la-Demos-Forum

Please Mark as Installed if you use this. :)

BirdOPrey5 08-26-2011 08:51 PM

Reserved.

Max Taxable 08-26-2011 09:11 PM

Installed. Could come in very handy.

TitanJeff 11-06-2011 02:18 PM

I have a football game thread each Sunday which can slow the forum down to a crawl since hundreds of people are posting and refreshing it. My members complain so I'm trying this today to see if blocking guests to the thread helps keep things running smoother. I'll post the results.

UPDATE: This worked very well. No complaints of server load issues from my members and many guests decided to register. For anyone who has a forum with a very active thread which slows their server, this is a must.

inciarco 11-06-2011 03:17 PM

Nice Mod. :up:

It'd be Nice Also to be Able to Specify for Each Thread the Usergroups that Can't Access, (Of Course Admins and Moderators should be Able to See All the the Threads Always).

Adding an Option on the Thread Info for the Usergroups (Separated by Commas), and Perhaps Adding an Option for the Thread Starter (and Admins and Moderators) to Edit those Usergroups, that Way for Each Thread this Block can be Also Specified Individually.

My Best Regards.

:)

vijayninel 11-06-2011 03:21 PM

Thank you. Nice mod. :)

It would be nice if one cold specify specific users in addition to specific usergroups.

BirdOPrey5 11-06-2011 03:52 PM

Thanks all... When I get some time I'll look at adding more options.

BirdOPrey5 12-11-2012 05:57 PM

Updated to version 1.2- Allows you to specify thread prefix ids to block threads.

matrex722 12-20-2012 10:17 PM

Thank you. Nice mod.

klaush 12-22-2012 09:23 AM

Nice idea, but its just and only working for the first time. After that the specified usergroup(s) are blocked for all threads, even when you delete the given thread id in the configuration. Then you have to disable the whole modification for giving them access to all other threads as well.


All times are GMT. The time now is 09:22 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
  • Page Generation 0.01144 seconds
  • Memory Usage 1,727KB
  • 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)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