Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
sorting with an x-field
Goto page 1, 2  Next
 
Reply to topic    Forum Index » Help View previous topic
View next topic
sorting with an x-field
Author Message
Spoon



Joined: 02 Apr 2008
Posts: 49

Post sorting with an x-field Reply with quote
hey guys..

I want to make an agenda. A webpage on wich you can see what sort of activity comes next. So i made a template in wich automaticly (with x-fields) the date, place, time and fee will fill in.

the problem is that when i post it the dates will not be sorted. I want the date that is furthest away on top and the dates that already have been lined trough.
is this possible? I found a topic (if you search on agenda) but that didn't work for me.

thanks!
Fri Apr 04, 2008 8:51 am View user's profile Send private message
Guest








Please login to hide the ads.

Spoon



Joined: 02 Apr 2008
Posts: 49

Post Reply with quote
is there nobody who can shine a light on this problem?
Mon Apr 07, 2008 12:35 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Reply with quote
Hmm, i did search the forums for you a few days ago. I was convinced there was a hack or something for this, yet i could'nt find it Confused

So, I'm afraid no, you'll have to be nice to FI-DD and hope he'll make it for you Cool Laughing

_________________
Mon Apr 07, 2008 7:14 pm View user's profile Send private message Visit poster's website
Spoon



Joined: 02 Apr 2008
Posts: 49

Post Reply with quote
hey ramon.

i found someone who wanted the same as me in this forum and you relpyed to him as well.. But his solutions somhoe doesnt work for me.
http://forums.cutenewsru.com/viewtopic.php?t=1243&highlight=agenda

it can be found there!

alvast bedankt Wink
Tue Apr 08, 2008 12:09 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Reply with quote
That's not done with an Xfield, it's done by setting a different date.. And the solution offered in that topic should work Smile

_________________
Tue Apr 08, 2008 2:16 pm View user's profile Send private message Visit poster's website
Spoon



Joined: 02 Apr 2008
Posts: 49

Post Reply with quote
I know its not done with an xfield..

but i cant get it to work like it;s explained there! Embarassed Confused Laughing
i;m gonna try that again Very Happy

//edit:

i just can't get it to work.
When i post the future date is just won't show up!
Wed Apr 09, 2008 2:41 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
So you edited the code in show.news.php and you added $schedule = true; to your include code?
Wed Apr 09, 2008 5:33 pm View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 49

Post Reply with quote
yes i did,

it is the show_news in inc right?
//edit

Code:
<?php
include $cutepath."head.php";
$category = "3";
include $cutepath."/show_news.php";
$schedule = true;
$sort = array('date', 'ASC');
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Second Chain links</title>
<link href="../iframe/text2.css" rel="stylesheet" type="text/css">
</head>
<body style="background-image: url(../images/secondchain_03gigs.gif); background-attachment: fixed;">
</body>

</html>
this is the code im using for implementing.
can i post the cod of show_news?
or is that too long? The only thing i did was to change the code given on that thread few post earlier.

the page can be seen at http://www.secondchain.nl/admin/gigs.php
there supposed to be 5 test posts. these four are posted on the day itself, with the fifth i changed the date to the actual date the gig is.
I just want the ting to sort automatically.
the thing you see there like "datum, damage, plaats and tijd" are those x-fields. So thats why I hoped that sorting trough x-fields would be possible.

annyway.. Thank you very much to take a look at this.
Wed Apr 09, 2008 7:55 pm View user's profile Send private message
Superdok



Joined: 07 Feb 2008
Posts: 25

Post Reply with quote
I think it would be better if you use something like this as your source code!

Code:
<?php
include $cutepath."head.php";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Second Chain links</title>
<link href="../iframe/text2.css" rel="stylesheet" type="text/css">
</head>
<body style="background-image: url(../images/secondchain_03gigs.gif); background-attachment: fixed;">

<?php
$category = "3";
$schedule = true;
$sort = array('date', 'ASC');
include $cutepath."/show_news.php";
?>

</body>
</html>


But FI-DD: I tried to follow the instructions given in this other post above. It worked but not completly:
The news in future showed up, but the News of today or even older didnt show up.

I think D72 of the other post given above had the same problem as me in the end. Ramon helped him, but in a language which i dont understand.
So is there a fix or something that all news are shown up, not only the news in future??


Last edited by Superdok on Tue Apr 15, 2008 3:55 pm; edited 1 time in total
Fri Apr 11, 2008 4:29 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Reply with quote
Try this : http://forums.cutenewsru.com/how-can-i-show-news-articles-regardless-of-date-t923.html#7147

_________________
Fri Apr 11, 2008 6:43 pm View user's profile Send private message Visit poster's website
Superdok



Joined: 07 Feb 2008
Posts: 25

Post Reply with quote
Ramon that is what i tried because i already found this link in the other topic. But this doesnt work. Is there any other thing i could do?
Sat Apr 12, 2008 10:32 am View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 49

Post Reply with quote
Superdok wrote:
I think it would be better if you use something like this as your source code!

Code:
<?php
include $cutepath."head.php";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Second Chain links</title>
<link href="../iframe/text2.css" rel="stylesheet" type="text/css">
</head>
<body style="background-image: url(../images/secondchain_03gigs.gif); background-attachment: fixed;">

<?php
$category = "3";
$schedule = true;
$sort = array('date', 'ASC');
include $cutepath."/show_news.php";
?>

</body>
</html>


But FI-DD: I tried to follow the instructions given in this other post above. It worked but not completly:
The news in future showed up, but the News of today or even older didnt show up.

I think D72 of the other post given above had the same problem as me in the end. Ramon helped him, but in a language which i dont understand.
So is there a fix or something that all news are shown up, not only the news in future??


hey, i had my code like you posted it. It didn't work. When i do it like that there wont be any content. The background loades but thats it. So i'll keep it the way i posted earlier. I tried the link that ramon gave but when you do that you see every category on every page. So that doesnt work either.
damn.. i hoped it was easier to add and delete dates from the gig page Very Happy.. but it's just a pain in the ass...
Tue Apr 15, 2008 2:06 pm View user's profile Send private message
Superdok



Joined: 07 Feb 2008
Posts: 25

Post Reply with quote
Oh there was a little mistake in it. Now it should work: I updated the source code in my other post.

But Ramon or FI-ID or someone else:
Why doesnt the old News show up, when i do the steps described in the other post?

D7e had the same problem in the end of the other post:
Quote:
Another question about this one.

As some of you knows i used above codes for a gig listing.

But i've noticed that gigs, will be givin on this day, with the date of today, automaticly removes to the archive.

For instance, a gig with the date of 7th april 2007, won't stay in the recent gig list, but removed to the archive.

Is there a way to keep certain dates active on the day it self and and moves to archive just the next day? (day after)

Tue Apr 15, 2008 3:54 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Did you try this?

http://forums.cutenewsru.com/how-can-i-show-news-articles-regardless-of-date-t923.html#7147
Tue Apr 15, 2008 6:51 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Reply with quote
He says he already tried that. We'll I don't know then, it works fine for me.

Could it be a server setting FI-DD?

_________________
Tue Apr 15, 2008 10:50 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
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.