Reversed order and popup box

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
User avatar
hypnagogia
Posts: 2
Joined: Sat Aug 24, 2013 11:43 am
Location: Bečej, Serbia

Reversed order and popup box

#1 Post by hypnagogia »

Greetings,

Just wanted to ask two things:

1. What would be the easiest way to have a reversed sorting?
I sort by Name, since neither Date or Priority would really give me the result I want. Well, Priority would, but it's pain to add for each, and every time I add new images. So, I'd like to have normal sorting by name, but in reversed order.

2. What would be the best (and easiest) way to disable popup boxes and images linking? Would templating do that for me, and how should I go about it?

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: Reversed order and popup box

#2 Post by Vasiljevski »

1. You can check : public static function array_sorting($array,$targetFolder,$arrange) { in agHelper.php (plugins\content\admirorgallery\admirorgallery\classes)
After

Code: Select all

natcasesort($temporary_array);
just add

Code: Select all

 $temporary_array=array_reverse($temporary_array,true);
to revers the array after sorting :)

2.You could just edit classic template, open index.php and check line 50:

Code: Select all

$html.= $AG->writePopupThumb($imageName);
If you change it with:

Code: Select all

$html.= $AG->writeThumb($imageName);
You should also remove :

Code: Select all

// Reset $html variable from previous entery and load it with scripts needed for Popups
$html = $AG->initPopup();
and

Code: Select all

// Loads scripts needed for Popups, after gallery is created
$html.=$AG->endPopup();
Help Admiror Gallery become even better,
give us a review on JED

User avatar
hypnagogia
Posts: 2
Joined: Sat Aug 24, 2013 11:43 am
Location: Bečej, Serbia

Re: Reversed order and popup box

#3 Post by hypnagogia »

Excellent, that worked :D

Will need to sort out the template, don't want to completely ruin the original Classic one, so might need to duplicate things. But the sorting worked. I'd think that's something that should make its way into the options in Admin area (a Feature Request, I guess) ;)

Post Reply