Zeronix

About me:
Location:

Send private message

You must be logged in to send a private message.

Group membership

Activity

  • Zeronix is now a friend with 13net
  • Zeronix replied on the discussion topic Need help in custom_index (Tidypics) in the group General Discussion
    I´m in need of a seperate box for my custim_index page. I want to show some thumbs of the Tidypics plugin in a seperate box but i have no clue what to do. I used (recently) Vasco´s Mainpage Widget based Intex but since i moved to a...
    • Hi all, this should works

      Edit mod/custom_index/views/default/canvas/layouts/new_index.php, add the following where you want the pictures to show up

      <?php
          if(is_plugin_enabled('tidypics')){
              $photos = get_entities('object', 'image', 0, 0, 12, false, false);
              if(isset($photos)) {
                  echo '<div class="index_box">';
                  echo '<h2>'.elgg_echo("Latest images").'</h2>';
                  $counter = 0;
                  echo '<div class="frontpage_tidypics_box">';
      ?>
                  <!-- display latest photos -->
                 
                  <?php
                      foreach ($photos as $photo) {
                          $counter +=1;
                          if ($counter == 7){
                              $counter = 0;
                              echo "</div>";
                              echo '<div class="frontpage_tidypics_box">';
                          }
                          echo "<div class=\"tidypics_index\">";
                          echo elgg_view("custom_index/tidypics/icon", array(
                                  'mimetype' => $photo->mimetype
                                  ,'thumbnail' => $photo->thumbnail
                                  ,'file_guid' => $photo->guid
                                  ,'link' => $photo->getUrl()
                                  ,'size' => 'small'
                              ));
                          echo "</div>";
                      }
                  ?>
                      </div>
                  </div>
      <?php
              }
          }
      ?>

       

    • This Code works for me perfectly:

      <?php
          }
         
              if (is_plugin_enabled('tidypics')) {
      ?>
          <!-- display latest photos -->
              <div class="index_box">
                  <h2><a href="<?php echo $vars['url']; ?>pg/photos/world/"><?php echo elgg_echo("Najnowsze Zdięcia"); ?></a></h2>
                  <div class="contentWrapper">
                  <?php
                      echo tp_get_latest_photos(12);
                  ?>
                  </div>
              </div>

       

      ________________________________________________________________________

       

      You can see result of this code on my frontpage

    • Hi rogal

      can u please help me by telling how to implement this code ? where to post it ?

      PLeas Im a total newbie in here :)

  • Zeronix replied on the discussion topic Need help in custom_index (Tidypics) in the group General Discussion
    I´m in need of a seperate box for my custim_index page. I want to show some thumbs of the Tidypics plugin in a seperate box but i have no clue what to do. I used (recently) Vasco´s Mainpage Widget based Intex but since i moved to a...
    • Hi all, this should works

      Edit mod/custom_index/views/default/canvas/layouts/new_index.php, add the following where you want the pictures to show up

      <?php
          if(is_plugin_enabled('tidypics')){
              $photos = get_entities('object', 'image', 0, 0, 12, false, false);
              if(isset($photos)) {
                  echo '<div class="index_box">';
                  echo '<h2>'.elgg_echo("Latest images").'</h2>';
                  $counter = 0;
                  echo '<div class="frontpage_tidypics_box">';
      ?>
                  <!-- display latest photos -->
                 
                  <?php
                      foreach ($photos as $photo) {
                          $counter +=1;
                          if ($counter == 7){
                              $counter = 0;
                              echo "</div>";
                              echo '<div class="frontpage_tidypics_box">';
                          }
                          echo "<div class=\"tidypics_index\">";
                          echo elgg_view("custom_index/tidypics/icon", array(
                                  'mimetype' => $photo->mimetype
                                  ,'thumbnail' => $photo->thumbnail
                                  ,'file_guid' => $photo->guid
                                  ,'link' => $photo->getUrl()
                                  ,'size' => 'small'
                              ));
                          echo "</div>";
                      }
                  ?>
                      </div>
                  </div>
      <?php
              }
          }
      ?>

       

    • This Code works for me perfectly:

      <?php
          }
         
              if (is_plugin_enabled('tidypics')) {
      ?>
          <!-- display latest photos -->
              <div class="index_box">
                  <h2><a href="<?php echo $vars['url']; ?>pg/photos/world/"><?php echo elgg_echo("Najnowsze Zdięcia"); ?></a></h2>
                  <div class="contentWrapper">
                  <?php
                      echo tp_get_latest_photos(12);
                  ?>
                  </div>
              </div>

       

      ________________________________________________________________________

       

      You can see result of this code on my frontpage

    • Hi rogal

      can u please help me by telling how to implement this code ? where to post it ?

      PLeas Im a total newbie in here :)

  • Zeronix added a new discussion topic Need help in custom_index (Tidypics) in the group General Discussion
    I´m in need of a seperate box for my custim_index page. I want to show some thumbs of the Tidypics plugin in a seperate box but i have no clue what to do. I used (recently) Vasco´s Mainpage Widget based Intex but since i moved to a...
    • Hi all, this should works

      Edit mod/custom_index/views/default/canvas/layouts/new_index.php, add the following where you want the pictures to show up

      <?php
          if(is_plugin_enabled('tidypics')){
              $photos = get_entities('object', 'image', 0, 0, 12, false, false);
              if(isset($photos)) {
                  echo '<div class="index_box">';
                  echo '<h2>'.elgg_echo("Latest images").'</h2>';
                  $counter = 0;
                  echo '<div class="frontpage_tidypics_box">';
      ?>
                  <!-- display latest photos -->
                 
                  <?php
                      foreach ($photos as $photo) {
                          $counter +=1;
                          if ($counter == 7){
                              $counter = 0;
                              echo "</div>";
                              echo '<div class="frontpage_tidypics_box">';
                          }
                          echo "<div class=\"tidypics_index\">";
                          echo elgg_view("custom_index/tidypics/icon", array(
                                  'mimetype' => $photo->mimetype
                                  ,'thumbnail' => $photo->thumbnail
                                  ,'file_guid' => $photo->guid
                                  ,'link' => $photo->getUrl()
                                  ,'size' => 'small'
                              ));
                          echo "</div>";
                      }
                  ?>
                      </div>
                  </div>
      <?php
              }
          }
      ?>

       

    • This Code works for me perfectly:

      <?php
          }
         
              if (is_plugin_enabled('tidypics')) {
      ?>
          <!-- display latest photos -->
              <div class="index_box">
                  <h2><a href="<?php echo $vars['url']; ?>pg/photos/world/"><?php echo elgg_echo("Najnowsze Zdięcia"); ?></a></h2>
                  <div class="contentWrapper">
                  <?php
                      echo tp_get_latest_photos(12);
                  ?>
                  </div>
              </div>

       

      ________________________________________________________________________

       

      You can see result of this code on my frontpage

    • Hi rogal

      can u please help me by telling how to implement this code ? where to post it ?

      PLeas Im a total newbie in here :)

  • Zeronix is now a friend with rogal
  • Zeronix replied on the discussion topic new area or special block on frontpage in the group Theme Development
    I'd like to add to my front page some special content with special background and i dont know where i have to add new class. I'm using custom index, do  i have to edit mod/custom_index/views/default/css.php and add new class in it? or edit...
  • Zeronix joined the group General Discussion
  • Zeronix added a new discussion topic Codesnipped for my Mainsite in the group Tidypics Photo Gallery Plugin
    I need a small code for my mainsite Tab window to show the latest 20 images (as thumbnail). I hope you can help me out in this. You can see the mainsite here: http://pixel4tune.de
  • Zeronix posted on Baltej Singh's message board