Re: New question about links (developer's perspective)
Reply #1 – March 25, 2021, 08:13:51 am
You can create a module which hooks in to the bbcode parser. Then have a permission which allows what you want and check on that or return an empty string if no permission.
Re: New question about links (developer's perspective)
Reply #2 – March 25, 2021, 03:53:37 pm
Where in the sources can I get example of BBCodes parser? Point me the right way, please.
Re: New question about links (developer's perspective)
Reply #4 – March 28, 2021, 04:38:07 am
Hi @tino ! Is there a function to check that some user is topicstarter of topic? The topic ID might be passed as an argument to that function for example. The last is just my suggestion. Would you like to advice me?
Re: New question about links (developer's perspective)
Reply #5 – March 28, 2021, 05:45:39 am
You can run a sql query and get the data. That’s probably the most reliable way. The topic id should be available on the bbc parser section either in the $topic global or in context
Re: New question about links (developer's perspective)
Reply #6 – March 28, 2021, 07:25:00 am
Make raw SQL requests inside the modules considered a good practice in ElkArte or you've SQL-wrappers for that? Unfortunately, I don't see much in the dev documentation.
Re: New question about links (developer's perspective)
Reply #8 – March 28, 2021, 12:45:18 pm
Allow me first of all, @tino, to express heartfelt thanks about your willingness to help and pretty quick replies :-) Although all seems to be doable, but I've already changed my approach to the problem. Details placed below. Give me please starting point how to implement following idea: I want to attach viewing post content capability of certain post to user speficified in the post's properties or list of users. I need RTFM-kick.
Re: New question about links (developer's perspective)
Reply #9 – March 28, 2021, 12:51:08 pm
I’m not sure I follow? You can use the permissions to only allow people to view certain boards, is this what you’re looking to do?
Re: New question about links (developer's perspective)
Reply #11 – March 28, 2021, 01:42:22 pm
Could I rewrite the permissions system to get wanted result, couldn't I ?
Re: New question about links (developer's perspective)
Reply #12 – March 28, 2021, 01:55:21 pm
I've sent an example in PM, tino