PDA

View Full Version : Sort Categories.


Romario
09-14-2005, 04:04 PM
Please Help me, I'm Russian and make russian sport directory on this script. All categories Name on Russian Language and all categories path (Mod_Rewrite On), I'm write on english language. All categories sort by categories Names, it's not good, it's very bad for me, plese tell me how make sort categories by Category Path Names?

Romario
09-14-2005, 04:32 PM
It's possible or not?

Romario
09-14-2005, 06:24 PM
Somebody help me it's very important for me, if it's impossible plese tell me.

yktan
09-14-2005, 06:35 PM
Hi Romario,

It is possible, do the following:

Open \index.php
Find ALL occurances of:
Content visible to registered users only.
And replace them with:
Content visible to registered users only.

Find ALL occurances of:
Content visible to registered users only.
And replace them with:
Content visible to registered users only.

Not tested but it should work.

Regards,
York Kie

Romario
09-14-2005, 06:44 PM
yktan VERY BIG THANKS!!!

Romario
09-24-2005, 07:50 PM
Why all subcategories on index page sort by hits? Plese tell me how make sort subcategories on index page by Category Path Names also.

Example:
If subcategory1 have 5 hits (first), if 3 hits (second) more... if all other category have 0 hits they sort by Category Path Names.

yktan
09-25-2005, 08:22 AM
Hi Romario, can you provide the URL to your site? Thanks.

Regards,
York Kie

Romario
09-25-2005, 09:08 AM
localhost. :)

Romario
09-25-2005, 09:13 AM
All TOP categories sort by URL path name and all subcategories on index page sort by hits why i don't know, how fix it?

yktan
09-25-2005, 11:05 AM
Hi Romario,

From my first reply:

Content visible to registered users only.

Replace with this instead:
Content visible to registered users only.

Romario
09-25-2005, 11:46 AM
Thank's. I'm do it. It's work. 8)

Romario
09-26-2005, 02:40 PM
How create sort category by url path name on index page and sort by category title (Alphabetic) on subcategory pages. It's possible?

yktan
09-27-2005, 08:34 AM
Hi Romario,

From my initial reply:

Content visible to registered users only.

Replace with following instead:
Content visible to registered users only.

richm
11-11-2005, 12:20 AM
Thank you for this. In my case, I had long lists of subcategories all showing on the front page (single click to any list). However, when they were sorted by hits, people could not find the subcategories easily. This solved the problem.

I opened index.php and did a search and replace, changing "ORDER BY HITS DESC, TITLE" to "ORDER BY TITLE." This changed two instances in the code.

Search words for this article: category, categories, subcategory, subcategories, sort by, sorted, alphabetical, alphabetically, alpha, order.