All content will be within groups, so theoretically ownership should not be an issue. What I have done to date is replace some views to manually test access and substitute owner with the site entity, but that seems like waste of resources: fetching... view reply
I tried something similar for EN a couple of years ago and it was disastrous, though I can't remember what specifically the major problem was now. I know there were multiple problems that were fairly complicated and we ended up abandoning... view reply
This is what I am trying to do: https://github.com/manlui/elgg_with_rest_api/issues/1#issuecomment-182927651
Can anyone help me with the code that I have to write in my start.php of my plugin.
This is my push_notification_message()... view reply
You can't replace a function by adding a function with the same name
I've meant: put the same code with another function's name in your own plugin.
But I forgot about notify_user, really ... view reply
Sorry, RvR. I don't think you can "just add this code in your own plugin". You can't replace a function by adding a function with the same name. It simply won't work.
But it might be possible if you don't add your code... view reply
You mean to say that entire messages_send() function along with my push_notification_message() function in my own plugin?
In that case, if there is any update in the core file, I have to manually update it on my plugin. Wouldn't... view reply
There is a function called messages_send() in start.php file of the messages plugin. I want to add a function called push_notification_message() within that function at line 320. So my final code will look like this:
I am working on a network where users are not supposed to see each other until they have become friends (users must know each other's email address to request friendship) or are members of the same group. This is somewhat complicated to achieve...
Because I need that this will be an amd module.
As you suggest I can implement this creating a module that make an ajax call to an action page, that can generate the right content, and store the ajax response in module variable... my problem... view reply
Why not e.g. fetch the needed data via AJAX, checking the user's role on server side, and providing the response based on it?
Or include the data to... view reply