How to start automatic Admiror Gallery

Everything to do with Templates and Templating for Admiror Gallery.
Message
Author
cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

How to start automatic Admiror Gallery

#1 Post by cairog »

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

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: How to start automatic Admiror Gallery

#2 Post by Vasiljevski »

I would like to help you, but I don't quite understand what is the issue you have.
Can you, please, clarify?
Help Admiror Gallery become even better,
give us a review on JED

cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

Re: How to start automatic Admiror Gallery

#3 Post by cairog »

This is the link http://www.techdisign.com/index.php?opt ... cle&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

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

Re: How to start automatic Admiror Gallery

#4 Post by Vasiljevski »

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

cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

Re: How to start automatic Admiror Gallery

#5 Post by cairog »

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

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: How to start automatic Admiror Gallery

#6 Post by Vasiljevski »

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: 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>';
It is responsible for creating the gallery HTML output.
This code actually adds the thumbnails :

Code: Select all

$html.= $AG->writePopupThumb($imageName);
So what you would do is change that line to something like:

Code: Select all

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

cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

Re: How to start automatic Admiror Gallery

#7 Post by cairog »

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

cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

Re: How to start automatic Admiror Gallery

#8 Post by cairog »

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.

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

Re: How to start automatic Admiror Gallery

#9 Post by Vasiljevski »

Yes :)

Add one as :

Code: Select all

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

Code: Select all

{AG template="classic" }test{/AG}
Help Admiror Gallery become even better,
give us a review on JED

Admiror Gallery 5 - Fundraising Campaign

cairog
Posts: 7
Joined: Thu Feb 13, 2014 10:57 pm

Re: How to start automatic Admiror Gallery

#10 Post by cairog »

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

Post Reply