Add unread category to Search.

Request new functionality here
SkyRE
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 01 Sep 2013, 13:27

Add unread category to Search.

Postby SkyRE » 05 Mar 2015, 15:20

Hello fox,

Please add this funtionality.
Here code for include/functions2.php:

Code: Select all

                    case "unread":
                            if ($commandpair[1]) {
                                    if ($commandpair[1] == "true")
                                            array_push($query_keywords, "($not (unread = true))");
                                    else
                                            array_push($query_keywords, "($not (unread = false))");

                            } else {
                                    array_push($query_keywords, "(UPPER(ttrss_entries.title) $not LIKE UPPER('%$k%')
                                                    OR UPPER(ttrss_entries.content) $not LIKE UPPER('%$k%'))");
                                    if (!$not) array_push($search_words, $k);
                            }
                            break;

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Add unread category to Search.

Postby fox » 05 Mar 2015, 15:36

file a pull request like a normal person pls

SkyRE
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 01 Sep 2013, 13:27

Re: Add unread category to Search.

Postby SkyRE » 05 Mar 2015, 16:26

Done


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 2 guests