4images Forum & Community
The forum for all 4images gallery administrators
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
[2023-01-23] 4images 1.10 released
Home
Help
Search
Login
Register
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
order categories by alphabetic order
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: order categories by alphabetic order (Read 23037 times)
0 Members and 1 Guest are viewing this topic.
jamstave
Newbie
Posts: 49
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)
Logged
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...
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'
],
0
,
1
));
Insert this:
if (
$letter
>=
"0"
&&
$letter
<=
"9"
)
$letter
=
"0-9"
;
Logged
Your first three "must do" before you ask a question:
Forum rules
FAQ
Error messages
Bug Fixes & Patches
Search
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)
jamstave
Newbie
Posts: 49
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.
Logged
Print
Pages:
1
[
2
]
« previous
next »
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
order categories by alphabetic order