Archived
1
0
Commit Graph

82 Commits

Author SHA1 Message Date
onli 3e7e6a03ed Fix search page order when stable archive is on (#269) 2015-01-21 18:53:46 +01:00
onli 148c67bf9b Publish now + minor cleanup (closes #262) 2015-01-17 17:26:33 +01:00
Garvin Hicking 4d17c0ae02 Added SQLite3 OO layer, old one did not work for PHP 5.4+
PDO SQlite3 is preferrable though
2014-11-24 11:48:16 +01:00
onli 92afc37753 Introduce serendipity_specialchars-wrapper for encoding bug (#236)
PHP 5.4 sets UTF-8 as the default for htmlspecialchars, htmlentities and html_entity_decode. The first two will echo an empty string when given a string with umlauts. This commits introduces serendipity_specialchar-wrapper that are meant to be a temporary solution for the s9y-core until PHP 5.6 fixed the bug, so the native charset option of s9y continues to work.
2014-11-23 23:41:08 +01:00
Ian 6c26d1b3f6 htmlspecialchars charset for entry title, extends 8f894f5
References #236
2014-11-22 10:29:34 +01:00
Ian 8f894f50f1 fix native charset böog missing smarty entry title
Basically not a Smarty error. Just a php htmlspecialchars($entry['title']) setting this var to be empty.

References #236
2014-11-21 18:03:26 +01:00
Matthias Gutjahr 2624bcadec Add checks for indexes (cp. issue #206, amends commit 8002559) 2014-09-07 22:01:54 +02:00
Matthias Gutjahr 8002559603 Fix missing entry properties passed to 'backend_publish' event hook (Fixes #206)
Some plugins make use of additional entry properties (title, body, extended, author) after being called by the 'backend_publish' hook, e.g.

 * serendipity_event_forum
 * serendipity_event_freetag
 * serendipity_event_ljupdate
 * serendipity_event_trackback
 * serendipity_event_versioning
 * serendipity_event_entryproperties
 * serendipity_event_mailer
 * serendipity_event_twitter

 Thus we need to set these properties in the serendipity_updertEntry() method to make sure the plugins get the required data. Of course, we could fetch the entry either in overview.inc.php or again in each plugin, but that would mean an additional query to the DB.
2014-08-19 10:20:19 +02:00
Garvin Hicking 9b89c3d815 Another stab at fixing Issue #201
When no categories are delivered to serendipity_updertEntry this can mean two things:
- categories need to be un-assigned
- categories where not addressed/fetched/passed to the function [see include/admin/overview.inc.php for publishing a post! Or plugins like freetag, using serendipity_updertEntry]

To address this a new serendipity[had_categories] is added to the backend template, which can be checked for.

Feedback appreciated!
2014-08-08 14:23:19 +02:00
Ian 3660a2f116 dashboard entry publish keep timestamp - fixes and closes #160 2014-05-27 17:10:45 +02:00
Ian 3c21bfb9f4 be more strict - fixes 14ce11c778 2014-05-25 11:46:35 +02:00
Ian 14ce11c778 set entries update isdraft to string value false
to be able to publish draft entries from dashboard

References #160
2014-05-23 17:11:05 +02:00
Garvin Hicking 38c19fc150 If updertEntry is called with an array structure, make sure it is usable 2014-03-05 15:37:22 +01:00
Matthias Mees 8151645882 Don't emit comments, trackbacks or comment form in backend preview.
Fix by @onli. References #62
2013-10-10 15:58:55 +02:00
Ian 474953daa5 try to fix - draft preview non-object error
Draft previews threw:
Fatal error: Call to a member function assignByRef() on a non-object in /fullpath/include/functions_entries.inc.php on line 1235, which is the $serendipity['smarty']->assignByRef('entries', $dategroup); line.

Please double check if that is gone now.
2013-09-21 14:30:53 +02:00
Ian 3e79c6d06b Fixed pagination when searching terms with fetchlimit < 4 2013-09-01 14:10:23 +02:00
onli a654b13a9a Complete include_once usage, romove constants 2013-06-22 12:32:54 +02:00
onli c7162adf31 fix entries-preview 2013-06-16 15:13:18 +02:00
Matthias Mees 7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Ian d3d557de91 strip down double slashes in prev & next links
see http://board.s9y.org/viewtopic.php?f=10&t=18944
2012-11-12 13:26:05 +01:00
Garvin Hicking d7ef7a7a04 port everything so that 2.0 and 1.7 have the same features 2012-06-12 19:39:11 +02:00
Garvin Hicking bfea178fc4 Some plugins might needs this in the future 2011-12-21 09:16:37 +01:00
Garvin Hicking 2749dc54ad Smarty3 2011-11-24 12:16:02 +01:00
Garvin Hicking aba04f43b4 * PDO-SQLite patches by nth 2010-10-12 12:38:13 +00:00
Garvin Hicking 51208e0f72 * Only do '*' parameter expansion on the first page of search
results: http://board.s9y.org/viewtopic.php?f=10&t=14810
      (onli, Timbalu)
2010-09-27 08:33:40 +00:00
Garvin Hicking 38e4f719fe Fix PHP 5.3.2 parse error in a file, thanks to fyremoon 2010-07-24 22:23:49 +00:00
Garvin Hicking 77bf3eae79 better patch 2010-03-11 09:14:42 +00:00
Garvin Hicking a39785766c * Fix SQLite substring search to use % instead of * for secondary
matches (SvOlli)
2010-03-10 12:37:19 +00:00
Garvin Hicking 405ac6baa2 missing varname 2009-11-25 20:41:43 +00:00
Garvin Hicking 18e02a5452 * Alwys increase last_modified when an entry is saved to prevent
stale entries in RSS feeds. Thanks to Cenic
2009-10-06 09:27:55 +00:00
Garvin Hicking b266d3b3b4 * PostgreSQL compatibility for the printArchives() function to
gather only unique timestamps (cite)
2009-09-12 11:18:28 +00:00
Garvin Hicking db2ad9402a * Allow to define sort order for search-results (garvinhicking) 2009-08-24 08:24:19 +00:00
Garvin Hicking 6e8f54f588 * Added 'orderby' parameter to plugin API hooks for the serendipity
fulltext search function (garvinhicking)
2009-08-21 08:09:52 +00:00
Garvin Hicking 93802dbf95 Patch by paddyforan to allow overwrite of this arrey value 2009-08-14 11:06:36 +00:00
Garvin Hicking 79c98feb26 Proper variable referencing to make the 'entry_groupdata' hook work 2009-06-28 16:44:43 +00:00
Garvin Hicking 77f9542ac9 temporary hack to log queries 2009-06-17 12:15:37 +00:00
Garvin Hicking 9675b30fa3 API improvement, prpoerly store entry reference in printentries, and
save cid for api hook
2009-06-11 15:38:22 +00:00
Garvin Hicking a4284fdad2 change api to allow skipping smarty parsing 2009-04-06 13:33:18 +00:00
Jude Anthony 5874e18526 Allow * in quicksearch 2009-03-10 16:07:43 +00:00
Garvin Hicking 6628f392fd Patch by onli to improve quicksearch 2009-03-04 12:10:29 +00:00
Garvin Hicking 61be3385e3 try to prevent division by zero 2008-12-09 10:05:33 +00:00
Garvin Hicking b979267c4c Added new %parentname% category-permalink option 2008-11-26 12:33:29 +00:00
Garvin Hicking 29b46f0c53 Add more abstraction possibilites, gathered throughout the last weeks 2008-10-13 10:53:45 +00:00
Garvin Hicking d1c407121c pgsql bugfix, thanks to jtate 2008-09-19 08:12:26 +00:00
Garvin Hicking d3fd8ad8ec Fix parse error 2008-08-26 13:48:48 +00:00
Garvin Hicking 44290653bb support postgresql ts_vector fulltextsearch, thanks to genesis 2008-08-26 13:19:54 +00:00
Garvin Hicking fdfcdeb56d Do not execute trackbacks for entries in the future 2008-08-03 11:40:51 +00:00
Jude Anthony 4b09f17bca Add last_modified, loginname, and isdraft to entries in search reults. 2008-07-22 19:21:49 +00:00
Garvin Hicking db80a5c199 Added mor event hook SQL query parts 2008-05-15 11:40:32 +00:00
Garvin Hicking 775253c2eb Stricter check 2008-04-10 09:01:05 +00:00