CMS Dreams
custom modules for DragonFly CMS

mPic v1.0.2 - Sort Albums by ID

Free Modules for the DragonFly CMS
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts

mPic v1.0.2 - Sort Albums by ID

Post Posted: Tue Dec 09, 2008 12:33 pm

Can you tell me which file I need to look in to adjust how albums are sorted? I've tried looking through the albums.inc in the "includes" folder but no such luck (or I'm glazing over the portion I need to tweak).

I'd like to sort my albums by ID number and not by title. Any assistance you can provide would be greatly appreciate. Kudos on the well written mod =)
_________________
EHP Designs Webmaster
http://www.ehpdesigns.com


EHPDesigns
Newbie
Newbie
 

mPic v1.0.2 - Sort Albums by ID

Post Posted: Tue Dec 09, 2008 3:30 pm

In modules/Picture/includes/album.inc change line 100 from this:-

Code:
$res = $db->sql_query('SELECT * FROM '.MPICS_ALBUM." WHERE pid=$aid ORDER BY atitle");

to this:-

Code:
$res = $db->sql_query('SELECT * FROM '.MPICS_ALBUM." WHERE pid=$aid ORDER BY aid");

mark
Site Admin
Site Admin
 

Re: mPic v1.0.2 - Sort Albums by ID

Post Posted: Tue Dec 09, 2008 4:38 pm

A life saver, Mark. Thank you very much. Was racking my brain looking for that and skipped over it I don't know how many times. lol
_________________
EHP Designs Webmaster
http://www.ehpdesigns.com


EHPDesigns
Newbie
Newbie
 
Page 1 of 1



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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum