PDA

View Full Version : order links fix


Simon Gooffin
12-21-2005, 12:01 PM
well, here is the fix how to sort links by title (alphabet)

*** open classes/Dir.php and find the following function ***
function getLinksByCategory()

*** find the following code in this function ***
$sql .= "ORDER BY `{$order}` {$order_type}) ";

*** change it to the following ***
$sql .= "ORDER BY `{$order}` {$order_type} LIMIT 0, 10000) ";

*** save changes ***

go to your admin panel -> configuration -> page navigation and listings
make sure you enabled sorting by alphabet

disenioweb
12-21-2005, 01:38 PM
It does not work for me 8)

Thanks

Simon Gooffin
12-22-2005, 09:55 AM
fixed. please check. the problem was you did not noticed you should make changes for both cases in this function. you have two similar lines here and both of them should be changed

Anonymous
12-22-2005, 10:00 AM
THANKS :D :D :D :D

Simon Gooffin
12-22-2005, 10:33 AM
you are welcome ;) don't forget to login before posting

disenioweb
12-22-2005, 10:37 AM
Simon, i was logged when i posted ...it was strange....

Simon Gooffin
12-22-2005, 10:49 AM
anyway, glad to help you

Tranix Inc
01-06-2006, 05:04 AM
Hi Simon,

I've changed those two lines but didn't see any effects :D hmm can we sort vertically?

A D H
B E I
C F J ...

Thanks

Simon Gooffin
01-06-2006, 05:58 AM
Hi Simon,
I've changed those two lines but didn't see any effects :D hmm can we sort vertically?
A D H
B E I
C F J ...
Thanks
Hi,
to sort categories vertically you should modify your print_categories () function in Layout.php file of your templates directory.

gb
02-08-2006, 10:25 AM
Hi Simon!

I would be interested in vertically sorting of categories as this is also a yahoo / dmoz standard for the subcategories. I have been playing around with the function in layout.php, but can't get it to work proper way.

Hope you can help.

gb
02-09-2006, 11:13 AM
managed to sort vertically in a night session ;-)

Simon Gooffin
02-09-2006, 02:55 PM
cool, sorry I did not have enough time :(
I think everyone would appreciate if you post the mod :)

gb
02-09-2006, 05:20 PM
sorry, this goes so deep in the code and css and it is quite indiviual for our website (fixed amount of columns) etc. It's not suited to be a public mod.

Simon Gooffin
02-09-2006, 05:27 PM
ahh, I do understand you...

anyway, I'm glad you have sorted out it yourself :good: