xpoarte

Elgg Sites

No items to show

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Activity

  • xpoarte replied on the discussion topic elgg 1.12 strange behavior
    Sorry for my late reply. I test with infinite-scroll by Paul Irish version 2.0.2, it´s an unmaintained release but works fine except for the regex of '2' ;D https://github.com/infinite-scroll/infinite-scroll/releases the... view reply
  • xpoarte replied on the discussion topic elgg 1.12 strange behavior
    Hello again Thanks to Juho for his tips. I was reviewing the console-log() and I found a depecated event that no longer worked in version elgg 2.0 because it uses jquery 2.2.0 and other small bugs. Through apache access.log finally I found the... view reply
  • xpoarte replied on the discussion topic elgg 1.12 strange behavior
    Is a plugin made by me, I'm adapting jquery masonry (v 2.1.03) made by David DeSandro with infinite-scroll (v 2.0b2.110713) by Paul Irish & Luke Shumard are earlier than currently published at http: // masonry.desandro.com/ ... view reply
  • xpoarte replied on the discussion topic elgg 1.12 strange behavior
    thanks Juho, I will try it all and I hope to find some solution, when I know something else, I will comment here the information view reply
  • xpoarte added a new discussion topic elgg 1.12 strange behavior in the group Beginning Developers
    I have a question about a strange behavior, I am implementing masonry and infinite-scroll as a plugin, I tested from elgg 1.8 to 1.12 and work well with the exception of 1.12 where infinite-scroll loads good but can´t find the following pages....
    • Hello again

      Thanks to Juho for his tips. I was reviewing the console-log() and I found a depecated event that no longer worked in version elgg 2.0 because it uses jquery 2.2.0 and other small bugs. Through apache access.log finally I found the failure that happens in the infinite-scroll when the next page loads, I do not know why the failure happens but I know what is the solution.

      All my test installations have the name of elgg version (eg elgg-8, -11, -12 ...) for some reason when the route contains 2 the Get of apache changes to 1 to call the next page loaded into the infinite-scroll, for that reason failed elgg-version 1.12 and/or 2.0.

      ::1 - - [10/Feb/2016:17:57:25 +0100] "GET /tester/doce/elgg1134567890/core?offset=20 HTTP/1.1" 404 1343 "http://localhost/tester/doce/elgg1234567890/core" "Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0) like Gecko"

      The xampp htdocs folder /tester/doce/elgg1234567890/core
      /elgg1234567890 is the name of the folder that contains the installation of elgg and has that name to test if another number changes as well.
      /core is the name of the page where masonry is applied.

      Only changes the 2 for 1 anywhere on the route when it's trying to load the next page, only happens with infinite-scroll. I found in jquery.infinitescroll.js file a regex that identifies the 2 and change the route

      path = path.match(/^(.*?)2(.*?$)/).slice(1);

      I don´t know well the language JavaScript but will try to modify or try a different version of infinite-scroll to resolve this issue, it is part of learning; D

      In relation to make available the plugin, It took me a long time working on it, even I do not have a functional version because it is related with other plugins and theme, I have not done an administer interface to apply on specific pages yet, it is also necessary to modify or adapt the river views or objects to a brick, but I did it from other plugin. Work on it to share it with the elgg community as soon as possible even if not fully operational for other themes or plugins out of the included on the installation.

      thank you so much.

    • That regex seems weird. Which infinite scroll library and version are you using?

    • Sorry for my late reply.

      I test with infinite-scroll by Paul Irish version 2.0.2, it´s an unmaintained release but works fine except for the regex of '2' ;D

      https://github.com/infinite-scroll/infinite-scroll/releases

      the newest versions of David DeSandro's masonry not include this infinite scroll since v.3, i don't work with the new 4 version because I like the behavior of v.2, perhaps later I test the new masonry to see what advantages does

      thank you Juho for your interest

       

  • xpoarte replied on the discussion topic elgg_get_entities 'type'=> 'site' fail on 1.7
    resolved in 1.7 the function returns the entity site by adding 'site_guid' => null, in 1.8 it is not necessary thanks view reply
  • xpoarte replied on the discussion topic elgg_get_entities 'type'=> 'site' fail on 1.7
    thanks SteveI'm working on it (as recommended had me on github) and when I have some progress or solution I'll post here for future referencebut I had to do other things and had not ever used xdebug, but I anticipate will be a very useful tool for... view reply
  • xpoarte added a new discussion topic elgg_get_entities 'type'=> 'site' fail on 1.7 in the group Beginning Developers
    hello,I'm trying to create a plugin for elgg version 1.7, do testing elgg 1.7.19 and 1.7.15 and I need to use the function elgg_get_entities but not returns correctly the 'type' => 'site', responds bool(false).$test = elgg_get_entities (array...
    • You should use xdebug, which allows you to walk through the execution of elgg_get_entities() to see what's going wrong. Here are the slides for a recent presentation I did on that tool that may or may not be useful.

    • thanks Steve
      I'm working on it (as recommended had me on github) and when I have some progress or solution I'll post here for future reference
      but I had to do other things and had not ever used xdebug, but I anticipate will be a very useful tool for my next attempts to create plugins

    • resolved
      in 1.7 the function returns the entity site by adding 'site_guid' => null, in 1.8 it is not necessary
      thanks