MyBB Community Forums

Full Version: Block url access on forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I was wondering, is there any way to block URLs posted in a thread so that users must have at least X number of posts in order to see the URL?
You'd have to use a plugin. Hook into parse_message_start and strip out all the URLs before they are parsed. You'd need to make sure you didn't unintentially strip out video or image links, so it could prove to be a lot of work.
Ah I see, I searched around but couldn't find anything similar to what I am looking for and I don't have experience to create such a plugin myself. Thanks for the reply though, anybody else with some other suggestions?
Actually @wildcard's YourCode Plugin has the solution:
http://goo.gl/zccAm2

you can the "permissions settings" for the [url] Tag and limit it so that it is only displayed to selected usergroups, all others are shown an alternative text.
Then define a user group that people with more than x posts are promoted to and let that user group see the code.

If it's only in one thread, maybe you can better hide these URLs by making the entire thread or forum only accessible to users with >x posts.
That's actually a good idea, linguist. I don't know why I didn't think of that lol
(2018-10-14, 08:05 PM)linguist Wrote: [ -> ]Actually @wildcard's YourCode Plugin has the solution:
http://goo.gl/zccAm2

you can the "permissions settings" for the [url] Tag and limit it so that it is only displayed to selected usergroups, all others are shown an alternative text.
Then define a user group that people with more than x posts are promoted to and let that user group see the code.

If it's only in one thread, maybe you can better hide these URLs by making the entire thread or forum only accessible to users with >x posts.


Yes, I managed to get it working after facing a bug that is now fixed. The plugin really does its job. Also thanks @Wildcard for the support!
Here is a small preview of how it looks with a little bit of styling: http://prntscr.com/l7bway
(2018-10-18, 12:18 AM)Mattaffix Wrote: [ -> ]Yes, I managed to get it working after facing a bug that is now fixed. The plugin really does its job. Also thanks @Wildcard for the support!

You're welcome. Thanks for helping me find a bug a squash it Smile

(2018-10-18, 12:18 AM)Mattaffix Wrote: [ -> ]Here is a small preview of how it looks with a little bit of styling: http://prntscr.com/l7bway

Looking good Big Grin