possibility of customizing the size of each picture ?

Join us in effort to make Admiror Gallery better. Submit your feature proposals and reviews, we are interested to hear your opinion.
Message
Author
User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: possibility of customizing the size of each picture ?

#11 Post by kekeljevic »

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?

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: possibility of customizing the size of each picture ?

#12 Post by Vasiljevski »

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 http://www.vasiljevski.com/forum/viewto ... 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: Select all

$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: Select all

	  // 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: Select all

<div style='clear:both'></div>

that needs to be removed.

Now line 79 should look like this:

Code: Select all

$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 :)
Help Admiror Gallery become even better,
give us a review on JED

User avatar
ngj
Maegashira
Maegashira
Posts: 18
Joined: Sat Feb 12, 2011 4:32 pm

Re: possibility of customizing the size of each picture ?

#13 Post by ngj »

: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? " ? ? ? :?:

User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: possibility of customizing the size of each picture ?

#14 Post by kekeljevic »

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?

User avatar
ngj
Maegashira
Maegashira
Posts: 18
Joined: Sat Feb 12, 2011 4:32 pm

Re: possibility of customizing the size of each picture ?

#15 Post by ngj »

:) She named it "Blue birch"
Attachments
Blå Birk.jpg
Blå Birk.jpg (46.61 KiB) Viewed 36365 times

Admiror Gallery 5 - Fundraising Campaign

User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: possibility of customizing the size of each picture ?

#16 Post by kekeljevic »

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.

User avatar
ngj
Maegashira
Maegashira
Posts: 18
Joined: Sat Feb 12, 2011 4:32 pm

Re: possibility of customizing the size of each picture ?

#17 Post by ngj »

well, it is for sale ;)

User avatar
marthaneilson
Posts: 1
Joined: Mon Jul 06, 2020 1:58 pm

Re: possibility of customizing the size of each picture ?

#18 Post by marthaneilson »

The main function of AG is to include the release code in the content of the article, as Vassilyevsky points out in his article. The gallery activation code is automatically replaced when a visitor opens your website. If you are using third generation AG, you can print the release code with one hand or the Admiral Gallery button while editing the article.

Post Reply