PDA

View Full Version : Miscellaneous Hacks - Thread Blocker by BOP5 - Block usergroup access to specific threads


BirdOPrey5
08-25-2011, 10:00 PM
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.php/37-Guests-cannot-view-this-thread.
Unblocked Thread in same forum: http://www.qapla.com/mods/showthread.php/36-Qapla-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
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?

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

Max Taxable
12-22-2012, 04:05 PM
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
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!

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.

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!

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
Did you only just now start using this with latest update? If so you may have indeed found a flaw in the updated version.

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
Only members ID with single thread block?

It is unclear what you are asking. :(

BirdOPrey5
04-14-2014, 11:48 PM
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.