aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirsearch.php
Commit message (Collapse)AuthorAgeFilesLines
* control the generation or acceptance of directory keywordsredmatrix2016-01-261-0/+2
|
* provide correct error if a directory server requires a realm_token and one ↵redmatrix2015-12-021-2/+2
| | | | wasn't provided
* directory search for pubforums using hubzilla directory servers using ↵redmatrix2015-11-191-3/+9
| | | | redmatrix flag value
* Merge https://github.com/redmatrix/redmatrix into pending_mergeredmatrix2015-10-191-2/+2
|\
| * add project info to pubsite listredmatrix2015-10-191-2/+2
| |
* | create site records for all queued sites and check for deathredmatrix2015-09-281-4/+6
| |
* | fix some merge errorsredmatrix2015-05-181-2/+4
| |
* | Merge branch 'master' into tresfriendica2015-04-231-11/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: include/Contact.php include/ItemObject.php include/api.php include/attach.php include/diaspora.php include/dir_fns.php include/enotify.php include/event.php include/expire.php include/items.php include/notifier.php include/notify.php include/photos.php include/taxonomy.php include/text.php include/widgets.php include/zot.php mod/admin.php mod/channel.php mod/dirsearch.php mod/display.php mod/editwebpage.php mod/events.php mod/home.php mod/item.php mod/manage.php mod/mood.php mod/network.php mod/page.php mod/photos.php mod/ping.php mod/post.php mod/thing.php mod/viewsrc.php view/css/mod_events.css
| * separate the hub query since it changes the logic default and cannot easily ↵friendica2015-04-071-4/+7
| | | | | | | | be grouped
| * make the findpeople widget honour the local/global directory settingfriendica2015-04-061-1/+1
| |
| * substr() is a mysql alias for substring(). substring() is in the SQL ↵Habeas Codice2015-03-121-1/+1
| | | | | | | | | | | | standard and is supported by both databases.
| * directory: fix public forum listingfriendica2015-03-071-3/+5
| |
| * major cleanup of directory optionsfriendica2015-03-051-32/+10
| |
| * make alpahabetic searches start with Afriendica2015-03-051-5/+36
| |
| * require access token to view, query, or join directories in private realms, ↵friendica2015-02-241-1/+9
| | | | | | | | if the realm is so configured.
* | Merge branch 'master' into tresfriendica2015-02-051-1/+18
|\| | | | | | | | | | | Conflicts: view/css/mod_events.css view/theme/redbasic/css/style.css
| * finish off the sync functionsfriendica2015-02-031-2/+3
| |
| * styling for the directory page when it comes to ratingsfriendica2015-02-031-9/+0
| |
| * honour block public setting - especially for standalonesfriendica2015-02-031-1/+9
| |
| * add ratings to the directory sync arraysfriendica2015-02-021-0/+17
| |
* | Merge branch 'master' into tresfriendica2015-01-311-1/+11
|\| | | | | | | | | Conflicts: include/zot.php
| * basic query for number of raters. Should probably be a join or subselect but ↵friendica2015-01-281-1/+11
| | | | | | | | that will take a bit more fiddling
* | Merge branch 'master' into tres and add some work on the item_deleted flag ↵friendica2015-01-261-5/+6
|\| | | | | | | | | | | | | | | | | | | refactor Conflicts: include/attach.php include/onedirsync.php include/zot.php mod/locs.php
| * rand() fixesHabeas Codice2015-01-231-2/+3
| |
| * directory server dba sql fixesHabeas Codice2015-01-211-3/+3
| |
* | working through the xchan table to remove bitfields, mostly complete except ↵friendica2015-01-201-15/+7
|/ | | | for updating the updater
* Directory sorting as a dropdown, forum filter as checkbox, option to sort ↵Stefan Parviainen2014-12-071-2/+4
| | | | oldest first
* allow directory searches to be filtered by (public forums) and/or (! public ↵friendica2014-11-231-1/+12
| | | | forums)
* Fix dirsearch with quoted single-word termStefan Parviainen2014-11-181-0/+6
|
* Fix dirsearch parser to not get confused by logic terms in names and to ↵Stefan Parviainen2014-11-171-25/+28
| | | | handle quoted single word names
* Merge remote-tracking branch 'upstream/master'Habeas Codice2014-11-131-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: boot.php include/dba/dba_driver.php include/diaspora.php include/follow.php include/session.php include/zot.php mod/photos.php mod/ping.php
| * indicate public forums in directory results (there will be some [possibly ↵friendica2014-11-101-0/+2
| | | | | | | | considerable] lag time before existing forums are correctly tagged).
* | PostgreSQL support initial commitHabeas Codice2014-11-131-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* for webpages, hide the mimetype selector unless in advanced mode. For pages ↵friendica2014-09-071-2/+2
| | | | that endless scroll and show blocky-block things, set the default items-per-page to 60. Why? It fits column-widths of 2,3,4,5,6,10,12,15, and 20 without leaving remaindered items dangling at the end. No other setting less than 100 has this much versatility.
* retro-actively set standalone directory fix, also a fix for directory ↵friendica2014-08-281-1/+7
| | | | endless scroll when you hit the end.
* restrict returned directory contents to xchans in the zot network. We could ↵friendica2014-08-201-2/+2
| | | | probably add other networks to this and create a distributed directory for the free web. It's highly unlikely we would do this but we *could*.
* some more work on realmsfriendica2014-08-171-2/+12
|
* limit updates from new dir servers to avoid exhausting memory.friendica2014-06-291-1/+1
|
* keep dirsync from exhausting memoryfriendica2014-06-291-1/+1
|
* more work on firehosefriendica2014-03-261-0/+2
|
* failed experiment - revert the directory to 80 results per page until ↵friendica2014-03-101-1/+1
| | | | somebody implements endless scroll on the thing. 300 takes far too long to load all the images.
* update cacert.pem , don't hide url link for rmagicfriendica2014-03-091-1/+0
|
* advanced search front-endfriendica2014-03-081-0/+4
|
* back-end for advanced directory searchfriendica2014-03-081-15/+98
|
* stopgap solution until somebody implements endless scroll on the directoryfriendica2014-03-041-1/+1
|
* directory sync issuesfriendica2014-03-031-1/+6
|
* Probably shouldn't list REGISTER_CLOSED sites on a list of open hubs.Thomas Willingham2014-01-141-2/+2
|
* cut/paste errorfriendica2013-12-251-3/+3
|
* extend the directory profiles a bit morefriendica2013-12-251-0/+3
|
* improve the directory popup a bitfriendica2013-12-231-4/+1
|