custom bbc tag to allow access to URL only to privileged membergroup

Started by MoonCat, January 19, 2020, 09:45:53 AM

Previous topic - Next topic

MoonCat

Hello,

I'd like to create special BBCode which allows access to the link only to certain membergroup.

The typical url tag looks as following:

[url=http://abc.com]My text here[/url]

I'd like to create similar tag:

[murl=http://abc.com,http://efg.com]My text here[/murl]

It shows the text as usual. When members of certain ID membergroup(s) click on the text it takes them to url1, others to url2.

I'm not sure, how exactly to update Subs.php... Not necessary the same tag syntax, but the above idea, url1=> works for selected ID group(s), url2 => for others.

Will be very grateful for the tips! or maybe there is already mod, which I can learn implementation.

Thanks

Advertisement: