minimedit.git
2 months agonieuws: append create link to navigation block master
Mischa POSLAWSKY [Sun, 17 Feb 2019 17:51:07 +0000 (18:51 +0100)]
nieuws: append create link to navigation block

Assume an existing .nav container (for rss feed) where this admin option can
be added without conflict.

2 months agonieuws: split intro before nested figure containers
Mischa POSLAWSKY [Sat, 2 Mar 2019 18:10:52 +0000 (19:10 +0100)]
nieuws: split intro before nested figure containers

Fix invalid html due to captured consecutive <figure> from contents.

2 months agonieuws: support image containers after article intro
Mischa POSLAWSKY [Sun, 17 Feb 2019 16:48:38 +0000 (17:48 +0100)]
nieuws: support image containers after article intro

Split body even if images are wrapped in a figure or paragraph element.

2 months agonieuws: separate article intro by horizontal ruler
Mischa POSLAWSKY [Mon, 11 Feb 2019 00:10:05 +0000 (01:10 +0100)]
nieuws: separate article intro by horizontal ruler

Alternative to split text without a cover image.

2 months agonieuws: disregard unwanted image attributes in overviews
Mischa POSLAWSKY [Tue, 12 Feb 2019 00:28:59 +0000 (01:28 +0100)]
nieuws: disregard unwanted image attributes in overviews

Only alt is wanted; styling such as class will disrupt layout.

2 months agopage: hide login class sections in all contents
Mischa POSLAWSKY [Fri, 25 Jan 2019 23:47:41 +0000 (00:47 +0100)]
page: hide login class sections in all contents

Extend user-dependent classes .login/.logout in menu
to generic templating so any page can include optional parts.

2 months agonieuws: first paragraph teaser as page description
Mischa POSLAWSKY [Mon, 11 Feb 2019 00:09:30 +0000 (01:09 +0100)]
nieuws: first paragraph teaser as page description

Enable previews in social media links.  Also used in search results.

3 months agopage: closing xml slash in head meta tags
Mischa POSLAWSKY [Sat, 27 Oct 2018 15:50:14 +0000 (17:50 +0200)]
page: closing xml slash in head meta tags

Uniform formatting that validates as XHTML.
Cherry-picked from Lijtweg.

3 months agofoto: og metadata for current album title, image
Mischa POSLAWSKY [Sun, 10 Feb 2019 22:40:25 +0000 (23:40 +0100)]
foto: og metadata for current album title, image

3 months agofoto: common override of navigation root title
Mischa POSLAWSKY [Sun, 10 Feb 2019 22:38:53 +0000 (23:38 +0100)]
foto: common override of navigation root title

Slight code simplification.

3 months agohead: enforce absolute links of og:image values
Mischa POSLAWSKY [Sun, 10 Feb 2019 22:45:38 +0000 (23:45 +0100)]
head: enforce absolute links of og:image values

Common replacement of Facebook requirement.

3 months agologin/mailpass: strip www. subdomain from site domain
Mischa POSLAWSKY [Sun, 10 Feb 2019 08:23:52 +0000 (09:23 +0100)]
login/mailpass: strip  subdomain from site domain

Similar to contact mailer.

3 months agologin/pass: describe reset form
Mischa POSLAWSKY [Sun, 10 Feb 2019 08:15:54 +0000 (09:15 +0100)]
login/pass: describe reset form

3 months agologin/pass: set user cookie after token reset
Mischa POSLAWSKY [Sun, 10 Feb 2019 07:58:52 +0000 (08:58 +0100)]
login/pass: set user cookie after token reset

Value became invalid after changes to hashing and edit page.

3 months agologin/mailpass: prefer full name to address user
Mischa POSLAWSKY [Sun, 10 Feb 2019 07:22:48 +0000 (08:22 +0100)]
login/mailpass: prefer full name to address user

3 months agologin/mailpass: names in address headers, site sender
Mischa POSLAWSKY [Sun, 10 Feb 2019 07:19:07 +0000 (08:19 +0100)]
login/mailpass: names in address headers, site sender

3 months agologin: indicate failure in http status codes
Mischa POSLAWSKY [Sun, 10 Feb 2019 06:33:25 +0000 (07:33 +0100)]
login: indicate failure in http status codes

Track results in access logs.

3 months agocontact: strip www. subdomain from mail address
Mischa POSLAWSKY [Wed, 9 Jan 2019 00:14:28 +0000 (01:14 +0100)]
contact: strip www. subdomain from mail address

Fix invalid recipient info@www.domain.tld for non-redirecting domains.

Reported-by: Arie van Marion
5 months agologin/edit: option to override tag labels
Mischa POSLAWSKY [Sun, 9 Dec 2018 04:31:46 +0000 (05:31 +0100)]
login/edit: option to override tag labels

Sites can predefine elements of "values" with preferred label names instead
of fallback to file names.

5 months agonieuws: toc option to prepend images
Mischa POSLAWSKY [Mon, 26 Nov 2018 18:19:25 +0000 (19:19 +0100)]
nieuws: toc option to prepend images

Show yearly archive as gallery.

5 months agonieuws: list items in article containers
Mischa POSLAWSKY [Fri, 30 Nov 2018 23:29:24 +0000 (00:29 +0100)]
nieuws: list items in article containers

5 months agopage: prevent reparsing of placeholder blocks v3.8
Mischa POSLAWSKY [Mon, 26 Nov 2018 17:28:37 +0000 (18:28 +0100)]
page: prevent reparsing of placeholder blocks

Quick hack to support consecutive calls of getoutput() on news pages,
ignoring the original placeholder in inserted block comments and resulting
<!--BLOCK:<!--BLOCK:[[nieuws]]-->-->… output.

5 months agoupload: describe size overflow errors
Mischa POSLAWSKY [Mon, 5 Nov 2018 01:16:35 +0000 (02:16 +0100)]
upload: describe size overflow errors

Help diagnose some problems, particularly with low server settings.
Unfortunately exceeding upload_max_filesize only causes empty files.

5 months agonieuws: ignore missing title during edit
Mischa POSLAWSKY [Tue, 20 Nov 2018 10:13:24 +0000 (11:13 +0100)]
nieuws: ignore missing title during edit

Silence fgets() warning for new articles since commit v3.7-8-gc2423a9cb3
(2018-10-27) [nieuws: prepend article header to page title].

5 months agonieuws: hide text after cover image in overviews
Mischa POSLAWSKY [Fri, 23 Nov 2018 15:28:15 +0000 (16:28 +0100)]
nieuws: hide text after cover image in overviews

Find standalone image at any position, and cut following contents in body.

5 months agonieuws: blockquote containers around replies
Mischa POSLAWSKY [Wed, 21 Nov 2018 08:47:21 +0000 (09:47 +0100)]
nieuws: blockquote containers around replies

Wrap multiple paragraphs and other elements such as lists.

5 months agonieuws: replies in html files
Mischa POSLAWSKY [Wed, 21 Nov 2018 08:45:00 +0000 (09:45 +0100)]
nieuws: replies in html files

Same results using comment form, but manually allows for rich contents.

6 months agologin: support eol in text configuration files
Mischa POSLAWSKY [Mon, 12 Nov 2018 20:03:27 +0000 (21:03 +0100)]
login: support eol in text configuration files

6 months agologin/emulate: describe requested user in page title
Mischa POSLAWSKY [Mon, 12 Nov 2018 19:25:33 +0000 (20:25 +0100)]
login/emulate: describe requested user in page title

6 months agologin/edit: generic setup of input attributes
Mischa POSLAWSKY [Thu, 8 Nov 2018 17:25:20 +0000 (18:25 +0100)]
login/edit: generic setup of input attributes

6 months agologin/edit: disable file uploads if unwritable
Mischa POSLAWSKY [Thu, 8 Nov 2018 17:18:42 +0000 (18:18 +0100)]
login/edit: disable file uploads if unwritable

Silence PHP warnings and avoid input since browsers ignore readonly
and current image is displayed regardless.

6 months agonieuws: retain image attributes in overview thumbs
Mischa POSLAWSKY [Thu, 8 Nov 2018 02:50:08 +0000 (03:50 +0100)]
nieuws: retain image attributes in overview thumbs

6 months agofoto: enlarge targeted image pid on load
Mischa POSLAWSKY [Wed, 7 Nov 2018 14:31:21 +0000 (15:31 +0100)]
foto: enlarge targeted image pid on load

Allow specific photos to be linked by photoswipe location hashes
in the form of #gid=1&pid=/data/original.jpg.

6 months agologin/pass: allow edits without existing setup
Mischa POSLAWSKY [Tue, 6 Nov 2018 11:32:18 +0000 (12:32 +0100)]
login/pass: allow edits without existing setup

Missing file is not writable, but can be created.
Fixes error trying to register new users.

6 months agologin/edit: define options for found tags
Mischa POSLAWSKY [Thu, 1 Nov 2018 02:15:01 +0000 (03:15 +0100)]
login/edit: define options for found tags

Saved values were ignored since commit v3.4-14-g970fb1d1b9 (2018-07-14)
[login/edit: generic multi-values declaration].

6 months agonieuws: ignore missing day in partial article dates
Mischa POSLAWSKY [Thu, 1 Nov 2018 01:15:03 +0000 (02:15 +0100)]
nieuws: ignore missing day in partial article dates

Excelsior feature broken in commit v2.6-9-g3da476bb04 (2018-06-08)
[nieuws: parse date using single regexp] causing mismatch and PHP warnings.

6 months agonieuws: prepend article header to page title
Mischa POSLAWSKY [Sat, 27 Oct 2018 15:38:52 +0000 (17:38 +0200)]
nieuws: prepend article header to page title

6 months agopage: track base head include
Mischa POSLAWSKY [Sat, 27 Oct 2018 15:43:16 +0000 (17:43 +0200)]
page: track base head include

Common parts of html headers, to be branded and customised per site.

6 months agoedit/page: ctrl+S shortkey to save
Mischa POSLAWSKY [Tue, 2 Oct 2018 18:58:19 +0000 (20:58 +0200)]
edit/page: ctrl+S shortkey to save

Expected feature from desktop editors.

6 months agosearch: distinct url suggestion results
Mischa POSLAWSKY [Fri, 26 Oct 2018 18:42:47 +0000 (20:42 +0200)]
search: distinct url suggestion results

Option to select either filename suggestion or contents matches,
displayed separately.

6 months agosearch: dedicated page with query form
Mischa POSLAWSKY [Tue, 23 Oct 2018 00:05:29 +0000 (02:05 +0200)]
search: dedicated page with query form

6 months agosearch: prepend fuzzy filename matches
Mischa POSLAWSKY [Tue, 16 Oct 2018 16:59:36 +0000 (18:59 +0200)]
search: prepend fuzzy filename matches

Prefer similar url over contents.

7 months agosearch: grep contents in repository for 404 suggestions
Mischa POSLAWSKY [Tue, 16 Oct 2018 16:48:07 +0000 (18:48 +0200)]
search: grep contents in repository for 404 suggestions

Report 10 random matches as minimal typo solver.

7 months agoedit: force error page for unknown requests
Mischa POSLAWSKY [Sat, 22 Sep 2018 22:54:51 +0000 (00:54 +0200)]
edit: force error page for unknown requests

Subdirectory should be used for scripting so avoid new page template,
always report a 404 text response to ensure fatal exceptions.

8 months agonieuws: hide empty tag lists v3.7
Mischa POSLAWSKY [Mon, 17 Sep 2018 15:44:45 +0000 (17:44 +0200)]
nieuws: hide empty tag lists

Useless indicator if not used.

8 months agonieuws: ignore missing image/contents of new articles
Mischa POSLAWSKY [Mon, 17 Sep 2018 15:43:01 +0000 (17:43 +0200)]
nieuws: ignore missing image/contents of new articles

Cover image feature was not tested on article creation, causing harmless but
alarming PHP errors.

8 months agonieuws: apply tag changes to article links in edit mode
Mischa POSLAWSKY [Mon, 17 Sep 2018 15:12:17 +0000 (17:12 +0200)]
nieuws: apply tag changes to article links in edit mode

8 months agonieuws: include admin edit javascript on subpages
Mischa POSLAWSKY [Mon, 17 Sep 2018 14:27:00 +0000 (16:27 +0200)]
nieuws: include admin edit javascript on subpages

8 months agonieuws: list tag options below articles for admins
Mischa POSLAWSKY [Mon, 17 Sep 2018 14:06:45 +0000 (16:06 +0200)]
nieuws: list tag options below articles for admins

8 months agonieuws: support tagged article links
Mischa POSLAWSKY [Mon, 3 Sep 2018 21:21:27 +0000 (23:21 +0200)]
nieuws: support tagged article links

8 months agonieuws: toc view option to show headlines in placeholder
Mischa POSLAWSKY [Mon, 3 Sep 2018 20:58:19 +0000 (22:58 +0200)]
nieuws: toc view option to show headlines in placeholder

Allows overview features to be specified by static templates,
so pages can be dynamically customised.

Track default html with all options enabled as before on melding.

8 months agonieuws: call placeholder for year lists
Mischa POSLAWSKY [Mon, 3 Sep 2018 20:25:22 +0000 (22:25 +0200)]
nieuws: call placeholder for year lists

8 months agonieuws/feed: atom content type and link attributes
Mischa POSLAWSKY [Mon, 3 Sep 2018 20:58:31 +0000 (22:58 +0200)]
nieuws/feed: atom content type and link attributes

8 months agopage: resolve include path for placeholder names
Mischa POSLAWSKY [Mon, 3 Sep 2018 19:40:36 +0000 (21:40 +0200)]
page: resolve include path for placeholder names

Support common files to be found without site symlinks.

8 months agopage: separate function to run placeholder includes
Mischa POSLAWSKY [Mon, 3 Sep 2018 19:38:07 +0000 (21:38 +0200)]
page: separate function to run placeholder includes

8 months agonieuws: placeholder include for user replies
Mischa POSLAWSKY [Mon, 3 Sep 2018 19:18:57 +0000 (21:18 +0200)]
nieuws: placeholder include for user replies

Same results from reusable nieuws/replies include.

8 months agonieuws: prepend link to feed
Mischa POSLAWSKY [Sun, 26 Aug 2018 00:04:19 +0000 (02:04 +0200)]
nieuws: prepend link to feed

8 months agonieuws: replace existing thumb prefix in cover images
Mischa POSLAWSKY [Sat, 25 Aug 2018 23:52:01 +0000 (01:52 +0200)]
nieuws: replace existing thumb prefix in cover images

Prevent duplicate resizing.

8 months agothumb: jpeg encoding regardless of original
Mischa POSLAWSKY [Thu, 23 Aug 2018 18:45:46 +0000 (20:45 +0200)]
thumb: jpeg encoding regardless of original

Disregard original file format after resizing, as it keeps lossless [png]
compression [size] and inconsistent results.

Unaltered request extension may not match, but should mostly display
correctly as browsers should prefer the correct content-type instead.

8 months agonieuws: cover images in article html
Mischa POSLAWSKY [Sat, 25 Aug 2018 23:30:17 +0000 (01:30 +0200)]
nieuws: cover images in article html

8 months agonieuws/feed: represent last update by publish date
Mischa POSLAWSKY [Sat, 25 Aug 2018 22:18:10 +0000 (00:18 +0200)]
nieuws/feed: represent last update by publish date

File modification time is affected by any write, not just significant
changes as the specs demand.  As some readers show only updated in
overviews, prefer the stable creation date for now, disregarding any
later edits.

8 months agonieuws/feed: atom export of articles
Mischa POSLAWSKY [Sat, 25 Aug 2018 21:51:17 +0000 (23:51 +0200)]
nieuws/feed: atom export of articles

8 months agonieuws: ArchiveArticle class to access news pages
Mischa POSLAWSKY [Sat, 25 Aug 2018 22:14:56 +0000 (00:14 +0200)]
nieuws: ArchiveArticle class to access news pages

Similar to User in auth.inc.php.

8 months agoedit/page: reposition table dimension fields in columns
Mischa POSLAWSKY [Sun, 19 Aug 2018 23:25:16 +0000 (01:25 +0200)]
edit/page: reposition table dimension fields in columns

Utilise empty width left by elements removed in the previous commit.

8 months agoedit/page: remove all styling attributes in table editor
Mischa POSLAWSKY [Sun, 19 Aug 2018 23:20:56 +0000 (01:20 +0200)]
edit/page: remove all styling attributes in table editor

Prevent accidental or misguided usage of deprecated HTML attributes
(width, height, border, cellspacing, cellpadding, align).

8 months agoedit/page: prevent hover title on ckeditor frame
Mischa POSLAWSKY [Tue, 14 Aug 2018 02:54:03 +0000 (04:54 +0200)]
edit/page: prevent hover title on ckeditor frame

8 months agoedit/page: disable tableselection plugin in ckeditor
Mischa POSLAWSKY [Sat, 4 Aug 2018 22:47:34 +0000 (00:47 +0200)]
edit/page: disable tableselection plugin in ckeditor

Stylistic improvement for rare table editing, but results in a separate
tableselection.css request in all cases.

8 months agoedit/page: enable styles selection of common classes
Mischa POSLAWSKY [Tue, 7 Aug 2018 21:08:14 +0000 (23:08 +0200)]
edit/page: enable styles selection of common classes

Currently the only viable way in ckeditor to use cumulative or inline
elements, notably: small, .right, .warn, aside.

9 months agonieuws: support truncated dates in replies
Mischa POSLAWSKY [Sun, 19 Aug 2018 14:34:46 +0000 (16:34 +0200)]
nieuws: support truncated dates in replies

9 months agopage: strip html suffix from symlink redirects
Mischa POSLAWSKY [Sun, 12 Aug 2018 16:00:53 +0000 (18:00 +0200)]
page: strip html suffix from symlink redirects

9 months agofoto: keep data subdirectory in thumb paths
Mischa POSLAWSKY [Tue, 14 Aug 2018 00:51:14 +0000 (02:51 +0200)]
foto: keep data subdirectory in thumb paths

Support non-numeric roots broken since commit v3.1-4-g1c59746cd8
(2018-06-16) [thumb: prefix data path only for numeric roots].

9 months agologin/emulate: request page as different user v3.6
Mischa POSLAWSKY [Thu, 9 Aug 2018 16:12:42 +0000 (18:12 +0200)]
login/emulate: request page as different user

Admin feature to download user-customised texts
(in particular the welcoming letter to be sent to everyone).

9 months agologin: strip logout parameter on form post
Mischa POSLAWSKY [Sat, 11 Aug 2018 07:44:40 +0000 (09:44 +0200)]
login: strip logout parameter on form post

Fix lingering request after relogin.

9 months agologin/edit: silence code warning on missing values
Mischa POSLAWSKY [Sat, 11 Aug 2018 07:43:10 +0000 (09:43 +0200)]
login/edit: silence code warning on missing values

Ignore empty email/name.

9 months agonieuws: include contact form at replyable overview
Mischa POSLAWSKY [Sat, 11 Aug 2018 03:56:26 +0000 (05:56 +0200)]
nieuws: include contact form at replyable overview

9 months agonieuws: user reply form on melding page
Mischa POSLAWSKY [Fri, 10 Aug 2018 19:40:45 +0000 (21:40 +0200)]
nieuws: user reply form on melding page

9 months agonieuws: generic date formatting function
Mischa POSLAWSKY [Fri, 10 Aug 2018 23:13:53 +0000 (01:13 +0200)]
nieuws: generic date formatting function

9 months agoedit/page: omit link target options except for _blank
Mischa POSLAWSKY [Fri, 10 Aug 2018 23:19:47 +0000 (01:19 +0200)]
edit/page: omit link target options except for _blank

Prevent user from selecting unwanted values.

9 months agoedit/page: hide type input on link dialog
Mischa POSLAWSKY [Thu, 9 Aug 2018 12:29:18 +0000 (14:29 +0200)]
edit/page: hide type input on link dialog

Improved implementation of commit v3.0-24-g48ed0c2512 (2018-06-16)
[edit: omit type input from link dialog] without breaking url saves.

9 months agonieuws: create new articles relative to page root
Mischa POSLAWSKY [Sun, 5 Aug 2018 00:28:01 +0000 (02:28 +0200)]
nieuws: create new articles relative to page root

Support different categories, assuming link is run from index.

9 months agopage: http redirect to html symlinks
Mischa POSLAWSKY [Tue, 31 Jul 2018 18:17:20 +0000 (20:17 +0200)]
page: http redirect to html symlinks

Feature to set up shorthands and replacements.

9 months agopage: predetermine static html include
Mischa POSLAWSKY [Tue, 31 Jul 2018 18:16:39 +0000 (20:16 +0200)]
page: predetermine static html include

9 months agologin/edit: column visibility option to restrict to admins
Mischa POSLAWSKY [Tue, 17 Jul 2018 20:11:22 +0000 (22:11 +0200)]
login/edit: column visibility option to restrict to admins

Read-only tags become invisible, and now configurable per site.

9 months agologin/edit: hide empty tags column (empty groups)
Mischa POSLAWSKY [Tue, 17 Jul 2018 20:08:43 +0000 (22:08 +0200)]
login/edit: hide empty tags column (empty groups)

9 months agocontact: fix login indicator, omit unresolved host names
Mischa POSLAWSKY [Tue, 7 Aug 2018 14:22:12 +0000 (16:22 +0200)]
contact: fix login indicator, omit unresolved host names

9 months agocontact: exceptional parsing and delivery for bbq
Mischa POSLAWSKY [Tue, 7 Aug 2018 14:09:16 +0000 (16:09 +0200)]
contact: exceptional parsing and delivery for bbq

9 months agonieuws: replace placeholders in article contents
Mischa POSLAWSKY [Tue, 7 Aug 2018 01:26:56 +0000 (03:26 +0200)]
nieuws: replace placeholders in article contents

Support contact form include.

9 months agocontact: ignore email validation for bbq form
Mischa POSLAWSKY [Tue, 7 Aug 2018 01:26:10 +0000 (03:26 +0200)]
contact: ignore email validation for bbq form

9 months agoedit/page: editor notification of save results
Mischa POSLAWSKY [Tue, 7 Aug 2018 01:43:58 +0000 (03:43 +0200)]
edit/page: editor notification of save results

Unobtrusive indication of success.

9 months agoedit/page: restore link widgets to fix relative locations
Mischa POSLAWSKY [Wed, 1 Aug 2018 21:03:57 +0000 (23:03 +0200)]
edit/page: restore link widgets to fix relative locations

Apparently hiding the link type causes internal references to be silently
rejected.

9 months agologin/members: order by full name
Mischa POSLAWSKY [Thu, 2 Aug 2018 03:41:25 +0000 (05:41 +0200)]
login/members: order by full name

Login may not match in which case visible results appear random.
Support sort by any ?order column, assuming anything besides seen date
is alphanumeric.

9 months agologin/name: placeholder script to address users
Mischa POSLAWSKY [Tue, 31 Jul 2018 03:36:16 +0000 (05:36 +0200)]
login/name: placeholder script to address users

Useful in email template.

9 months agonieuws: article lists in left layout with images
Mischa POSLAWSKY [Tue, 31 Jul 2018 22:41:05 +0000 (00:41 +0200)]
nieuws: article lists in left layout with images

9 months agonieuws: find article image to append on page
Mischa POSLAWSKY [Tue, 31 Jul 2018 22:36:57 +0000 (00:36 +0200)]
nieuws: find article image to append on page

9 months agonieuws: consistent url input to article parser
Mischa POSLAWSKY [Tue, 31 Jul 2018 21:39:26 +0000 (23:39 +0200)]
nieuws: consistent url input to article parser

Should be valid even if currently unused.

10 months agopage: do not redirect slash to directory requests
Mischa POSLAWSKY [Thu, 12 Jul 2018 19:54:42 +0000 (21:54 +0200)]
page: do not redirect slash to directory requests

Fix pathless requests to upcoming edit pages.

10 months agoedit: build rules for ckeditor
Mischa POSLAWSKY [Sat, 14 Jul 2018 14:05:02 +0000 (16:05 +0200)]
edit: build rules for ckeditor

Document installation with combined language include to minimise deferred
loads.  Local build is equivalent to online download.

10 months agoedit: restyle to upstream ckeditor configuration
Mischa POSLAWSKY [Sat, 14 Jul 2018 13:49:06 +0000 (15:49 +0200)]
edit: restyle to upstream ckeditor configuration

Same results but minimising differences from tracked v4.10.0.

10 months agoedit: track ckeditor configuration
Mischa POSLAWSKY [Fri, 13 Jul 2018 19:00:28 +0000 (21:00 +0200)]
edit: track ckeditor configuration

Generated by online CKEditor builder containing only used features.

10 months agoedit: move fotocover page to foto/ subdirectory
Mischa POSLAWSKY [Thu, 12 Jul 2018 19:42:30 +0000 (21:42 +0200)]
edit: move fotocover page to foto/ subdirectory

Share base path with upcoming related features.