It is currently Thu Dec 14, 2017 2:56 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Apr 05, 2011 8:08 am 
Offline
Developer
Developer
User avatar

Joined: Tue Aug 17, 2010 2:38 pm
Posts: 445
Location: Novi Sad, Serbia
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 Design Studio


Top
 Profile  
 
 Post subject: Re: possibility of customizing the size of each picture ?
PostPosted: Tue Apr 05, 2011 8:08 am 
Top  
PostPosted: Tue Apr 05, 2011 11:00 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
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 :)

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Wed Apr 06, 2011 7:59 pm 
Offline
Maegashira
Maegashira
User avatar

Joined: Sat Feb 12, 2011 4:32 pm
Posts: 18
: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? " ? ? ? :?:


Top
 Profile  
 
PostPosted: Fri Apr 08, 2011 9:32 am 
Offline
Developer
Developer
User avatar

Joined: Tue Aug 17, 2010 2:38 pm
Posts: 445
Location: Novi Sad, Serbia
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?

_________________
Admiror Design Studio


Top
 Profile  
 
PostPosted: Mon Apr 11, 2011 5:19 pm 
Offline
Maegashira
Maegashira
User avatar

Joined: Sat Feb 12, 2011 4:32 pm
Posts: 18
:) She named it "Blue birch"


Attachments:
Blå Birk.jpg
Blå Birk.jpg [ 46.61 KiB | Viewed 11108 times ]
Top
 Profile  
 
 Post subject: Re: possibility of customizing the size of each picture ?
PostPosted: Mon Apr 11, 2011 5:19 pm 
Top  
PostPosted: Thu Apr 14, 2011 10:16 am 
Offline
Developer
Developer
User avatar

Joined: Tue Aug 17, 2010 2:38 pm
Posts: 445
Location: Novi Sad, Serbia
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.

_________________
Admiror Design Studio


Top
 Profile  
 
PostPosted: Thu Apr 14, 2011 9:03 pm 
Offline
Maegashira
Maegashira
User avatar

Joined: Sat Feb 12, 2011 4:32 pm
Posts: 18
well, it is for sale ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group