1
cosmodrum
myalbum - change order of subcats ?
  • 2006/2/17 20:59

  • cosmodrum

  • Just popping in

  • Posts: 24

  • Since: 2004/8/30


Hi everybody,
please help me find the place to change the order of the subcategories from
A --> Z
to
Z --> A

would be great

1000 thanxxx

cosmo

2
TottoBG
Re: myalbum - change order of subcats ?
  • 2006/2/18 18:03

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


Hi cosmodrum,
I don't find an option for this through module administration but searching the code here's what I've found:
In myalbum/include/draw_functions.php on line 202 in the function myalbum_get_sub_categories() the line is:
$crs $xoopsDB->query"SELECT cid, title, imgurl FROM $table_cat WHERE pid=$parent_id ORDER BY title") or die( "Error: Get Category." ) ;

that is a query to the DB. What comes is the ORDER BY option at the end - add 'DESC' (like 'ORDER BY title DESC') and it should work.

3
cosmodrum
Re: myalbum - change order of subcats ?
  • 2006/2/18 19:23

  • cosmodrum

  • Just popping in

  • Posts: 24

  • Since: 2004/8/30


hi,
thanxxx, i fount it


Login

Who's Online

238 user(s) are online (197 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits