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

How to start automatic Admiror Gallery
http://www.vasiljevski.com/forum/viewtopic.php?f=35&t=1181
Page 1 of 2

Author:  cairog [ Thu Feb 13, 2014 11:15 pm ]
Post subject:  How to start automatic Admiror Gallery

Hello,

How to start automatic Admiror Gallery?
If i push a button i wil to the pictures to and not a row of image's.
I only want to see 1 big picture seen.
Without pushing on the image.

I hope someone can help me with it.

Greetings from Cairog

Author:  Vasiljevski [ Fri Feb 14, 2014 10:38 am ]
Post subject:  Re: How to start automatic Admiror Gallery

I would like to help you, but I don't quite understand what is the issue you have.
Can you, please, clarify?

Author:  cairog [ Fri Feb 14, 2014 2:39 pm ]
Post subject:  Re: How to start automatic Admiror Gallery

This is the link http://www.techdisign.com/index.php?option=com_content&view=article&id=125 that I was talking about.
If you push on the link you zie one picture what with Admiror Gallery is made.

I want to that i can summon the Admiror Gallery with out the picture only with tekst.
I will now explain what i mean:
If i have the text (look for more information) that is the texts what the link must have.

Greetings Cairo_g

Author:  Vasiljevski [ Mon Feb 17, 2014 1:51 pm ]
Post subject:  Re: How to start automatic Admiror Gallery

You want to have text link that, when clicked, will open a larger image?

If yes, you could do that, but you would need to create a new template for that, as classic is not suitable for that.

Author:  cairog [ Tue Feb 18, 2014 12:10 am ]
Post subject:  Re: How to start automatic Admiror Gallery

You want to have text link that, when clicked, will open a larger image?

Yes I want that.

How do you mean i must create a new template ?
must i do that for the Admiror Gallery?

I have no idea how to do that?

can you give me some tips or can you help me do it?

I so not good ad develop.
I can only changes the script.
I cannot write it.

I'm still leaning to do that.
Greetings Cairog

Author:  Vasiljevski [ Tue Feb 18, 2014 12:29 pm ]
Post subject:  Re: How to start automatic Admiror Gallery

cairog wrote:
How do you mean i must create a new template ?
must i do that for the Admiror Gallery?

Yes. It's easy :)
Go to template folder: plugins\content\admirorgallery\admirorgallery\templates\
Make a copy of classic folder and rename it to text_link_gallery or something like that.
There is a details.xml file, it defines some basic info about the template, change it to accordingly.
The most interesting file is index.php, in it find this part:
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>';

It is responsible for creating the gallery HTML output.
This code actually adds the thumbnails :
Code:
$html.= $AG->writePopupThumb($imageName);

So what you would do is change that line to something like:
Code:
$html.='<a href="' . $AG->imagesFolderPath . $imageName . '" title="' . htmlspecialchars($AG->writeDescription($imageName), ENT_QUOTES, "UTF-8") . '" class="' . $AG->popupEngine->className . '" rel="' . $AG->popupEngine->rel . '" ' . $AG->popupEngine->customAttr . ' target="_blank">' . $AG->writeDescription($imageName) . '</a>';

Author:  cairog [ Wed Feb 19, 2014 12:23 am ]
Post subject:  Re: How to start automatic Admiror Gallery

How can I summon it on the webpage ??
the old way is {AG}test{/AG} if I do this then see i the pictures from this map TEST

What is the new way to summon it.

Ik heb change the things that you have said.

but I don't no how to summon it.

Can you tell me how i can do that?

Greetings Cairog

Author:  cairog [ Wed Feb 19, 2014 1:29 pm ]
Post subject:  Re: How to start automatic Admiror Gallery

It is working,
Can i run two different admiror Gallery??

One with the pictures and one with text is this possible?

Because I have a picture Gallery.

and I want a part only with text only.

Author:  Vasiljevski [ Thu Feb 20, 2014 11:43 am ]
Post subject:  Re: How to start automatic Admiror Gallery

Yes :)

Add one as :
Code:
{AG template="text_link_gallery" }test{/AG}

and the second one:
Code:
{AG template="classic" }test{/AG}

Author:  cairog [ Tue Feb 25, 2014 10:13 am ]
Post subject:  Re: How to start automatic Admiror Gallery

Hoi,

this code don't work {AG template="text_link_gallery" }test{/AG}

if I use the code I see noting. it will not load any template.
do you now how that can?

don't no it, I hoop you can help me with it?


greetings cairog

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