It is currently Sun Feb 18, 2018 12:54 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Sep 03, 2013 10:09 pm 
Offline
User avatar

Joined: Sat Aug 24, 2013 11:43 am
Posts: 2
Location: Bečej, Serbia
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?


Top
 Profile  
 
 Post subject: Reversed order and popup box
PostPosted: Tue Sep 03, 2013 10:09 pm 
Top  
PostPosted: Fri Sep 06, 2013 1:19 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
1. You can check : public static function array_sorting($array,$targetFolder,$arrange) { in agHelper.php (plugins\content\admirorgallery\admirorgallery\classes)
After
Code:
natcasesort($temporary_array);
just add
Code:
 $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:
$html.= $AG->writePopupThumb($imageName);

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

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

and
Code:
// Loads scripts needed for Popups, after gallery is created
$html.=$AG->endPopup();

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


Top
 Profile  
 
PostPosted: Fri Sep 06, 2013 8:12 pm 
Offline
User avatar

Joined: Sat Aug 24, 2013 11:43 am
Posts: 2
Location: Bečej, Serbia
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) ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

 


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