Markus Söth

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Markus Söth replied on the discussion topic Show (count) new entries in groups
    Hi @Steve Clay, thanks for your support. Ok.. this looks like a bigger job... So I will put that in the qeue.. But you are right .. could be usefull especially for people who don't show up evry day Kind regards Markus   view reply
  • Markus Söth added a new discussion topic Show (count) new entries in groups in the group Beginning Developers
    Hi, I am searching for a solution to count the newest entries in a group. I already have now a menu of the groups I am a member. It would be nice to see in the menu if there are new entries.. Just like the behaviour Facebook offers for the...
    • I'm going to assume by "entry" you mean new ElggObjects in a group, and by "new" you mean "things I haven't viewed".

      This going to be difficult because Elgg doesn't keep track of things "viewed" by individual users; you'll have to record all that. When a group-contained entity is created, make a relationship called "unviewed{$group_guid}" between the entity and the group's members (you'll probably want to use a direct DB query for this). When a user "views" the entity (however you define that), you'll remove the relationship. And also make a cron job that deletes these relationships over N months old. 

      But that would give you a way to count unread for each group displayed.

      Could be a useful plugin!

    • Hi @Steve Clay,
      thanks for your support. Ok.. this looks like a bigger job...
      So I will put that in the qeue..

      But you are right .. could be usefull especially for people who don't show up evry day
      Kind regards
      Markus

       

  • Markus Söth replied on the discussion topic Building a new menu like owner_block
    Hi @RvR Thank you very very much for your help! Ok it seems like there is only the "hard-coded" way and no hook from the elgg system. Thanks it works! Kind regards Markus view reply
  • Markus Söth replied on the discussion topic Building a new menu like owner_block
    Hi @RvR first thank you for your fast response. But. errm.... I think I don't get it. As far as I see in the example of topic you send here it is a solution how to add a "blog" or something else to the menu if a plugin like... view reply
  • Markus Söth added a new discussion topic Building a new menu like owner_block in the group Beginning Developers
    Hello, I am just starting to develop a theme for elgg. I want to add a menu with the links provided like by the "owner_block" to give the user a "shortcut" to his pages,files, and wire entries. Just the same one gets from...
    • Hi @RvR
      first thank you for your fast response.
      But. errm.... I think I don't get it. As far as I see in the example of topic you send here it is a solution how to add a "blog" or something else to the menu if a plugin like "blog" is installed. But it's not about the blog...

      I would like to have the menu
      - Pages
      - Files
      - Wire entries


      stay all the time on my menu... even if the user is in groups or somewhere else.
      I thought maybe there is some kind of function or hook that always renders this menu.

      Of course it would be nice if the admin adds a plugin which adds a new menuentry to the "owner_block" that this menuentry will show automaticly up in my menu. But this is the the second step and could be managed by the soltion you provided.
      Kind regards
      Markus

       

    • An example for you.

      1) Make your own page handler:

      elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'theme_owner_block_menu_handler');

      2) Add items:

      function theme_owner_block_menu_handler($hook, $type, $items, $params) {
          $owner = elgg_get_page_owner_entity();


              $items['profile'] = ElggMenuItem::factory(array(
                  'name' => 'profile',
                  'text' => elgg_echo('profile'),
                  'href' => "/profile/$owner->username/",
                  'priority' => 1,
              ));


           if (elgg_is_active_plugin('thewire')) {
                  $items['thewire'] = ElggMenuItem::factory(array(
                  'name' => 'thewire',
                  'text' => elgg_echo('thewire'),
                  'href' => "/thewire/owner/$owner->username",
                  'priority' => 2,
              ));
          }

          if (elgg_is_active_plugin('pages')) {
          $items['pages'] = ElggMenuItem::factory(array(
                  'name' => 'pages',
                  'text' => elgg_echo('pages'),
                  'href' => "/pages/owner/$owner->username",
                  'priority' => 3,
              ));
           }

         if (elgg_is_active_plugin('file')) {

          $items['file'] = ElggMenuItem::factory(array(
                  'name' => 'file',
                  'text' => elgg_echo('file'),
                  'title' => elgg_echo('crewz:owner'),
                  'href' => "/file/owner/$owner->username",
                  'priority' => 4,
              ));
            }


          return $items;
      }

      etc

       

    • Hi @RvR

      Thank you very very much for your help!
      Ok it seems like there is only the "hard-coded" way and no hook from the elgg system.
      Thanks it works!
      Kind regards
      Markus

  • Markus Söth added a new discussion topic <video> tag in Ipad, Safari in the group Elgg Technical Support
    It seems like the Apple Products (Safari, Ipad, Iphone) have problem to play masked URLs of videos: <video id="jp_video_0" preload="metadata" style="width: 640px; height:...