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.

Max Taxable 12-22-2012 03:03 PM

Quote:

Originally Posted by klaush (Post 2392196)
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.

I've been using this Mod for a long time, never seen this issue.

klaush 12-22-2012 03:24 PM

The issue, i think, is vbseo?

Someone using this with vbseo installed?

Quote:

Originally Posted by Max Taxable (Post 2392238)
I've been using this Mod for a long time, never seen this issue.


Max Taxable 12-22-2012 04:05 PM

Quote:

Originally Posted by klaush (Post 2392241)
The issue, i think, is vbseo?

Someone using this with vbseo installed?

Did you only just now start using this with latest update? If so you may have indeed found a flaw in the updated version.

Max Taxable 12-22-2012 04:13 PM

1 Attachment(s)
Here's the original product attached, see if this works for you. The update had to do with thread prefix IDs, and maybe VBSEO isn't compatible with that?

klaush 12-22-2012 06:02 PM

Looks better, indeed!

Thanks a lot for your support!

Quote:

Originally Posted by Max Taxable (Post 2392244)
Here's the original product attached, see if this works for you. The update had to do with thread prefix IDs, and maybe VBSEO isn't compatible with that?


klaush 12-23-2012 02:05 PM

O.k, just to confirm: That did the trick. So the plugin with the prefix produces errors with vbseo.

Quote:

Originally Posted by Max Taxable (Post 2392244)
Here's the original product attached, see if this works for you. The update had to do with thread prefix IDs, and maybe VBSEO isn't compatible with that?


BirdOPrey5 12-26-2012 04:33 PM

I really can't see how VBSEO could be causing an issue, it sounds more like some sort of caching system if anything. But I can't test with VBSEO so will wait if someone else can confirm or debunk.

klaush 12-26-2012 04:51 PM

Great! Thanks!

Quote:

Originally Posted by BirdOPrey5 (Post 2392839)
I really can't see how VBSEO could be causing an issue, it sounds more like some sort of caching system if anything. But I can't test with VBSEO so will wait if someone else can confirm or debunk.


U-Fig 04-09-2014 06:59 PM

Quote:

Originally Posted by Max Taxable (Post 2392242)
Did you only just now start using this with latest update? If so you may have indeed found a flaw in the updated version.

Quote:

Originally Posted by Max Taxable (Post 2392244)
Here's the original product attached, see if this works for you. The update had to do with thread prefix IDs, and maybe VBSEO isn't compatible with that?


it might be a bug somewhere as i do not have VBSEO installed at all , nor any other SEO thingy, don't need it anyhow due to the nature of my board. the new version directly thwarts all set usergroups to see any thread whatsoever.. even when prefixes aren't set, nor single userid's.. just a single thread and a single usergroup still will block the guests as well as any usergroup below the initially set one.

the old version i found in your post max did the trick for me as well, as i need to block very few forums for very few usergroups, but in light of me setting up a complete set of prefixes i might have a use for blocking those as well.

don't get me wrong.. it is no biggie using the older version that work perfectly but with the single user/ prefix options there as well the possibilities become way more 'flexible' if you will..

good mod.. installed the older version on my testsetup pending deployment on the live board.. VB 4.2.2 PL1.

if the kinks will be worked out of the updated product.. you got another 'installed' ticked!

ow on that note,, mind if i have a friend of mine look at it and hit you or BOB5 up with the corrections? (if any could be worked out ofc..)

cheers!

devil78 04-14-2014 06:35 PM

Only members ID with single thread block?

tbworld 04-14-2014 07:34 PM

Quote:

Originally Posted by devil78 (Post 2493150)
Only members ID with single thread block?

It is unclear what you are asking. :(

BirdOPrey5 04-14-2014 11:48 PM

Quote:

Originally Posted by devil78 (Post 2493150)
Only members ID with single thread block?

You can block by userid or usergroup- and add multiple threadids to block, but it is the same threadids for all users/groups being blocked.


All times are GMT. The time now is 06:19 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.01060 seconds
  • Memory Usage 1,763KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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