 |
 |
 |
 |
 |
| Author |
Message |
hadisaadeh
Joined: 29 Sep 2007 Posts: 46
|
|
vip subject |
|
Dear All,
I need to arrange posts withn cats
how
i mean if i have the 5th post, i need to make it the 1st one in the same cat.
How
|
|
| Mon Jul 14, 2008 8:19 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Mystic2010
Joined: 10 Jan 2007 Posts: 47
|
|
|
|
Try the readme.
 |  | $sort = array('field', 'order'); // tells the script to sort the news by "field" in "order". |
 |  | Variables you can use when using $sort:
date - date of news
author - author of news
title - title
short - the number of signs in the short story
full - the number of signs in the full story
category - category (use id1, id2 and so on )
url - the transliterated title or the value of the field "URL" in addnews/editnews
id - the identification number of news
views - number of views
comments number of comments
Two possibilities to sort:
ASC - Ascending
DESC - Descending
For example, if you declare $sort = array('comments', 'DESC') - you will see news sorted from least to largest amount of comments. |
BTW, don't latest posts show up on top already by default? 
|
|
| Wed Jul 16, 2008 4:38 pm |
|
 |
hadisaadeh
Joined: 29 Sep 2007 Posts: 46
|
|
No sir |
|
No sir,
I mean when i need to make any post in the 1st
not to sort all posts
only post i need to make it i the 1st
|
|
| Wed Jul 16, 2008 6:24 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
| Fri Jul 18, 2008 10:17 am |
|
 |
hadisaadeh
Joined: 29 Sep 2007 Posts: 46
|
|
Sir |
|
Sir,
i need only to make some posts are important
not all posts
please did you understod what i mean?
i need to make some posts in the 1st
not to sort all posts
|
|
| Mon Jul 21, 2008 8:33 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
 |  | Sir,
i need only to make some posts are important |
Unfortunately I regret to inform you that you are misunderstood. FI-DD's response with the link of:
http://forums.cutenewsru.com/how-to-sort-news-based-on-an-xfield-t2238.html
is exactly what you want. With this you will be able to mark any news as 'important' or 'not important' as a whole new way of filtering your news. Visit the link, read what it says, try it out, and soon you should find it provides exactly what you need
Unless I have misunderstood what you mean by:
 |  | i need to make some posts in the 1st
not to sort all posts |
Could you clarify?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue Jul 22, 2008 1:05 am |
|
 |
Mystic2010
Joined: 10 Jan 2007 Posts: 47
|
|
|
|
I think he just needs to be able to make 'sticky' posts, which your post already refers to, scottdallas
BTW, nice find, didn't know you'd be able to create stickies that way 
|
|
| Tue Jul 22, 2008 5:16 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
yes, FI-DD just did that very recently and I think we all still have yet to see how wonderful of a feature that is for Cutenews.ru 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue Jul 22, 2008 5:50 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|