Plugins

We couldn't find any plugins, themes or language packs at the moment.

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • ase8038 replied on the discussion topic Page Handling for Core pages?
    I found the bug. It was the usual copy & paste error. ;-) I copied parts of the code from the original friends_page_handler() function in /engine/lib/users.php, but used in my plugin_friends_page_handler() function another name for the... view reply
  • ase8038 replied on the discussion topic Page Handling for Core pages?
    Ok, thanks to both of you. I did it exactly like you have suggested it. But my handler is routed to the home page. I suppose that something is wrong with the place I have stored the index.php. I put it to '/mod/myplugin/pages/friends/index.php'.... view reply
  • ase8038 added a new discussion topic Page Handling for Core pages? in the group Plugin Development
    I know that I can modify pages in other plugins with elgg_register_page_handler() in a new plugin. But is there such a feature for pages in the Elgg Core? For example I would like to change something in the file /pages/friends/index.php. How can I...
    • Example:

      elgg_unregister_page_handler('friends', 'friends_page_handler');
      elgg_unregister_page_handler('friendsof', 'friends_page_handler');

      elgg_register_page_handler('editors','theme_editors_page_handler');

       

      function theme_editors_page_handler($segments, $handler) {
          elgg_set_context('editors');
          
          if (isset($segments[0]) && $user = get_user_by_username($segments[0])) {
              elgg_set_page_owner_guid($user->getGUID());
          }
          if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
              collections_submenu_items();
          }

          switch ($handler) {
              case 'editors':
                  require_once(dirname(dirname(dirname(__FILE__))) . "/pages/friends/index.php");
                  break;
              default:
                  return false;
          }
          return true;
      }

       

      Check it on http://weborganizm.com

    • Ok, thanks to both of you.

      I did it exactly like you have suggested it. But my handler is routed to the home page. I suppose that something is wrong with the place I have stored the index.php. I put it to '/mod/myplugin/pages/friends/index.php'. And no matter if I am writing:

      require_once(dirname(dirname(dirname(__FILE__))) . "/pages/friends/index.php");

      or

      require_once(elgg_get_plugins_path() . "myplugin/pages/friends/index.php");

      It doesn't route to my index.php. Any hints?

       

    • I found the bug. It was the usual copy & paste error. ;-)

      I copied parts of the code from the original friends_page_handler() function in /engine/lib/users.php, but used in my plugin_friends_page_handler() function another name for the parameter $segments.

      Now it works fine.

      Thanks again for your help.

  • ase8038 added a new discussion topic costs per capita in the group General Discussion
    Hi there! For a commercial web site it's necessary to have a budget and there an estimation of the costs. One item on the costs side is the need of space on the database as for many hosting providers they bill you by this amount. I would like for...
    • It really depends what the users will be doing, but in my experience, database costs are minimal. If you're doing lots of file uploads, pictures, etc, that would end up taking more space really fast.

  • ase8038 joined the group General Discussion
  • ase8038 joined the group Plugin Development
  • ase8038 replied on the discussion topic maximum number of Elgg objects
    A mathematician starts to count at 1 ... most computer systems are starting at 0. That's the difference! So, if you want to be precise you can say that the range goes from 0 to 18 446 744 073 709 551 615, but the amount of numbers is 18 446 744 073... view reply
  • ase8038 replied on the discussion topic maximum number of Elgg objects
    Not really helpful for answering the question but to be more precise concerning the above answers: 18 billion billion = 18 quintillion (US and scientific notation) or trillion (in other countries). As an exponential of 2 the number has to be... view reply
  • ase8038 joined the group German Support Group
  • ase8038 joined the group Beginning Developers
  • ase8038 joined the group Elgg Technical Support
  • ase8038 joined the group Performance and Scalability
  • ase8038 joined the group Tidypics Photo Gallery Plugin