Group activity

  • Hanzolo added a new discussion topic add photos to album of friends
    Hi there, how do I change the code to enable friends adding photos to albums? Right now only admins can add photos to an album. But I want friends to add photos to my albums as well. Should be possible, right?   Cheers
    • Not easy - I'm not able to tell you what you would have to modify to get the uploading of images to friends working without some detailed code review - and I don't have the time to do that currently. Sorry.

      But it should be possible for sure. For example, the container_guid/entity is used to verify if a user is allowed to upload images to an album. The container entity of an album is either a user or group. You would need to modify this check to add also a check for friend relationships to allow for other users to add images to an album. But you would need to change more: "Upload photos to this album" button show up also for friends, "Upload photos" (album selection) to also show up friends's albums and you would also need to grand writing permissions for the album entities in the actions, modify the edit pages for images and albums. And I think there might also be other things to change that I miss right now...

    • Wow, sounds more complicated than I thought. My guess was I had to change $admin to $friends somewhere ;) Thank you again, iionly! I will have a closer look, maybe with success.

    • The admin user access level permissions is not something you can rely on here. Elgg core already allows an admin user to have read/write access to everything. A corresponding access level handling is not implemented for friends in core. The handling of content within groups is also slightly different. On the one hand, there are some additional restrictions possible (like no access for non-group members) but it also makes collaborative access handling easier to implement for group members.

      What I missed to mention is the existence of the permission plugin hooks available in Elgg core (this mechanism is also used in Tidypics for handling access / upload sharing on group albums). Adding an appropriate callback function to allow write access to albums for friends of a user might make the implementation slightly easier. Still, you would need to modify the views also for the upload buttons to show up for friends and maybe still modify other things.

  • rjcalifornia replied on the discussion topic How To Upload Image From URL?
    TinyMCE supports this option. If you want to do it with the files plugin, you need to extend it to allow this feature, because I don't think this has been done. Rodolfo Hernandez Arvixe/Elgg Community Liaison view reply
  • masoud added a new discussion topic How To Upload Image From URL?
    Please Help Me To Upload image from URL
  • ura soul added a new discussion topic some enhancements for tidypics - anyone have any more?
    recently i have made the following fixes/enhancements to tidypics here: fixed: friends list was not showing albums from all friends fixed: owner and friends lists were not rendered in a tidypics-gallery element fixed: album image count now has...
  • Dries added a new discussion topic addon prop: fetch facebook albums using it's API
    Hi there community. It should be nog too difficult to fetch facebook albums and display it together with the tidypics galleries.The idea: when users click the 'make album' button they have an option to choose an album from their facebook page...
  • Nikolai Shcherbin replied on the discussion topic Image exceeds the size limit 1024
    Is there any plugin which I can use instead of "Tidypics" :-( hypeGallery view reply
  • Nikolai Shcherbin replied on the discussion topic Image exceeds the size limit 1024
    @Ajay Did you tried upload the same image like custom file via Files? What's happens then? view reply
  • iionly replied on the discussion topic Image exceeds the size limit 1024
    Please read https://drupal.org/node/1209090 and also follow the links to https://drupal.org/node/109994 and http://support.godaddy.com/groups/web-hosting/forum/topic/just-need-to-increase-the-max-upload-limit-via-php/. For a start in php.ini or... view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    Hi, When I logged in to my server, I saw that php.ini and php5.ini files are already existing. Shall I share the code of php.ini file? I really need to enable this or correct this since I am creating a website for adventure activities and sharing... view reply
  • iionly replied on the discussion topic Image exceeds the size limit 1024
    As I mentioned in an earlier post already, I was doubtful that adding a single php.ini file in the root directory will work. For a start: did godaddy say you should name it "php.ini5"? What about naming it "php.ini"? Still this might not work then.... view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    Hi, As per your suggestion, have set the "memory_limit, post_max_size and upload_max_filesize" to reasonable sizes as mentioned below in php.ini5 file # limit the maximum memory consumed by the php script to 164 MB php_value memory_limit 164M #... view reply
  • iionly replied on the discussion topic Image exceeds the size limit 1024
    There are several different issues here: within the php.ini5 file you should also define the post_max_size limit, if it fails to work via the .htaccess file. So, add for example the line "php_value post_max_size 32M" The "allowed memory size... view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    With addition to the above, I tried to upload images of around 2 MB using basic uploader and was able to upload them. Again I tried to upload just 1 image with 4 MB and got the error  Fatal error: Allowed memory size of 67108864 bytes... view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    Hi, The above mentioned values are from .htaccess file. I have tried using the basic uploader to verify if the same error message occurs. I got the error "The page is not available" and in the address bar this is the code... view reply
  • iionly replied on the discussion topic Image exceeds the size limit 1024
    I can't give much support on goddady server administration, but maybe this posting will help: https://drupal.org/node/1209090. Please be careful: I don't know if godaddy allows changing these values using your own custom php.ini. And I don't know if... view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    Hi iionly, As per your suggestion/post "The image filesize limit on the Tidypics settings page is meant to limit the image size to lower values than set for example in .htaccess or php.ini. This way you could upload for example videos or any other... view reply
  • buraddo replied on the discussion topic Image exceeds the size limit 1024
    Ajay, As iionly mentioned. Its pointless to change any of the values in htaccess if its not the method you webserver is using for the config. You need to find out which method/file is being used to set the variables.   B view reply
  • Ajay replied on the discussion topic Image exceeds the size limit 1024
    @rjcalifornia , should I change the "php_value post_max_size 8388608" in .htaccess to "php_value post_max_size 28M" view reply
  • vosorin replied on the discussion topic Photos not showing in album
    That was a FAST and GOOD answer. Thank you so much.  view reply
  • iionly replied on the discussion topic Image exceeds the size limit 1024
    If the values for example of post_max_size, memory_limit and upload_max_filesize in .htaccess of Elgg is different from the values shown on the Tidypics server info tab or on the output of phpinfo() your server is configured in a way that ignores... view reply