Group membership

Activity

  • Kamelot replied on the discussion topic How to filter Entities on the River Tab?
    thanks for your help. I browse thru the API and tried filtering several times without getting a result. I'm very new to elgg and php, so it would be very nice if you can give me an example for blog posts or videos or something else.Thx! view reply
  • Kamelot added a new discussion topic How to filter Entities on the River Tab? in the group Plugin Development
    Hi, im trying to add a new tab to the river called "news". I would like to have only important entries in the Tab e.g. user xyz created a new video or user added event x. Entries like user a is now in contact with user b or user a joined group c...
    • river activity is fetched via this pages script code -- elgg_list_river($options) -- to filter at this point, the options will need to be specified as you want for the data that you want. Have a browse thru this API call to study it's syntax and parameters and then you should be able to tweak it for the filtering - to your liking.

       

    • thanks for your help.

      I browse thru the API and tried filtering several times without getting a result.

      I'm very new to elgg and php, so it would be very nice if you can give me an example for blog posts or videos or something else.Thx!

    • Activity stream (river) and entities are two different things. The API for the listing river items (elgg_list_river()) doesn't support filtering entities by metadata, which is what you'd need to do.

      What you can do instead is use elgg_list_entities_from_metadata(array('metadata_name' => 'tags', 'metadata_value' => 'news')); You will still need to override the views for the river to add the UI components, though.

  • Kamelot joined the group Plugin Development
  • Kamelot joined the group Beginning Developers
  • Kamelot replied on the discussion topic How to change Default Access Control on File Upload to Group?
    Thanks for your answer. I know i shouldnt change the core files und always use plugins.  I tried this way just for testing because i couldnt find another solution. Maybe i have expressed myself wrong. I dont want to set a group as the default... view reply
  • Hello, I'd like to have Groups as the Default Access Selection on File Upload Form in Groups. I use the File Upload Function only in Groups. i have modified the file plugin at /file/lib/file.php.  'access_id' => in  function...
    • You are not supposed to modify an elgg core file. All modifications should be written in plugins. Access_id = 5 can be different for different users. If you want to set a group as the default access for your users, you need to

      • Create a plugin hook for the user registration, so that all the users will become members of a group by default
      • Donot allow users to leave that particular group. create a hook for the user leave action and return false if the group guid matches this exclusive group
      • Set the site default access as this group and donot allow user default access level OR
      • override the file upload form viewwith your own form view in which access is set as a hidden value.
    • Thanks for your answer. I know i shouldnt change the core files und always use plugins. 

      I tried this way just for testing because i couldnt find another solution.

      Maybe i have expressed myself wrong. I dont want to set a group as the default access for my users. I just want to have in any Group Related Forms, where you can upload files or create something, like File Upload,make Announcements etc. that the Access Dropdown Box which contains Public, Privat, Logged In Users and Group:Name of the Group always shows the Group:Name of the Group as the default selection when opening such a form to create something.The standard selection in most plugins is private or public.

      So my problem is a) to find the place in the plugins where to set the default selection for Access in forms and b) i know to set 0,1,2 for private, public and logged in users, but not the expression to get always the right group id.

      Thanks for your help!

  • Kamelot replied on the discussion topic How to show a profile field in Members List?
    oh so easy... thank you for your advice! i always think too complicated ;) view reply
  • Kamelot replied on the discussion topic How to show a profile field in Members List?
    any advice? view reply

Friends

No friends yet.

Send private message

You must be logged in to send a private message.