Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • C0Rrupt added a new discussion topic Setting and Retrieving Current Variables in the group Plugin Development
    My elgg installation allows a user to create separate spaces and to use objects within each space independently.  A new object should use the space as its default container.  I think I would like to set the space in the session...
    • You can retrieve the current session of the user by calling `elgg_get_session()` this will result in an \ElggSession object.

      You can set any value you wish by doing the following

      $session = elgg_get_session();
      $session->current_space_id = 12335;
      

      To use the stored variable simply use

      $session = elgg_get_session();
      $current_space_id = $session->current_space_id;
      

      Hope this helps

       

  • C0Rrupt joined the group Plugin Development
  • C0Rrupt replied on the discussion topic Landing Page plugin/Aalborg theme change
    The OP seems to be looking for assembled HTML content.  Perhaps "assembled" would be a better term than "generated"; however, the spirit is the same.  Saying that HTML code is pulled from a hundred different places is... view reply
  • C0Rrupt replied on the discussion topic Landing Page plugin/Aalborg theme change
    elgg is a PHP framework.  HTML does not "reside" in elgg.  It is generated in the browser using PHP when the user requests a page.  view reply
  • C0Rrupt replied on the discussion topic help
  • C0Rrupt replied on the discussion topic New Icons Moved to Wrong Folder Location
    For what it's worth, the filedrop function used in hypeGallery must be a different method because it saves new icons in the "...<owner_guid>/icons" folder.  I've spent a lot of time comparing the two... view reply
  • C0Rrupt replied on the discussion topic Clone datepicker and dropzone
    For the sake of others, here is how I implemented your recommendation: /** plugin/start**/ elgg_register_event_handler('init','system','plugin_init'); function plugin_init() {... view reply
  • C0Rrupt added a new discussion topic New Icons Moved to Wrong Folder Location in the group Beginning Developers
    I recently upgraded to elgg 2.3.4 accompanied by an upgrade from elgg_dropzone to hypeDropzone 5.0.1.  In previous versions, image icons were saved to the folder "data/<site_guid>/<owner_guid>/icons" when I use...
    • Maybe not an issue with hypeDropzone alone. It looks like Elgg itself creates these extra folders. While trying to understand what your problem is I noticed that these extra folders seem to appear on uploading files with the bundled Files plugin (and not only on image uploads but with all kinds of files). I suspect it is connected with the new file upload API introduced in Elgg 2.3. Maybe the upload process does not clean up completely after the work is done.

    • For what it's worth, the filedrop function used in hypeGallery must be a different method because it saves new icons in the "...<owner_guid>/icons" folder.  I've spent a lot of time comparing the two plugins to discern what's different, but it exhausted my skill set.  Passing 'action' => 'action/gallery/upload/filedrop' to the input/dropzone view allows hypeGallery to control the upload and to put the icons where they should be.