| Author |
Message |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
sorting with an x-field |
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
|
|
is there nobody who can shine a light on this problem?
|
|
| Mon Apr 07, 2008 12:35 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
|
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
So, I'm afraid no, you'll have to be nice to FI-DD and hope he'll make it for you 
_________________
 |
|
| Mon Apr 07, 2008 7:14 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
|
| Tue Apr 08, 2008 12:09 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
|
That's not done with an Xfield, it's done by setting a different date.. And the solution offered in that topic should work 
_________________
 |
|
| Tue Apr 08, 2008 2:16 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
|
|
I know its not done with an xfield..
but i cant get it to work like it;s explained there!
i;m gonna try that again
//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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
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 |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
|
|
yes i did,
it is the show_news in inc right?
//edit
 |  | <?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 |
|
 |
Superdok
Joined: 07 Feb 2008 Posts: 25
|
|
|
|
I think it would be better if you use something like this as your source 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 |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
| Fri Apr 11, 2008 6:43 pm |
|
 |
Superdok
Joined: 07 Feb 2008 Posts: 25
|
|
|
|
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 |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 49
|
|
|
|
 |  | I think it would be better if you use something like this as your source 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 .. but it's just a pain in the ass...
|
|
| Tue Apr 15, 2008 2:06 pm |
|
 |
Superdok
Joined: 07 Feb 2008 Posts: 25
|
|
|
|
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:
 |  | 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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
| Tue Apr 15, 2008 6:51 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
|
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 |
|
 |
|