內容簡介
這個外掛的目的是通過一個不變的鏈接提供訪問新的有序內容的功能—即,它提供了每次單擊像 https://www.my-site.com/?get-next-article-in=set-name 這樣的鏈接時,將用戶帶到系列中的下一篇文章的能力。set-name 是一系列文章的名稱。(當用戶訪問一個集合中的最後一篇文章時,當他們再次單擊鏈接時,他們會返回到該集合中的第一篇文章。)如果緩存阻止了這個字符串(隨機,日期等等),可以將字符串加到 set-name 中的鏈接中,形式為 set-name: string,以避免緩存問題。
例如,可以使用此插件每天向用戶發送提醒電子郵件,包含 https://www.my-site.com/?get-next-article-in=set-name 鏈接,以將用戶帶到一系列課程中的下一課(或適合主題材料的任何頻率)。但是鏈接本身從未更改,每次單擊提醒郵件中的鏈接,用戶都會被帶到其上一次閱讀的課程之後的課程。
這是通過在用戶計算機上設置 cookie 實現的。 cookie 的值是系列中下一篇文章的 slug。因此,任何對 cookie 的限制都可能影響此外掛的功能。
版權所有 2020 M.D. Green,SaeSolved :: LLC
許可證
本程序是自由軟件; 您可以在 GNU 通用公共許可證的條款下重新分發和/或修改它,該許可證由自由軟件基金會發布; 或者是許可證的任何更新版本(在您選擇的情況下)。
該程序被分發在希望它將是有用的,但無任何保證的情況下。即使是對於特定目的的默示保證也不予承認。有關更多詳細信息,請參見 GNU 通用公共許可證。
外掛標籤
開發者團隊
原文外掛簡介
The purpose of this plugin is to provide access to new, ordered content using an unchanging link — i.e., it provides the ability to bring a user to the next article in a series each time they click on a link like https://www.my-site.com/?get-next-article-in=set-name. Set-name is the name of a series of articles. (When they have accessed the last article in a set, users are returned to the first article in the set when they click on the link again.) If caching blocks this a string (random, date, etc.) can be added to set-name in the link of the form set-name:string to avert caching.
This plugin can be used, e.g., to bring users to the next lesson in a set of lessons by sending them a reminder email containing the https://www.my-site.com/?get-next-article-in=set-name link each day (or with whatever frequency is appropriate to the subject material. The link never changes. Each time a person clicks on the link in their reminder email, however, they are taken to the lesson which follows the lesson they read last.
This is accomplished by setting a cookie on the user’s computer. The value of the cookie is the slug of the next article in the series. Any limitations on cookies can, therefore, impact the functioning of this plugin.
Copyright 2020 M.D. Green, SaeSolved:: LLC
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
