pradacaca

Send private message

You must be logged in to send a private message.

Group membership

Activity

  • pradacaca replied on the discussion topic Change blog posts title/tags
    Please I would really like to know this ;) view reply
  • pradacaca replied on the discussion topic Display latest 5 groups posts on custom index
    Something like this ?  (1111111 being arbitrary)    <?php $num = 5; $context = get_context(); set_context('search'); $content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'blog', 'container_guid'... view reply
  • pradacaca replied on the discussion topic Display latest 5 groups posts on custom index
    How can I twek this code to choose the goup whom blog posts I want to display on custom index ?   Many thanks ;) view reply
  • pradacaca added a new discussion topic Display latest 5 groups posts on custom index in the group Elgg Technical Support
    Hello everyone.   So I'm using elgg since like 8 monthes and it's been a cool experience. Currently on 1.7.9.   I'm using a tweeked version of custom index (3 columns, etc), but I have a question. I created a special group for my...
    • How can I twek this code to choose the goup whom blog posts I want to display on custom index ?

       

      Many thanks ;)

    • Set the container guid to the group guid value

    • Something like this ?  (1111111 being arbitrary) 

       

      <?php

      $num = 5;

      $context = get_context();

      set_context('search');

      $content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'blog', 'container_guid' => 111111111, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE));

      set_context($context);

      echo $content;

      if ($content) {

      $blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;

      echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";

      }

       

      Is this needed ? :

       

      if ($content) {

      $blogurl = $vars['url'] . "pg/blog/owner/" . page_owner_entity()->username;

      echo "<div class=\"widget_more_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('blog:moreblogs')."</a></div>";

      }

  • pradacaca commented on the plugin Advanced Comments
    I'm trying to figure out by myself, I'm messing with load.php, but I'm not sure it's the way to go...
  • pradacaca commented on the plugin Advanced Comments
    I'm really poor coder... I just figured out that it owuld be easy to add to this plugin "auto refresh" something like every 15 sec...
  • pradacaca commented on the plugin Advanced Comments
    Is it possible to make the page autorefresh looking for nex comment every 10 secondes for exemple ? It would be perfect for my site...
  • pradacaca commented on the plugin Robust Blog
    Thx for the feedback Trajan ;)
  • pradacaca commented on the plugin Robust Blog
    No more updates ?
  • pradacaca commented on the plugin Robust Blog
    That's so cool ! But for the slideshow, in my opinion it would be better if it displayed an image contained in the post than the banner ^^   Any idea when a stable version will be reached fr the plugin ? Can't wait to implement it on my...
  • pradacaca commented on the plugin Robust Blog
    Sorry Tunist I can't tell you, I'm waiting for the stable release to install it on my production website :/   I was wondering something. I saw a cool feature on many blog centered websites, I don't know how hard to implement it is : Is it...
  • pradacaca commented on the plugin Elgg - Disqus [1.8.X - 2.X]
    Is this possible with the Disqus API to get the avatar file from elgg so this is more user friendly ?
  • pradacaca added a new discussion topic Display number of members / posts... in the group Elgg Technical Support
    Simple question :   Is it possile to display with code a sentence like : The site has currently X members, X blog posts, X comments, and X files   What would be the php to get those stats ? Thanks a lot !
    • ;-) is this detailed enough ? ? ?

      $entity_stats = get_entity_statistics();
      ?>
      <div>
          <table>
              <?php
                  foreach ($entity_stats as $k => $entry) {
                      arsort($entry);
                      foreach ($entry as $a => $b) {
                          if ($a == "__base__") {
                              $a = elgg_echo("item:{$k}");
                              if (empty($a))
                                  $a = $k;
                          } else {
                                  if (empty($a)) {
                                      $a = elgg_echo("item:{$k}");
                                  } else {
                                      $a = elgg_echo("item:{$k}:{$a}");
                                  }

                                  if (empty($a)) {
                                      $a = "$k $a";
                                  }
                              }
                          echo "{$a}: {$b}";
                      }
                  }
              ?>

       

  • pradacaca commented on the plugin Robust Blog
    ported to custom_index easily.   Is there a fonction to call it ? Thans for the answers and technical detils you give by the way ;)
  • pradacaca commented on the plugin Robust Blog
    What would be nice would be that the blo central keeps the slideshow as coded by trajan, and besides this that we would get the code for usinf Nivo slideshow on custom index , that would display featured posts + getting the first image of the post....