Author Topic: Sorting Categories  (Read 10498 times)

0 Members and 1 Guest are viewing this topic.

Offline bgnm2000

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Sorting Categories
« on: August 02, 2002, 05:25:43 AM »
I have my subcategories in an alphabetical list yet when I want to add a new subcategory its a pain in the ass because I have to click move up a million times just to get it where I want. Each category has over 100 sub categories.

Does anybody know of a faster or more efficient way of doing this?

Any help would be greatly appreciated.

Best Regards,
Elliot Nash

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Sorting Categories
« Reply #1 on: August 02, 2002, 09:17:58 AM »
Search for this line in global.php and admin/categories.php

Code: [Select]
ORDER BY cat_order, cat_name ASC";
and replace it with
Code: [Select]
ORDER BY cat_name ASC";
After that the categories will always be sorted alphabetically.

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline bgnm2000

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Sorting Categories
« Reply #2 on: August 03, 2002, 01:15:26 AM »
Thanks so much! it worked  :D

Offline ocdotcom

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Sorting Categories
« Reply #3 on: August 21, 2006, 03:23:51 AM »
Sweet - that saves me a LOT of time!  :D :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Sorting Categories
« Reply #4 on: August 21, 2006, 03:48:08 AM »
Since v1.7.2 there is a new option "Category order" at the edit category page.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline iguanna

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Sorting Categories
« Reply #5 on: September 25, 2006, 06:11:40 AM »
Search for this line in global.php and admin/categories.php

Code: [Select]
ORDER BY cat_order, cat_name ASC";and replace it with
Code: [Select]
ORDER BY cat_name ASC";After that the categories will always be sorted alphabetically.

Greets Jan

don't worked for me on 1.7.3 version
what can I do?
I really want this feature
thanks in advance
www.summer-school-programs.com Summer study programs
http://celebrity.fake-images.com Celebrity Fake Images

Offline iguanna

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Sorting Categories
« Reply #6 on: September 25, 2006, 06:15:53 AM »
I'm sorry, now its working
thanks a lot!
www.summer-school-programs.com Summer study programs
http://celebrity.fake-images.com Celebrity Fake Images

Offline cronk005

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Travelingtheworldaround
Re: Sorting Categories
« Reply #7 on: February 21, 2007, 12:59:45 PM »
I cannot get this to work with 1.7.2 and when using a multilang(text) feature..... any suggestions?