All Site Activity

  • iionly replied on the discussion topic Embed largest image in TinyMCE
    Had you also flushed the caches of your site in the admin area? That's necessary after you made the change as the js file is cached on server side with the Elgg caching options enabled. I don't know about browser caching js code. But I guess... view reply
  • testy joined the group Beginning Developers
  • Reuven replied on the discussion topic Embed largest image in TinyMCE
    Thank you iionly - it works fine. As a matter of fact, I have tried this solution previously, but it has not worked. Also, when I tried your suggestion at the fist time, it did not work. However, only after I cleaned my Chrome history it... view reply
  • iionly replied on the discussion topic Embed largest image in TinyMCE
    Override the view mod/embed/views/default/elgg/embed.js. The only modification necessary is to change line 58 from return match.replace('small', 'medium'); into return match.replace('small',... view reply
  • an duoc has a new avatar
    an duoc
  • Reuven added a new discussion topic Embed largest image in TinyMCE in the group Plugin Development
    We use Elgg 2.3.7, 'embed' and 'extended_tinymce' plugins. Right now the 'embed' embeds in TinyMCE only medium size images. However, ​we want to embed the largest image size possible. We tried to find our way but...
    • Thank you iionly - it works fine.

      As a matter of fact, I have tried this solution previously, but it has not worked. Also, when I tried your suggestion at the fist time, it did not work. However, only after I cleaned my Chrome history it worked.

      As far as I understand the browsers do not cache JS files from https sites. It it correct?

    • Had you also flushed the caches of your site in the admin area? That's necessary after you made the change as the js file is cached on server side with the Elgg caching options enabled. I don't know about browser caching js code. But I guess it might keep it at least for the session.

    • I work on a development site and all the caches are disabled, and as you see below there is no need to do it.

      I made a detailed research with Chrome, FF, IE and Opera. All are the latest version.

      I changed the image size in the JS file a few times, back and forth, from medium to large. Only in Opera I had to clear the history. All the rest responded immediately.

      Regarding Opera, I also tried to flush the site caches, but still I had to clear the history to get the desired results.

      P.S. I work on PC - so I could not check Safari.

       

       

  • Josh Henly replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    @Ismayil -- that's great news about 3.0.  Thanks for confirming it supports FormData, and for your work on it! I think I can live with my hacky iFrame approach in 2.3.x for now, knowing it can go away in the not-too-distant future. view reply
  • iionly replied on the discussion topic How to project file download button?
    If you override the view mod/file/views/default/resources/file/view.php with a modified version where you enclose the registered of the download title menu button with if (elgg_is_logged_in()) { elgg_register_menu_item('title',... view reply
  • Ismayil Khayredinov replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    In theory elgg/Ajax is just a wrapper around jQuery Ajax API. You can copy it into another AMD module and hack it to support FormData view reply
  • Ismayil Khayredinov replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    FormData is fully supported in 3.0, I made sure of that :) view reply
  • Josh Henly replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    @iionly -- thanks for the idea!  I was hoping this would work, but unfortunately $_FILES is empty when using this approach.  It seems FormData is the secret sauce to get AJAX file uploads, but it is not supported in Elgg. @Ismayil --... view reply
  • Esha added a new discussion topic How to project file download button? in the group Elgg Technical Support
    Hi I have file uploaded to site using the Core file plugin. The files are public accessible to every one. I want to user to login in order to download the file. Visitor will be able to see the page and download button but after download button...
    • If you override the view mod/file/views/default/resources/file/view.php with a modified version where you enclose the registered of the download title menu button with

      if (elgg_is_logged_in()) {
          elgg_register_menu_item('title', array(
              'name' => 'download',
              'text' => elgg_echo('download'),
              'href' => elgg_get_download_url($file),
              'link_class' => 'elgg-button elgg-button-action',
          ));
      }

      only users who are logged-in to your site will see the download button whereas logged-out visitors will only see the file (as long as its access level is public) but don't see the download button.

      Learn how to override views: http://learn.elgg.org/en/stable/guides/views.html#overriding-views. That's better than modifying the file plugin file in the long run.

       

  • Ismayil Khayredinov replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    Yes, it's a bit trickt in 2.x. I haveanaged to get around it in one of the projects using hooks and overriding some views, but it wasn't a very elegant solution. jQuery form plugin is bundled with Elgg, and you can require it as jquery.form. I... view reply
  • UziForex has a new avatar
    UziForex
  • iionly replied on the discussion topic Elgg-friendly approach for AJAX file uploads?
    Maybe helpful: define(function(require) { var $ = require('jquery'); var elgg = require('elgg'); var Ajax = require('elgg/Ajax'); var spinner = require('elgg/spinner'); // manage... view reply
  • I've just finished a major upgrade of the iZAP Videos plugin. Among a thorough rewrite and cleanup of the whole plugin code the most noticeable new feature is HTML5 video support replacing the on-server video Flash functionality. One big...
    • Here is my feedback.

      This is very good and necessary plugin. Usually it works OK (Chrome, FF, IE, Opera) on all the websites (Dailymotion.com, Vimeo.com, Youtube.com).

      However:

      1. Sometime the server does not respond, and I get error 500.

      2. In Youtube I found a few videos that behave very strange - I receive many red notifications. For example, please check https://www.youtube.com/watch?v=h9CzJkxKKd0 and https://www.youtube.com/watch?v=rcybIgUdUa0

      What is common to both sites is that their entire screen is a link to their website.

      3. Regarding API Key of Youtube - It works when the API Key has no "Restrictions". It does not work when I restricted to IP or HTTP referrers - maybe I made some mistake here.

      4. In the Video page - please consider to put all the list of option (Recently viewed videos, Recently commented videos, etc.) in a dropdown list.

      5. Lastly - it would be great if we can embed videos in blogs, pages, comments, etc. I know that HTMLawed blocks this feature, but we might have a workaround. I'll describe the idea in other discussion.

       

       

       

    • One more comment:

      When click on Video in Group you get the following notification

      Sorry. We could not find the page that you requested.

    • Thanks for the feedback. I rather expected some remarks about the upgrade/migration process as this is something really new (as the html5 video support is newly added). Nevertheless, it never hurts to know about bugs or other shortcomings.

      The group video page issue is probably new in version 2.3.4. I will have it fixed in the next release.

      Embedding videos in other posts is probably a feature to be added rather on medium to long term than on short terms. I hadn't even thought about it yet. It might have been possible back in the pre Elgg 1.8 days even but due to changes in the embed plugin (and possibly mainly due to htmlawed becoming more restrictive) it became non-functional (I remember that I removed some code but I don't remember if I removed it because it never worked in the first place or stopped working at some point). This kind of embedding is also slightly different from the embedding option that is still available. This option is working the other way round: by providing some embed (html) code you would add a video entry on the site where the video is hosted elsewhere. And providing some arbitrary html code for embedding a video is a problem as the code could also contain bad stuff. Without lessening the htmlawed rules this is sure to fail and lessening the rules is calling for problems. So, in the long run I might even completely remove the current embedding option as it just makes not much sense anymore nowadays.

      Youtube API key must be unrestricted. I might have to add some remarks about that in the readme. In the past there was a clear difference between a "server API key" and a "browser API key". The server API key always had no restrictions (as it's meant to never be shared with users anyway). Now they have unified the key creation for the different types but apparently haven't managed to update their docs accordingly. They seem to change their dev tools management pages a lot and it's an endless job trying to keep the docs up-to-date.

      Sidebar menu entries: let's see when I have to to play with it. Maybe a single dropdown menu is better. I will have to try it out.

      Is the 500 http error also occuring when trying to add a (off-server) video? Is it happening always for a specific video or is there no correlation between the video you want to add and the error occuring. The other issue with the red error messages showing up could be due to some videos being restricted (e.g. forbidden to be embedded on other sites). I never had the nerve to really look into this matter. Possibly, there are some errors submitted that might contain some useful info about what's going wrong and catching these errors would possibly prevent the confusing error messages to show up and show a single meaningful error message instead.

  • Josh Henly added a new discussion topic Elgg-friendly approach for AJAX file uploads? in the group Elgg Technical Support
    I've noticed that both elgg.action() and Ajax.action() do not like options.data to be a FormData object.   In the case of elgg.action() it results in a TypeError because elgg.security.addToken() only wants options.data to be a string...
  • Tom commented on the plugin Facebook Home page (when logged out)
    @MyHoTFB.COM , The best way to work with the  Gender / Sex  is to create a  page for privacy control page which you can give a user an option to make their Gender/Sex to be available for public, private, friends, or logged in users....
  • pdiazq replied on the discussion topic Elgg charges fine in localhost but not from the internet
    Thanks RvR and iionly for your responses. yes I installed elgg using "localhost", I changed it to my public ip address and now i can see that the page charged ok. so far everything is ok now.   thank you very much view reply
  • MyHoTFB.COM commented on the plugin Facebook Home page (when logged out)
    Dear @Tom, I got the first_name, last_name, and birthday to syncronize when signing up, but unable to get the Gender / Sex to work correctly. Could you please advise what should be the correct profile field & label name in Profile Manager for...