PmWeekly, May 2017

June 10, 2017, at 03:00 PM by Petko in Core, Cookbook

Activity around PmWiki in May 2017, notably the new mobile-friendly core skin as discussed in April, discussions on the mailing list, discussions about and changes to Cookbook recipes.

Version 2.2.98 (2017-05-31) released: new responsive core skin

This version adds a new skin that is better adaptable to both large and small screens, desktop and mobile devices (touchscreens). The new skin "pmwiki-responsive" is not enabled by default but available as an option, and as a base for customized copies. It requires a relatively modern browser (post-2009). The old skin is still available and enabled by default.

The Vardoc links now use MakeLink() to allow a custom LinkPage function. The function ReplaceOnSave() was refactored to allow easier calling from recipes. Markup processing functions now can access besides $pagename, a $markupid variable that contains the "name" of the processed markup rule, allowing a single function to process multiple markup rules. The "*.mkv" video extension was added to the list of allowed uploads.

A bug was fixed with the (:markup:) output where a leading space was lost. Note that the "markup" frame is now wrapped in a <pre> block with a "pre-wrap" style instead of <code>.

A number of other (minor) bugs were fixed: see ChangeLog, and the documentation was updated.

Discussions about the PmWiki core

This thread started as a question about how to process two markup rules with the same text, but evolved into a discussion about the need to find a way to rewrite the markup engine for PHP 7.2.

This thread was about the new mobile-friendly skin, and the Mini gallery slideshows on mobile phones. Another thread about the new skin.

This thread is about the difficulty to apply a WikiStyle to a <video> tag.

This reply explains how to fix some warnings for the page Site.AuthUser in older versions of PmWiki.

This thread discusses automatic redirection of a wiki from the HTTP to the secure HTTPS protocol. Reply from Pm.

Cookbook (addons, modules, skins)

New recipes added:

  • VideoAttach (Handles Attach: videos, provides a video directive and optional support for popular Video Upload sites.) by ccox :\ Beta. Announcement.

Recipes updated:

  • Fox (Form processor to add, replace, copy, delete content plus upload files and send email notifications using templates and Input markup) by HansB :\ Major code update, which enables it to process multiple actions (like adding or replacing text, or updating PTVs), aimed at a single target page, in one go, loading and saving each page file just once, which will improve speed for multi-action and multi-page processing. Announcement.

  • FoxContacts (Create personal or business Contacts pages and lists with Fox) by HansB :\ Updated NewContacts form and ContactTemplates to work with latest fox.php (version 2017-05-20 or younger). Removed (:title ... :) from being added to new contact page, and allow updating the name fields.

  • Do the Right Thing (Link shortcuts to custom searches for your browser) by Petko :\ Update installation instructions for Chrome

  • Ape: Automagical PmWiki Embed (Embed videos, maps, documents, and more in wiki pages) by Petko :\ Add providers Google Docs and Google Forms to embed various office documents and survey forms.

Discussions:

  • Mini (Simple, lightweight, un-bloated gallery with thumbnail generator) by Petko :\ Discussion about picture size on mobile browsers. The discussion about Mini went offlist, but the conclusion was that "large" images appear small only when the skin is not mobile-friendly. See difference: friendly unfriendly (click on a thumbnail to view the full picture).

Leave a reply
Your name (required):

Your comment (required):


Enter value: Captcha

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=News%2fPmWeeklyMay2017
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=News%2fPmWeeklyMay2017
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/News/PmWeeklyMay2017
            [REDIRECT_SCRIPT_URL] => /wiki/News/PmWeeklyMay2017
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afMaNmAuKXn4en6HTC3VogAAARc
            [REDIRECT_URL] => /wiki/News/PmWeeklyMay2017
            [REMOTE_ADDR] => 216.73.216.25
            [REMOTE_PORT] => 58856
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/News/PmWeeklyMay2017
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/News/PmWeeklyMay2017
            [SCRIPT_URL] => /wiki/News/PmWeeklyMay2017
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afMaNmAuKXn4en6HTC3VogAAARc
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777539638.551
            [REQUEST_TIME] => 1777539638
            [argv] => Array
                (
                    [0] => n=News%2fPmWeeklyMay2017
                )

            [argc] => 1
        )

)