nikos

About me: Web developer & Elgg fan

Activity

  • nikos replied on the discussion topic Load JS on lightbox
    @Steve Clay: the code generates a paypal button. So it may have different values, e.g. cost on each popup open. But the JS is not loaded after 1st popup, even if it has a simple command such as "console.log". view reply
  • nikos replied on the discussion topic Load JS on lightbox
    Thanks @Nikolai Even I wanted to avoid JS inside php, it worked view reply
  • nikos added a new discussion topic Load JS on lightbox in the group Plugin Development
    Hello, I am facing up a strange issue when trying to load a JS on a lightbox view. On lightbox is loaded a view using the "elgg_view('my_plugin/my_plugin_view', $vars)". On this view there is the...
    • You can use JS event on open lightbox:

      var Ajax = require('elgg/Ajax');
      
      var ajax = new Ajax();
      
      $(document).on('cbox_open', function() {
          $.ajax({
             url: elgg.get_simplecache_url('my_plugin/my_plugin_js.js'),
             dataType: 'script'
          });
      }
       
      This will load your JS when lightbox is open
    • Your general problem is code in a module executes once. It sounds like your module should add an event listener for when colorbox opens. Just curious, what does that code do?

    • @Steve Clay: the code generates a paypal button. So it may have different values, e.g. cost on each popup open.

      But the JS is not loaded after 1st popup, even if it has a simple command such as "console.log".

  • nikos replied on the discussion topic How to change plugin start dot php to elgg-plugin dot php
    Basically you have to use a Bootstrap class and declare it on elgg-plugin.php. As a sample you can check the latest release of this plugin https://elgg.org/plugins/1937889. Also have a look on the plugins of Coldtrick team at... view reply
  • nikos released a new version of the plugin News Plugin
  • nikos replied on the discussion topic Tidypic Alternative for elgg 3+ (Or get it to work)
    @JeremiahDuane Have a look at https://github.com/nlybe/egallery. This plugin allows to add a photo gallery to Elgg entities. It's not Tidypics alternative as you can't create albums and upload photos into them. view reply
  • nikos replied on the discussion topic NC something like etherpad
    You can find Etherpad plugin for Elgg v2.x at https://github.com/nlybe/Elgg-Etherpad view reply
  • nikos commented on the plugin Roles
    @Prase: You can find a compatible version of this plugin with Elgg 3 at https://github.com/nlybe/Roles. Also at https://github.com/nlybe/Elgg-roles_ui is available the Roles UI plugin, compatible with Elgg 3 as well.
  • nikos commented on the plugin News Plugin
    @MyHoTFB.COM All your suggestion are interesting among other improvements I have in mind. If you could fund them I could build them faster and share back to the community. Otherwise I will add them according my limited free...
  • nikos released a new version of the plugin News Plugin

Send private message

You must be logged in to send a private message.

Elgg Sites

No items to show

Bookmarks

Group membership