1
alexshim
PD_Links _ Catagories
  • 2007/2/14 15:23

  • alexshim

  • Just popping in

  • Posts: 16

  • Since: 2007/2/9 1


Hi, I noticed that the categories in PD links are not alphabetically organized. categories and subcategories. Does anyone know if there is a quick fix? like a line of code that can be added to fix this ? Any help will be appreciated..

Thanks,
Alex

2
McDonald
Re: PD_Links _ Catagories
  • 2007/2/14 18:58

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


The categories are sorted by weight.
You can enter the weight factor when you create or modify a category.

3
alexshim
Re: PD_Links _ Catagories
  • 2007/2/14 21:56

  • alexshim

  • Just popping in

  • Posts: 16

  • Since: 2007/2/9 1


Thanks, but I was wondering if there is any code that I can maybe modify in order so that it automaticlly alphabetizes my categories?? I think its in the viewcat.php ?

If there is something like that it would be great..
So if anyone knows I would really appreciate some coding help heh..
thanks
Alex

4
McDonald
Re: PD_Links _ Catagories
  • 2007/2/14 22:36

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


In the file viewcat.php you might try to replace the line
$arr $mytree->getFirstChild($cid"weight");

with
$arr $mytree->getFirstChild($cid"title");

and the line
$sub_arr $mytree->getFirstChild($ele['cid'], "weight");

with
$sub_arr $mytree->getFirstChild($ele['cid'], "title");

5
alexshim
Re: PD_Links _ Catagories
  • 2007/2/15 15:09

  • alexshim

  • Just popping in

  • Posts: 16

  • Since: 2007/2/9 1


Hey,

Thanks a lot, it worked...

Login

Who's Online

360 user(s) are online (280 user(s) are browsing Support Forums)


Members: 0


Guests: 360


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