Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Sorting trough Xfields
Goto page 1, 2  Next
 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
Sorting trough Xfields
Author Message
Spoon



Joined: 02 Apr 2008
Posts: 42

Post Sorting trough Xfields Reply with quote
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 Very Happy[/i]
Wed Jun 11, 2008 9:13 pm View user's profile Send private message
Guest








Please login to hide the ads.

Spoon



Joined: 02 Apr 2008
Posts: 42

Post Reply with quote
Am i really the only one who wants sorting trough xfields??

Crying or Very sad Embarassed nobody listens to me..

in an othe thread i opted for lytebox in iframe..posted it in the lytebox forum...
nobody wants to hep me...
http://www.dolem.com/forum/showthread.php?tid=664
Mon Jun 16, 2008 8:44 pm View user's profile Send private message
Mystic2010



Joined: 10 Jan 2007
Posts: 50

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



Joined: 02 Apr 2008
Posts: 42

Post Reply with quote
yeah Embarassed

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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
http://forums.cutenewsru.com/xfield-filter-t1933.html
Tue Jun 17, 2008 5:33 pm View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 42

Post Reply with quote
i tried the link but i get an error...

Code:
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
http://forums.cutenewsru.com/how-to-sort-news-based-on-an-xfield-t2238.html
Fri Jun 20, 2008 1:53 pm View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 42

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


Code:
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 View user's profile Send private message
Goberg



Joined: 18 Jan 2007
Posts: 43

Post Reply with quote
i get the same error. really wird tho, cus the .txt file is in that folder Razz
Fri Jun 20, 2008 11:50 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Change this path until it works:
Code:
$path_to_xfields = '../data/xfields-data.txt';

Sat Jun 21, 2008 1:34 pm View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 42

Post Reply with quote
Whieee !!!

got it to work!

changed
Code:
$path_to_xfields = '../data/xfields-data.txt';

to
Code:
$path_to_xfields = '../admin/data/xfields-data.txt';


and now it works!!

at least for now Wink
Sat Jun 21, 2008 2:48 pm View user's profile Send private message
Goberg



Joined: 18 Jan 2007
Posts: 43

Post Reply with quote
FI-DD wrote:
Change this path until it works:
Code:
$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 View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 42

Post Reply with quote
in what map is the data file found? add that map in front of /data and before ../

so you get
Code:

 ../your_map/data/xfields-data.txt

Sun Jun 22, 2008 5:12 pm View user's profile Send private message
Spoon



Joined: 02 Apr 2008
Posts: 42

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


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Spoon wrote:
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Suggestions 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.