Bookmarks

No bookmarks

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Fabri added a new discussion topic Plugin based on Google Maps not working on Elgg 2.x in the group Plugin Development
    Hello, I'm trying to develop a plugin that uses Google maps to show a map in a page, this part was working in Elgg 1.1X but no more in Elgg 2.x , the error I got in Chrome console is: Uncaught ReferenceError: $ is not defined in...
    • Yes, all scripts in Elgg 2 are loaded asynchronously using requirejs.  It looks like you're calling this from an inline script so it tries to fire before jquery has been loaded.

      The proper solution is to convert your plugin js to AMD modules - http://learn.elgg.org/en/2.0/guides/javascript.html

      A quick not-as-good-but-should-work solution is to wrap it in a require call

      require(['jquery'], function($) {

          $(document).ready(function () { frn_initialize(); });

      });

  • Hello , thanks for the clarification, I resolved using a query to show tables starting with my db_prefix and searching in the returned array the table I needed, I used it to avoid queries on not existing custom tables. Fabri view reply
  • Hello RvR and thanks for your quick answer! the file you posted is the one containing the deprecated function of my example but how to know what function is to be used instead? My question is more general and I'm asking if there is some... view reply
  • Hello, developing a plugin for Elgg 1.11.0 I received messages like : Deprecated in 1.9: get_db_tables is a private function and should not be used I would like to know if there is a way to know wich is the better (or suggested) function to...
    • Hello RvR and thanks for your quick answer!

      the file you posted is the one containing the deprecated function of my example but how to know what function is to be used instead? My question is more general and I'm asking if there is some change log that reports deprecated functions vs new functions to be used to have same functionality. 

    • Fabri,

      there is no list of old function => new function.

      In most cases the deprecation notice will tell you which function to use as the new function. But in your case the deprecation notice is "misused" to tell you the you are using a function which is marked as private and you should not use this function as private functions can be removed/changed without notice.

      Try to avoid using private functions.

      Just out of interest: why are you using this function?

    • Hello ,

      thanks for the clarification,

      I resolved using a query to show tables starting with my db_prefix and searching in the returned array the table I needed, I used it to avoid queries on not existing custom tables.

      Fabri

  • Fabri commented on the plugin Profile Manager
    Hello, there is a simple way to retrieve the list of options of a Profile Fields dropdown box from another plugin ? e.g. I've a custom field "preferred_color" that is a dropdown with options "red,green,blue", I...
  • Fabri commented on the plugin Profile Manager
    @Jeroen: Thanks! in the last version you suggested the issue on register form is no more present!
  • Fabri commented on the plugin Profile Manager
    Hello! I'm using this wanderful Profile Manager plugin but I'm facing the following issue: I created 3 profile type (member, premium, free (the default one)) with differnt items (mandatory on registration form) The first time I enter the...
  • Fabri added a new discussion topic search in Event Calendar like Events in the group Event calendar
    Hello all, first of all congrats for this great plugin, I've found it very useful. I'm trying to understand how to possibly search an event by location, date and time. I saw that the "Events" pluging allows to do so, but it looks like it is...