Solved: 6 Years, 1 Month, 3 Weeks ago Block url access on forums
#1
Solved: 6 Years, 1 Month, 3 Weeks ago
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?
Reply
#2
Solved: 6 Years, 1 Month, 3 Weeks ago
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.
[retired]
Reply
#3
Solved: 6 Years, 1 Month, 3 Weeks ago
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?
Reply
#4
Solved: 6 Years, 1 Month, 3 Weeks ago
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.
Reply
#5
Solved: 6 Years, 1 Month, 3 Weeks ago
That's actually a good idea, linguist. I don't know why I didn't think of that lol
[retired]
Reply
#6
Solved: 6 Years, 1 Month, 3 Weeks ago
(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
Reply
#7
Solved: 6 Years, 1 Month, 3 Weeks ago
(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
[retired]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)