Sort Personal Galleries by Date Updated
3 posters
Page 1 of 1
Sort Personal Galleries by Date Updated
Alright so is there a way to set it to show the personal galleries in order of most recently updated. It shows the dates they were updated so I'm assuming that means theres a way to do this. I want to have it newest at the top. Heres a link to the page: http://www.designerssociety.net/gallery/personal.htm
Heres a guest account: username: guestaccount pass:guestpass123
Heres a guest account: username: guestaccount pass:guestpass123
Re: Sort Personal Galleries by Date Updated
Administration Panel > Modules > Gallery > Display
How do you have these options set -
Default Sort Method:
Default Sort Order:
How do you have these options set -
Default Sort Method:
Default Sort Order:
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Sort Personal Galleries by Date Updated
@SLGray I've already gone into that and had them all set by posted and descending. That only sorts the actual images themselves, not the order of the personal albums, which go by name.
Re: Sort Personal Galleries by Date Updated
@DesignersSociety I wrote a small script to attempt sorting the personal galleries by date. Go to Administration Panel > Modules > JavaScript codes management > Create a new script
Placement : In all the pages
I only had 3 personal galleries while testing this, so let me know if anything goes wrong.
See you
Placement : In all the pages
- Code:
/\/gallery\/personal/.test(window.location.pathname) && $(function() {
var a = [], b = [], c = document.getElementsByTagName('TD'), d, i = 0, j = c.length, k, o = {};
for (; i<j; i++) {
if (c[i].onmouseover) {
d = +new Date(c[i].getElementsByTagName('TR')[2].innerHTML.replace(/<.*?>|\d+ pic/g,''));
o[d] = c[i].innerHTML;
a.push(d);
b.push(c[i]);
}
}
a.sort(function(d1, d2) { return d1 > d2 ? 1 : -1 });
for (i = 0, j = a.length; i<j; i++) b[i].innerHTML = o[a[i]];
});
I only had 3 personal galleries while testing this, so let me know if anything goes wrong.
See you
Similar topics
» Delete Unused Personal Galleries
» Report generation with "Join date" and "Last visit" date
» (#2419) : All of the Galleries on our Forum have disappeared !!
» #1269 Mismatch between thumbnail upload picture and actual picture in user galleries - 2
» Sort by last edited
» Report generation with "Join date" and "Last visit" date
» (#2419) : All of the Galleries on our Forum have disappeared !!
» #1269 Mismatch between thumbnail upload picture and actual picture in user galleries - 2
» Sort by last edited
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum