Sort based on Xfield

Need some help with the script?

Sort based on Xfield

Postby Goberg » Tue Mar 02, 2010 1:39 pm

I have done this: http://forums.cutenewsru.com/how-to-sor ... t2238.html

But I get this error message:
Code: Select all
Warning: file(../data/xfields-data.txt) [function.file]: failed to open stream: No such file or directory in /home/**/public_html/**/inc/show.news.php  on line 117

Warning: Invalid argument supplied for foreach() in /home/**/public_html/**/inc/show.news.php on line 117


I don't get it. The xfields-data.txt file is clearly in that folder it is linking to. The permissions (CHMOD) for the files are 777 so that should not be the problem. Any ideas here?
Goberg
 
Posts: 79
Joined: Thu Jan 18, 2007 2:31 pm

Re: Sort based on Xfield

Postby DarkSlim » Thu Mar 04, 2010 9:34 pm

I have used it and it worked for me, although there is a "bug' in that
code, if you choose to show 10 posts, the xfield filter looks for what you
want only in the 10 latest posts so if he finds only 3, you will get only 3
posts and not 10 as you wished, I haven't succeded much in fixing it
(but i did made a fix if you want to use the xfields filter twice in the same page)

Any way, check that you used the code right, pasted in the right place,
and check that all your cnr is configured right, no files are missing, the needed
folders and files has the needed permissions, check your system setings (in options)
that all the paths are correct etc :)
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL


Return to Help



Who is online

Users browsing this forum: No registered users and 1 guest

cron