vb.org Archive

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

BirdOPrey5 08-25-2011 10:00 PM

Thread Blocker by BOP5 - Block usergroup access to specific threads
 
1 Attachment(s)
Version 1.3: Added option to block threads by forumid & bug fix
1.2 - Added option to block threads by thread prefix
1.1 - Added option to 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:
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. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)

Translations:
Portuguese (By Ary Braga) - See Post #26

BirdOPrey5 08-26-2011 08:48 PM

Reserved.

FReeSTER 08-27-2011 05:34 AM

Love the concept mate, do you think this can be add in the future as a tool to chose from the Administrative tool tab on postbit?

thanks mate :up:

BirdOPrey5 08-27-2011 10:31 AM

I'm not seeing how it would be useful in the postbit when you'd have to enter usergroups to block. Possibly on the Admin Tools on showthread (at the top of the thread) - possible but not likely to happen soon- much more difficult coding to do that.

FReeSTER 08-27-2011 11:56 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2238666)
I'm not seeing how it would be useful in the postbit when you'd have to enter usergroups to block. Possibly on the Admin Tools on showthread (at the top of the thread) - possible but not likely to happen soon- much more difficult coding to do that.

Yeah that was where I ment sorry.. I understand mate, thank you for this anyway.

Loving it as I have requested few times mods like this one, love hiding stuff to people and spiders sometimes.lol

MARCO1 08-27-2011 04:39 PM

Joe, Why the thread icon is angry ? :D

P.S : Nice work Joe :)

FReeSTER 08-27-2011 06:44 PM

Quote:

Originally Posted by MARCO1 (Post 2238800)
Joe, Why the thread icon is angry ? :D

P.S : Nice work Joe :)

LMAO I was wondering the same thing. hahaha

BirdOPrey5 08-27-2011 09:35 PM

Because it will make people angry when they get blocked from threads. :p

8thos 08-31-2011 03:10 AM

This modification was a live saver for me. I had gotten a warning by Google to not put ads on threads with pics of hot models (just regular bikini pics) etc so I moved all the threads that Google might flag into a subforum. I then used a conditional in the templates that I had ads in to keep ads from being displayed in that subforum.

Once that was done, I used threadblocker to block guests from threads that could be considered 'too hot'. I only have a couple threads like that. I know it would just be easier to put threads like that in a private subforum but I do not really allow people to post threads like that. When I encounter them, I merge them all into one thread so that it's easy to find.

By putting those threads in a private subforum, you could lose potential SEO benefits as the title of that thread could be a popular search term.

That's how this modification, REALLY comes in handy because not all the threads in that subforum is blocked.

A guest would still have access to some threads which might tempt them to join out of curiosity.

Princezz 07-16-2012 02:41 PM

Hi, great Mod!
Is there a way to ban single users from single threads in a forum?
thanks.

BirdOPrey5 07-16-2012 09:49 PM

Quote:

Originally Posted by Princezz (Post 2348687)
Hi, great Mod!
Is there a way to ban single users from single threads in a forum?
thanks.

Make a new usergroup... Add that user to the group... Block usergroup from thread.

Nirjonadda 08-05-2012 01:29 PM

You can add option for Block User ID from Thread ?

BirdOPrey5 08-05-2012 04:32 PM

Quote:

Originally Posted by Nirjonadda (Post 2354674)
You can add option for Block User ID from Thread ?

Just create a new usergroup called "Blocked From Threads" , make it based off of Registered Users so all the permissions are the same.

Then add the specific user(s) to that group as an additional group.

They will be blocked from the thread and it won't affect anything else.

BirdOPrey5 08-05-2012 08:58 PM

I was "convinced" to add the option to block by userid to this mod. Version 1.1 now released.

Nirjonadda 08-05-2012 09:15 PM

Thanks for updated ! Excellent work !

Merjawy 08-05-2012 09:33 PM

:mad: I am mad now. I didn't see this till now LOL

Thanks Joe

SilverBoy 08-29-2012 02:24 AM

Thanks for this great add-on, but I want some thing similar to this, but not blocking some usergroups from thread, I want just disallow them from posting in that thread, is this possible some how?

New Joe 08-29-2012 03:52 AM

Great mod as always, but i'd like to have seen it where you can block an actual user instead of a usergroup
Could that be done?

BirdOPrey5 08-29-2012 10:28 PM

Quote:

Originally Posted by SilverBoy (Post 2360864)
Thanks for this great add-on, but I want some thing similar to this, but not blocking some usergroups from thread, I want just disallow them from posting in that thread, is this possible some how?

Not with this mod.

Quote:

Originally Posted by New Joe (Post 2360869)
Great mod as always, but i'd like to have seen it where you can block an actual user instead of a usergroup
Could that be done?

You can block by User ID as of versio 1.1.

New Joe 08-29-2012 11:18 PM

^ Thanks BOP5

Liff 09-09-2012 06:44 AM

This looks like a great idea.

Would it be possible to amend this to block usergroups from threads from a specific thread prefix?

ie, if I have a 'Politics' thread prefix and some users don't play well with others I can have them excluded from all threads with that prefix?

BirdOPrey5 09-11-2012 11:30 AM

Yes I could probably add something like that in next update. Just very busy at the moment.

Liff 09-11-2012 03:39 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2364585)
Yes I could probably add something like that in next update. Just very busy at the moment.

Thank's BOP & good luck with what's keeping you busy :)

Liff 12-11-2012 10:05 AM

Just a gentle little reminder bump incase you have any spare time, if this would be useful for anyone else or if someone has come up with something similar for themselves..

Not trying to rush you, BOP - If you have real life stuff to keep you busy I respect that.



Quote:

Would it be possible to amend this to block usergroups from threads from a specific thread prefix?

ie, if I have a 'Politics' thread prefix and some users don't play well with others I can have them excluded from all threads with that prefix?
It would also be great if there was a way users could self exclude from Not Safe For Work threads, though I don't have an issue excluding them manually on request if that's not possible.

BirdOPrey5 12-11-2012 05:55 PM

Gentile reminders are often effective. :D

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

Ary Braga 12-11-2012 10:36 PM

1 Attachment(s)
Well, if you want to put the file translated for Pt-BR and which also works for Pt-PT, here is my small contribution.

BirdOPrey5 12-12-2012 11:42 AM

Thanks. Added link to first post. :up:

Liff 12-12-2012 04:25 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2390068)
Gentile reminders are often effective. :D

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

Yay :D

Thanks a million, BOP - Very much appreciated http://twistsnturns.net/images/smilies/toppa.gif

sticky 12-13-2012 03:37 AM

Can this block all threads in a specific forum?

Mr_Running 12-13-2012 04:01 PM

I have one forum thread block but it appears all threads are blocked in all forums.
I may actually like that option :) Please add this option to the mod. (block all threads in all forums)

Note: The demo above Unblocked Thread in same forum is also blocked.
So, It may not be just me :p bug?

Mr_Running 12-17-2012 09:46 PM

Reminder current version 1.2.0 is blocking all threads in all forums.

BirdOPrey5 12-17-2012 10:32 PM

Appears to be a bug- thanks Mr_Running. Please disable for now, will look to fix as soon as possible.

BirdOPrey5 12-17-2012 11:22 PM

OK updated to version 1.3.0 - should fix the bug and added option to block threads in entire forum as requested by sticky.

Mr_Running 12-18-2012 02:38 PM

Yes, 1.3.0 fixed the bug :)

In Regards to Sticky's request...

Quote:

Originally Posted by sticky (Post 2390424)
Can this block all threads in a specific forum?

Quote:

Originally Posted by BirdOPrey5 (Post 2391403)
OK updated to version 1.3.0 - should fix the bug and added option to block threads in entire forum as requested by sticky.

This looks like it's UserGroups only and prevents posting?

Code:

Block Forums
Block users or usergroups from posting in the these entire forums

Block all threads in Forum?

A list of Forums to select to block all threads would be a good feature. :)
Highlighting which forums to block all threads

BirdOPrey5 12-18-2012 04:10 PM

There is a new setting in 1.3.0 where you can put in a comma separated list of forumids and all threads in that forum will be blocked.

Mr_Running 12-18-2012 05:42 PM

1 Attachment(s)
The only thing I see is ...Block users or usergroups from posting?

This isn't blocking threads? or I am just wondering around confused. :p

RaiinbowEyes 04-18-2013 11:07 AM

Can't install :( It says "XML Error: not well-formed (invalid token) at Line 1" I'm running v4.2.0. Please help if you can, I could really really use this mod!

avitor 04-18-2013 12:22 PM

any confirmation that this mod works with vb 4.2.pl2 ?
thank

BirdOPrey5 04-18-2013 06:57 PM

It works with all 4.x versions.

For the XML error please try re-downloading the mod and re-extracting the files form the zip, seems like a corrupt file.

RaiinbowEyes 04-20-2013 12:23 AM

Edit: Nevermind, I got it working! Thank you :)


All times are GMT. The time now is 05:50 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.01785 seconds
  • Memory Usage 1,818KB
  • 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_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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