Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
No category and No date posts showing in search?!?!?!

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
No category and No date posts showing in search?!?!?!
Author Message
IvoSilva



Joined: 13 Oct 2005
Posts: 22

Post No category and No date posts showing in search?!?!?! Reply with quote
Im facing that.... I have have news with no Category or with future date that are showing in search page!!!

They dont show on main page but if i search for a word that exists on news with no category or with future dates, they search function shows them!!!





How could i solve this? Best Regards
Tue Jan 31, 2006 6:07 pm View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
I don't get this error. Confused



Maybe it's because of some changes you made to the code?
Tue Jan 31, 2006 6:38 pm View user's profile Send private message
IvoSilva



Joined: 13 Oct 2005
Posts: 22

Post Reply with quote
well i think its a bug.... i dont change the code....



Even in the example page showed here ( http://english.cutenews.ru/cuteru/example/ ) you can see the bug....



On the main page you can't see any news with the word "open" in the title, but if you search for that word you will find one article!!!!



It woull be so much better if the search only shows news with category and with no future date, because for me its really usefulll to do do news to publish only at predifined date....



UPDATE: i notice that the "ghost news" also shows on archives! Neutral



Sorry for bad english Sad
Wed Feb 01, 2006 6:27 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
It was not showing because the main page shows only news within a category.



I've put your article in a category and changed the date to 1st of March.



You won't find this article neither in the main page nor in the search results.



And yes, there seems to be a bug with the archives. Wink



EDIT:

I fixed this bug:

Open plugins/etc.php and find this:

Code:
global $PHP_SELF, $sql, $cache_file;




change it to this:

Code:
global $PHP_SELF, $sql, $cache_file, $config_date_adjust;






And find this:

Code:
foreach ($sql->select(array('table' => 'news', 'select' => array('date'), 'orderby' => $sort)) as $row){




change it to this:

Code:
foreach ($sql->select(array('table' => 'news', 'select' => array('date'), 'where' => array('date < '.(time() + $config_date_adjust * 60)), 'orderby' => $sort)) as $row){

Wed Feb 01, 2006 7:01 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
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.