 |
 |
 |
 |
 |
| Author |
Message |
IvoSilva
Joined: 13 Oct 2005 Posts: 22
|
|
No category and No date posts showing in search?!?!?! |
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
I don't get this error.
Maybe it's because of some changes you made to the code?
|
|
| Tue Jan 31, 2006 6:38 pm |
|
 |
IvoSilva
Joined: 13 Oct 2005 Posts: 22
|
|
|
|
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!
Sorry for bad english 
|
|
| Wed Feb 01, 2006 6:27 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
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.
EDIT:
I fixed this bug:
Open plugins/etc.php and find this:
 |  | global $PHP_SELF, $sql, $cache_file; |
change it to this:
 |  | global $PHP_SELF, $sql, $cache_file, $config_date_adjust; |
And find this:
 |  | foreach ($sql->select(array('table' => 'news', 'select' => array('date'), 'orderby' => $sort)) as $row){ |
change it to this:
 |  | 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 |
|
 |
|
|
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
|
|
 |
 |
 |
|