Reuven

About me: Amateur web developer - Professional volunteer :)

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Reuven replied on the discussion topic A basic question about Views
    Thank you RvR.  I did all your suggestions but it still does not work. Perhaps, some plugins have the same view. I do not think there is other same view since when I comment the whole input/attachments.php its content... view reply
  • Reuven added a new discussion topic A basic question about Views in the group Plugin Development
    Elgg 2.3.10 I thought I understand the Views system of Elgg, but now not so sure anymore. We want to remove the View input/attachments.php ( hypeAttachments ). We search the whole mod directory and found only one...
    • 1 - Every time after these changes you must clear the cache.

      2 - Perhaps, some plugins have the same view.

      3 - You can try to unextend this view in your custom plugin:

      elgg_unextend_view('forms/attachments/upload', 'input/attachments');

      4 - If you make this change in your custom plugin, make sure it's moved after the original plugin by priority.

      Learn more methods.

    • Thank you RvR. 

      I did all your suggestions but it still does not work.

      Perhaps, some plugins have the same view.

      I do not think there is other same view since when I comment the whole input/attachments.php its content disappears from the page (as desired).

      The mystery is what causes this view to appear. 

       

  • Reuven replied on the discussion topic Upgrading from 2.3.10 to 2.3.11
    Very helpful. Thank you very much view reply
  • Reuven replied on the discussion topic Upgrading from 2.3.10 to 2.3.11
    I could not find it in the Docs and discussions  view reply
  • Reuven added a new discussion topic Upgrading from 2.3.10 to 2.3.11 in the group General Discussion
    What process is required to update from version 2.3.10 to 2.3.11 ? Is it enough to override the Vendor folder? Thank you 
    • Generally speaking I prefer replacing (not just overwriting) the vendor folder and the Elgg core bundled plugin folders in the mod directory plus checking for differences in the files elgg-config/settings.php and and .htaccess that might need to be resolved. In case of an update from 2.3.10 to 2.3.11 a comparison showed that there are no files in 2.3.10 that are no longer there in 2.3.11, only a few new files in 2.3.11 and then only changed files. So, when updating from 2.3.10 to 2.3.11 you could just overwrite the mod and vendor folders and overwrite composer.json and composer.lock files in the main folder and it should be alright. Nonetheless, a backup of the database should always be made first before upgrading (and making a backup of the install folder and data directory regularly is a good idea, too). After overwriting the files you would run upgrade.php (or clicking on the Upgrade button in the admin area) and you should be done.

    • Very helpful.

      Thank you very much

  • Reuven replied on the discussion topic Does anyone want the following plugin for Elgg 3.0?
    Yes please - Thank you view reply
  • Reuven added a new discussion topic Sandbox error in the group Elgg Technical Support
    I stumbled upon 2 Fatal Error in the Sandbox: In the icons section the error is "GUIDs must be integers > 0." In the modules section the error is "$row must be or contain a GUID" How to fix? Elgg...
  • Reuven replied on the discussion topic Error message in the comment
    I understand. Thank you very much view reply
  • Reuven replied on the discussion topic Error message in the comment
    Thank you iionly. After I change the error_reporting setting the reported error will disappear, but the error will continue to be there. Does the error not affect the functioning of the system? view reply
  • Reuven added a new discussion topic Error message in the comment in the group Plugin Development
    I apologize for the basic question but my knowledge of programming is quite basic. Sometime (not always), on Activity page, when I click the Comment link of a Blog, I get the following error message in the comment. Strict...
    • Thank you iionly.

      After I change the error_reporting setting the reported error will disappear, but the error will continue to be there. Does the error not affect the functioning of the system?

    • The log entries are not errors but only warnings. The code works as it is even if it is not strictly standard conform. It might be that on a later PHP version the situation changes and the code might have to be modified but as long as you don't upgrade to a newer PHP version it's not a show stopper (and even on a new PHP version it might still work without changes). That's what the warning is trying to tell you.

    • I understand.

      Thank you very much

  • Reuven added a new discussion topic JS errors in Market plugin in the group Plugin Development
    Elgg 2.3.10 Market plugin 2.3 I try the plugin and initially it seems to work fine, but I receive javascript errors: equire.js:1961 GET ww.example.org/cache/0/default/market.js net::ERR_ABORTED 403   Uncaught Error:...
  • Reuven replied on the discussion topic Moving the Site menu
    I mean - move the whole "site" menu in one stroke - not item by item. view reply
  • Reuven replied on the discussion topic Moving the Site menu
    Thank you Rohit Gupta. I did it, and the "menu" item appears under "account". However, I need the whole "site" menu to move... view reply
  • Reuven added a new discussion topic Moving the Site menu in the group Plugin Development
    Elgg 2.3.10, Aalborg Theme We have to move the Site menu to be under the "Account" button (top bar right) as a dropdown list. Help and code examples will be very much appreciated. Thank you very much
  • Reuven replied on the discussion topic imagick does not keep transparency of png
    Unfortunately, the new version of Imagine does not solve the problem. Anyway, thank you very much. view reply
  • Reuven replied on the discussion topic imagick does not keep transparency of png
    As @RVR said Elgg saves an entity icon in .JPG format always, and JPG does not support transparent background. However, the fact is that with GD php extension, Elgg retain the transparency of PNG even... view reply
  • Reuven replied on the discussion topic imagick does not keep transparency of png
    Thank you iionly for the detailed and useful guidance. view reply
  • Reuven replied on the discussion topic imagick does not keep transparency of png
    Any suggestion how to overcome this problem? Thank you view reply
  • Reuven replied on the discussion topic imagick does not keep transparency of png
    Thank you RvR, but I do not understand. When I deactivate imagic plugin, Elgg keeps the transparency of PNG. So, it is maybe not Elgg's fault. In addition, with Tidypics plugin set to imagic it keeps the transparency... view reply
  • Reuven added a new discussion topic imagick does not keep transparency of png in the group Plugin Development
    Elgg 2.3.10,  Plugin imagick 1.0 I upload png image with transparent areas. The imagick transform it to jpg and the transparent areas to black. If possible I prefer to keep it png with transparency. If not than jpg with the...
    • As @RVR said Elgg saves an entity icon in .JPG format always, and JPG does not support transparent background.

      However, the fact is that with GD php extension, Elgg retain the transparency of PNG even though the image file name has JPG suffix. The reason for this is that Elgg does not transform PNG to JPG. It just replaces the suffixes, i.e PNG -> JPG. I checked this phenomena (replacing the suffixes) outside Elgg's environment and found the same. The browsers (Chrome, FF and IE) retain the transparency and animation of PNG and GIF, even though the suffix of the files is JPG.

      @iionly said:

      Tidypics keeps the image format unchanged when resizing/creating the thumbnails and it uses the Imagick php extension directly

      Now we know that Elgg also keeps the format unchanged (changes only the suffix - which is not the best practice IMHO). I believe it is possible to build a plugin that replicates the functionality of Tidypics, and handle all the images of Elgg through Imagick php extension directly. In this way the problem with the PNG transparency will be solved. 

      Could someone suggest how to do it?

      Thank you very much.

    • I think it wouldn't be that easy to write such a plugin. The point is: Elgg core makes use of the Imagine library to use the same set of API functions regardless if GD or Imagick php are used. Imagine "translates" the functions accordingly. Also, Elgg most likely currently expects that the images (profile images, entity icons and file thumbnails) have the jpg suffix regardless what file type the files really are. If the png files would now suddenly saved with png extensions they would probably not getting served.

      The problem with the image file creation could probably be solved by replacing all Elgg core actions with modified versions that use their own set of image resizing functions (like Tidypics does). Probably the output file type issue could also be fixed somehow - but don't ask me for any details as I wouldn't have them right now.

      The question is if it couldn't be solved by improving the Imagick plugin and/or using a newer version of the Imagine library as Elgg core currently does. These questions might be best answered by the Coldtrick guys as they might know best. Unfortunately, I can't provide any more help currently just due to lack of detailed knowledge.

    • Unfortunately, the new version of Imagine does not solve the problem.

      Anyway, thank you very much.