Changeset 1677 for trunk/search.php


Ignore:
Timestamp:
Dec 21, 2006, 10:38:20 PM (18 years ago)
Author:
rub
Message:

Feature Issue ID 0000601: Filter all public pages with only recent elements

It's a finalized version.
Obsolete code of draft are removed.

You can filter categories and images with recent date period on your screen selection.
In the future, filter could be easy done on other type data (plugin?)

You can flat categories and sub-categories with a recent date period of your choice.

Next, perhaps, a panel to choice recent date for the 2 features.

On draft, there have problem with MySql 5, be careful!

Css problem not resolved:

  • Menu "Categories" is bad centered
  • Icon on dark too on the top
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search.php

    r1627 r1677  
    188188  );
    189189
    190 $available_tags = get_available_tags(
    191       isset($user['forbidden_categories'])
    192       ? explode(',', $user['forbidden_categories'])
    193       : null
    194       );
     190$available_tags = get_available_tags();
    195191
    196192if (count($available_tags) > 0)
     
    214210$query = '
    215211SELECT name,id,date_last,nb_images,global_rank,uppercats
    216   FROM '.CATEGORIES_TABLE;
    217 if ($user['forbidden_categories'] != '')
    218 {
    219   $query.= '
    220   WHERE id NOT IN ('.$user['forbidden_categories'].')';
    221 }
    222 $query.= '
     212  FROM '.CATEGORIES_TABLE.'
     213'.get_sql_condition_FandF
     214  (
     215    array
     216      (
     217        'forbidden_categories' => 'id',
     218        'visible_categories' => 'id'
     219      ),
     220    'WHERE'
     221  ).'
    223222;';
    224223
Note: See TracChangeset for help on using the changeset viewer.