Page 1 of 1

Reversed order and popup box

Posted: Tue Sep 03, 2013 10:09 pm
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?

Re: Reversed order and popup box

Posted: Fri Sep 06, 2013 1:19 pm
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();

Re: Reversed order and popup box

Posted: Fri Sep 06, 2013 8:12 pm
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) ;)