-
AuthorPosts
-
benrud Friend
benrud
- Join date:
- May 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 23
- Thanked:
- 1 times in 1 posts
June 5, 2008 at 2:12 am #129319Hello All,
I want to change the default display order of images in my galleries. Right now the display oldest first. I want to change it so when a new image is added to a gallery it’s displayed at the beginning of the gallery. I looked through the gallery configuration options but didn’t see anything that would allow me to modify that. Did I miss something?
If not can someone help me with this modification?
Thanks,
ToddSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 5, 2008 at 4:14 am #252065Hi.
Plz say more detail:
-joomla version
– your URL
– display at front end or back endbenrud Friendbenrud
- Join date:
- May 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 23
- Thanked:
- 1 times in 1 posts
June 5, 2008 at 2:27 pm #252165sorry about that nguoiadcd
-joomla version
JA Avian II v1.2 for Joomla! 1.5.x : Quickstart included Joomla! 1.5.3 + Template & Extensions installation packages (14.88 MB)– your URL
http://benrud.net– display at front end or back end
I want to display the images on the front end so they display the most recent images first. Basically I want to change the default display order to “latest”.
I looked trhough a few of the rsgallery2 component files but my .php isn’t good enough to locate the code I need to modify.
Thanks again for your help.
Toddbenrud Friendbenrud
- Join date:
- May 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 23
- Thanked:
- 1 times in 1 posts
June 6, 2008 at 5:22 am #252262How do I remove the “Answered” notation from this post? It’s not answered.
benrud Friendbenrud
- Join date:
- May 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 23
- Thanked:
- 1 times in 1 posts
July 2, 2008 at 10:09 pm #257690nguoiabcd,
I still haven’t been able to correct this issue.
Can you help me change the default display order of a gallery/subgallery to latest?
When someone opens a gallery or subgallery I want the newest images to be displayed first.
Thanks,
ToddSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 3, 2008 at 4:47 am #257742Hi
plz edit gallery.class.php (administratorcomponentscom_rsgallery2includes folder)
Search those lines:$filter_order = rsgInstance::getWord( 'filter_order', 'ordering' );
$filter_order_Dir = rsgInstance::getWord( 'filter_order_Dir', 'ASC' );
$where = ' WHERE gallery_id = '. $this->get('id');
$where .= ($my->gid < 23) ? ' AND published = 1 ' : '';if ($filter_order == 'ordering'){
$orderby = ' ORDER BY ordering ';
} else {
$orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , ordering ';
}Change to
$filter_order = rsgInstance::getWord( 'filter_order', 'date' );
$filter_order_Dir = rsgInstance::getWord( 'filter_order_Dir', 'ASC' );
$where = ' WHERE gallery_id = '. $this->get('id');
$where .= ($my->gid < 23) ? ' AND published = 1 ' : '';if ($filter_order == 'date'){
$orderby = ' ORDER BY date DESC ';
} else {
$orderby = ' ORDER BY '.$filter_order.' '.$filter_order_Dir.' , ordering ';
}1 user says Thank You to Sherlock for this useful post
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by benrud 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum