Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
vip subject

 
Reply to topic    Forum Index » Help View previous topic
View next topic
vip subject
Author Message
hadisaadeh



Joined: 29 Sep 2007
Posts: 46

Post vip subject Reply with quote
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 View user's profile Send private message
Guest








Please login to hide the ads.

Mystic2010



Joined: 10 Jan 2007
Posts: 47

Post Reply with quote
Try the readme.
Code:
$sort = array('field', 'order'); // tells the script to sort the news by "field" in "order".

Quote:
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? Confused
Wed Jul 16, 2008 4:38 pm View user's profile Send private message
hadisaadeh



Joined: 29 Sep 2007
Posts: 46

Post No sir Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Check the bookmark plugin and/or this thread:
http://forums.cutenewsru.com/how-to-sort-news-based-on-an-xfield-t2238.html
Fri Jul 18, 2008 10:17 am View user's profile Send private message
hadisaadeh



Joined: 29 Sep 2007
Posts: 46

Post Sir Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
Quote:
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 Wink

Unless I have misunderstood what you mean by:

Quote:
i need to make some posts in the 1st
not to sort all posts


Could you clarify?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Jul 22, 2008 1:05 am View user's profile Send private message Visit poster's website AIM Address
Mystic2010



Joined: 10 Jan 2007
Posts: 47

Post Reply with quote
I think he just needs to be able to make 'sticky' posts, which your post already refers to, scottdallas Wink

BTW, nice find, didn't know you'd be able to create stickies that way Laughing
Tue Jul 22, 2008 5:16 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
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 Wink

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Tue Jul 22, 2008 5:50 pm View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.