Author Topic: order categories by alphabetic order  (Read 23042 times)

0 Members and 1 Guest are viewing this topic.

Offline jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: order categories by alphabetic order
« Reply #15 on: February 24, 2009, 04:19:32 AM »
Thank you very much v@no it's working good now. Is it possible to show the numbers 0-9 like this

0-9
111 (cat)
2222  (cat)
22 (cat)
33 (cat)
44 (cat)
999 (cat)

A
AAA (cat)

B
BBB (cat)

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: order categories by alphabetic order
« Reply #16 on: February 24, 2009, 06:56:49 AM »
Below    $letter strtolower(substr($cat_cache[$category_id]['cat_name'], 01));


Insert this:
    if ($letter >= "0" && $letter <= "9")
      
$letter "0-9";
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 jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: order categories by alphabetic order
« Reply #17 on: February 24, 2009, 02:50:36 PM »
Thank you soo much v@no it's working now.


Jamestave.