Admiror Joomla! Community
http://www.vasiljevski.com/forum/

possibility of customizing the size of each picture ?
http://www.vasiljevski.com/forum/viewtopic.php?f=9&t=240
Page 2 of 2

Author:  kekeljevic [ Tue Apr 05, 2011 8:08 am ]
Post subject:  Re: possibility of customizing the size of each picture ?

If it's necessary it could be done with custom template and some smaller tweaking of AG Engine, but I notice that image heights are various. This will cause quite a mess, a very chaotic appearance of gallery, because images wont be proper aligned. Maybe some invisible wrapper in template around every thumb could be made, which would force thumbs to align proper.

Your paintings? Oil or maybe acrylic? How does it call the top right painting with light ocher and paris blue tones?

Author:  Vasiljevski [ Tue Apr 05, 2011 11:00 am ]
Post subject:  Re: possibility of customizing the size of each picture ?

Yes I get what you want to do, but the classic template that you are using is a table, and it is always in a new row. But as I said in viewtopic.php?f=19&t=256&p=1102#p1102, you can make this possible by changing the classic template layout.
You only need to change "plugins/content/AdmirorGallery/templates/classic/index.php" from line 31 to line 50. This part defines the HTML layout.
Code:
$html.='
  <table cellspacing="0" cellpadding="0" border="0">
    <tbody>
      <tr>
   <td>';

     // Loops over the array of images inside target gallery folder, adding wrapper with SPAN tag and write Popup thumbs inside this wrapper
     if(!empty($AG->images)){   
          foreach ($AG->images as $imageKey => $imageName){
          $html.= '<span class="ag_thumb'.$AG->params['template'].'">';
          $html.= $AG->writePopupThumb($imageName);
          $html.='</span>';
          }
     }

   $html .='
   </td>
      </tr>
    </tbody>
  </table>';


So if you change this to something like:
Code:
     // Loops over the array of images inside target gallery folder, adding wrapper with SPAN tag and write Popup thumbs inside this wrapper
     if(!empty($AG->images)){   
          foreach ($AG->images as $imageKey => $imageName){
          $html.= '<span class="ag_thumb'.$AG->params['template'].'">';
          $html.= $AG->writePopupThumb($imageName);
          $html.='</span>';
          }
     }


Now because in the AdmirorGallery.php on the line 79, at the end, we have
Code:
<div style='clear:both'></div>

that needs to be removed.

Now line 79 should look like this:
Code:
$row->text = $AG->writeErrors().preg_replace("#{AdmirorGallery[^}]*}".$AG->imagesFolderNameOriginal."{/AdmirorGallery}|{AG[^}]*}".$AG->imagesFolderNameOriginal."{/AG}#s", $html, $row->text, 1);


This should be it :)

If you have the time to try, let me know did this do the trick :)

Author:  ngj [ Wed Apr 06, 2011 7:59 pm ]
Post subject:  Re: possibility of customizing the size of each picture ?

:oops: I have to admit, that I simply just can't figure out where it is, that you want me to edit the html part, as you describe here Vasiljevski ? ? ?

Kekeljevic, it is my mom who is the artist of the paintings :) ? She use both acrylic and oil. I'm not quite sure what you mean in your question "? How does it call the top right painting with light ocher and paris blue tones? " ? ? ? :?:

Author:  kekeljevic [ Fri Apr 08, 2011 9:32 am ]
Post subject:  Re: possibility of customizing the size of each picture ?

Sorry for my Enrish... what's the artwork title at the top right that can be seen on preview image You submitted here, at AG Community?

Author:  ngj [ Mon Apr 11, 2011 5:19 pm ]
Post subject:  Re: possibility of customizing the size of each picture ?

:) She named it "Blue birch"

Attachments:
Blå Birk.jpg
Blå Birk.jpg [ 46.61 KiB | Viewed 11113 times ]

Author:  kekeljevic [ Thu Apr 14, 2011 10:16 am ]
Post subject:  Re: possibility of customizing the size of each picture ?

It got some coldness, melancholic and nostalgy mood, like some kind of memories from the past. Me personally would add and some surprising detail, starting fixation point... but these artwork did attract my attention. Quite nice.

Author:  ngj [ Thu Apr 14, 2011 9:03 pm ]
Post subject:  Re: possibility of customizing the size of each picture ?

well, it is for sale ;)

Page 2 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/