| Author |
Message |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
Sorting trough Xfields |
|
sorting with xfields.
I know that is said a few times but i found this script for the original cutenews.
http://www.xs4all.nl/~cvdtak/sortbyxfield_1.0.htm
Maybe someone knows how to implement this as a new addon for cutenews.ru?
if someone can that will make me a happy man [/i]
|
|
| Wed Jun 11, 2008 9:13 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
| Mon Jun 16, 2008 8:44 pm |
|
 |
Mystic2010
Joined: 10 Jan 2007 Posts: 50
|
|
|
|
Not a matter of not wanting to help. If one can't help, one won't reply me thinks.
|
|
| Mon Jun 16, 2008 10:12 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
yeah
I guess you are right.. But there is a solution about the gallery on that forum. And i tried that solution but i think im doing something wrong cause with me it aint working.
ahh well.. thanks annyway for replying...
|
|
| Tue Jun 17, 2008 7:29 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
| Tue Jun 17, 2008 5:33 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
i tried the link but i get an error...
 |  | Warning: file(../data/xfields-data.txt) [function.file]: failed to open stream: No such file or directory in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 130
Warning: Invalid argument supplied for foreach() in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 131
Warning: file(../data/xfields-data.txt) [function.file]: failed to open stream: No such file or directory in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 130
Warning: Invalid argument supplied for foreach() in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 131
Warning: file(../data/xfields-data.txt) [function.file]: failed to open stream: No such file or directory in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 130
Warning: Invalid argument supplied for foreach() in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 131
|
I have an xfield called [xfvalue_datum] (that is the way i have to call this thing in the templates). I want to be able to put a date in that xfield and that the page on wich it is include gets sorted by date.
so instead of
22 june 2008
14 june 2008
2 juli 2008
i get
2 juli 2008
22 june 2008
14 june 2008
is that possible by the link you gave me?
Thnx annyway for taking a look at this!
|
|
| Tue Jun 17, 2008 11:15 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
| Fri Jun 20, 2008 1:53 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
i reverted the original show.news and followd that link u provided!
it sounds proicin but i think im doing something wrong.
I got this as an error
 |  | Warning: file(../data/xfields-data.txt) [function.file]: failed to open stream: No such file or directory in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 116
Warning: Invalid argument supplied for foreach() in /home/nick/domains/secondchain.nl/public_html/admin/inc/show.news.php on line 116
20 juni 2008, cafe de hommel in schiedam (Edit / Delete)
dit is een test pagina om te kijken of het werkt
Tijd: 22:00
Damage: 5 euro
Website: cafe de hommel
19 juni 2008, cafe vlaanderen in delft (Edit / Delete)
test 2
Tijd: 19:00
Damage: 10 euro
Website: cafe vlaanderen
22 juni 2008, testkees in schiedam (Edit / Delete)
bladiebaldiediebladiebal
Tijd: 22 uur
Damage: 5 euro
Website: testkees
|
U know what i did wrong?
|
|
| Fri Jun 20, 2008 7:51 pm |
|
 |
Goberg
Joined: 18 Jan 2007 Posts: 43
|
|
|
|
i get the same error. really wird tho, cus the .txt file is in that folder 
|
|
| Fri Jun 20, 2008 11:50 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Change this path until it works:
 |  | $path_to_xfields = '../data/xfields-data.txt'; |
|
|
| Sat Jun 21, 2008 1:34 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
Whieee !!!
got it to work!
changed  |  | $path_to_xfields = '../data/xfields-data.txt'; |
to
 |  | $path_to_xfields = '../admin/data/xfields-data.txt'; |
and now it works!!
at least for now 
|
|
| Sat Jun 21, 2008 2:48 pm |
|
 |
Goberg
Joined: 18 Jan 2007 Posts: 43
|
|
|
|
 |  | Change this path until it works:
 |  | $path_to_xfields = '../data/xfields-data.txt'; |
|
yeah, but what path should i use, i have tried everything
|
|
| Sun Jun 22, 2008 11:06 am |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
in what map is the data file found? add that map in front of /data and before ../
so you get
 |  |
../your_map/data/xfields-data.txt |
|
|
| Sun Jun 22, 2008 5:12 pm |
|
 |
Spoon
Joined: 02 Apr 2008 Posts: 42
|
|
|
|
Hey FI-DD.
i thought i had it fixed but now its showing some weir stuff..
i have this gigs list.
10-08-2008, Cultuur Borrelt in Schiedam
14-03-2008, caf? de hommel in vlaardingen
23-02-2008, Nederland 3 in wateringen
09-02-2008, Mach in hellevoetsluis
08-02-2008, caf? de hommel in vlaardingen
I sort the xfields on day, month and year..
(so i have included the sorting thing three times for three different xfields.)
When i add a date that is on the same day of a different month than the sorting meganism freaks out.
Do you know a way to sort this out :S..
Thank you!
|
|
| Thu Oct 02, 2008 11:16 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | I sort the xfields on day, month and year..
(so i have included the sorting thing three times for three different xfields.) |
I don't understand why you are sorting it three times. Please explain again.
|
|
| Fri Oct 03, 2008 9:17 am |
|
 |
|