Skip to content

Commit

Permalink
Update changelog and add supporting paraphernalia
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloke committed May 25, 2020
1 parent 3d9c209 commit 3ef567e
Show file tree
Hide file tree
Showing 7 changed files with 569 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
Icon?
ehthumbs.db
Thumbs.db
*~
*~
zem_tpl.php
56 changes: 56 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
h1. Changelog

h2. 0.5.0 - 2020-05-25

* Use Txp 4.7.0-style language identifiers.
* Add class @txp-form-field@ to wrapping divs for all bio fields in admin (thanks, johnstephens).
* Fix classnames and scope (thanks, philwareham and phiw13).
* Fix SQL errors when creating columns.
* Fix MySQL restrictions on DEFAULT column types.
* Alter default column types for most columns. Text-based columns are way too big and result in performance issues as they cannot be cached.
* Register tags.
* Layout fix for 'More' widgets.
* Use @getThings()@ instead of @safe_field()@ to avoid triggering a bug (thanks, makss).

h2. 0.4.1 | 2014-10-23

* Fixed array-to-string conversion in JavaScript comment (thanks, aslsw66)

h2. 0.4.0 | 2013-02-25

* Improve performance and reduced server load by up to 90% (thanks, jakob).
* Plugin lifecycle aware.
* Permit configurable database column types/sizes and international characters.
* Removed base64 css.
* Add @<txp:smd_bio_author />@, @<txp:smd_bio_data />@, @<txp:smd_bio_iterate />@, @<txp:smd_if_bio />@, @<txp:smd_if_bio_first_author />@ and @<txp:smd_if_bio_last_author />@ tags.
* Add @show_empty@ attribute;.
* Deprecate @author@, @items@ (now @fields@), @labelclass@, @itemwraptag@ (now @break@) and @itemclass@ (now @breakclass@) attributes.
* Alter replacement key names.
* Fixe and improve hover tooltips on Admin->Users tab.
* Increase default varchar size to 255 (thanks, hablablow).
* Add multi-select lists and permitted checkboxes to be marked as default.
* Add more field types for HTML 5 UI elements.
* Enable @SMD_BIO_FN|function|param|param|...@ support when defining fields to call arbitrary functions.
* Experimental support for item="widget" to display an input control for the given field.

h2. 0.3.1 | 2010-06-08

* JavaScript only appears on admin tab (thanks, redbot/Gocom).

h2. 0.3.0 | 2009-08-31

* Remove @item@ attribute.
* Fix warning message if using single items.
* Hidden pref @smd_bio_sanitize_name@ forces sanitized login names.

h2. 0.2.0 | 2009-08-21

* First public release.
* Fix no image/thumb output.
* Remove experimental @options@ attribute.
* Container/form accepts Txp tags.
* Fix textbox size limit (thanks, MattD).

h2. 0.1.0 | 2009-07-14

* Initial (non-public) release
4 changes: 0 additions & 4 deletions README.md

This file was deleted.

476 changes: 476 additions & 0 deletions README.textile

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "bloke/smd_bio",
"description": "Customisable user biographies / profiles within Textpattern CMS",
"keywords": ["textpattern", "plugin", "users", "biography", "bio", "profile", "custom fields"],
"homepage": "https://github.com/bloke/smd_bio",
"license": "GPL-2.0",
"type": "textpattern-plugin",
"support": {
"issues": "https://github.com/bloke/smd_bio/issues",
"source": "https://github.com/bloke/smd_bio"
},
"require": {
"textpattern/lock": ">=4.7.0",
"textpattern/installer": "*"
}
}
11 changes: 11 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "smd_bio",
"description": "Customisable user biographies / profiles info within Textpattern CMS",
"version": "0.5.0",
"type": 5,
"author": "Stef Dawson",
"author_uri": "https://stefdawson.com/",
"order": 5,
"flags": 2,
"help": {"file" : ["./README.textile"]}
}
24 changes: 8 additions & 16 deletions smd_bio.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
$plugin['version'] = '0.5.0';
$plugin['author'] = 'Stef Dawson';
$plugin['author_uri'] = 'https://stefdawson.com/';
$plugin['description'] = 'Customisable user biographies / profile info.';
$plugin['description'] = 'Customisable user biographies / profiles.';

// Plugin load order:
// The default value of 5 would fit most plugins, while for instance comment
Expand Down Expand Up @@ -2356,7 +2356,7 @@ function smd_bio_articles($atts, $thing = null) {

h2. Installation / Uninstallation

p(important). Requires Textpattern 4.5+
p(important). Requires Textpattern 4.7+

Download the plugin from either "textpattern.org":https://textpattern.org/plugins/1116/smd_bio, or the "software page":https://stefdawson.com/sw, paste the code into the Textpattern _Admin->Plugins_ pane, install and enable the plugin. The plugin's tables will be installed automatically. Visit the "forum thread":https://forum.textpattern.com/viewtopic.php?id=31496 for more info or to report on the success or otherwise of the plugin.

Expand Down Expand Up @@ -2407,22 +2407,22 @@ function smd_bio_articles($atts, $thing = null) {

There are a few of ways to define your own names and/or labels for use in select lists, radio sets and checkbox groups:

bc(block). label_1
bc. label_1
label_2
label_3
...

or

bc(block). label_1, label_2, label_3, ...
bc. label_1, label_2, label_3, ...

or

bc(block). name_1 => label_1, name_2 => label_2, name_3...
bc. name_1 => label_1, name_2 => label_2, name_3...

(you may also put each name-label pair on a separate line if you wish). Here's an example for a dropdown list of Departments:

bc(block). sales => Sales
bc. sales => Sales
mktg => Marketing
eng => Engineering
qual => Quality assurance
Expand All @@ -2432,7 +2432,7 @@ function smd_bio_articles($atts, $thing = null) {

If, however, you omit the field names, viz:

bc(block). Sales
bc. Sales
Marketing
Engineering
Quality assurance
Expand All @@ -2442,7 +2442,7 @@ function smd_bio_articles($atts, $thing = null) {

For multiple select lists and checkbox groups you can optionally define some of the entries as defaults. For example in your @subscriptions@ checkbox group:

bc(block). Kerrang
bc. Kerrang
Future Music[*]
NME
Sound on Sound[*]
Expand Down Expand Up @@ -2818,14 +2818,6 @@ function smd_bio_articles($atts, $thing = null) {

"Stef Dawson":https://stefdawson.com/contact. The plugin is a logical extension of pvc_users_info by Peter V. Cook (the smd_bio_articles tag is essentially the same as pvc_author_articles). Thanks also to pieman for setting the wheels in motion and net-carver for his inimitable knack of making things better.

h2. Changelog

* 23 Oct 2014 | 0.41 | Fixed array-to-string conversion in javascript comment (thanks aslsw66)
* 25 Feb 2013 | 0.40 | Improved performance and reduced server load by up to 90% (thanks jakob); plugin lifecycle aware; permitted configurable database column types/sizes and international characters; removed base64 css; added smd_bio_author, smd_bio_data, smd_bio_iterate, smd_if_bio, smd_if_bio_first_author and smd_if_bio_last_author tags; added @show_empty@ attribute; deprecated @author@, @items@ (now @fields@), @labelclass@, @itemwraptag@ (now @break@) and @itemclass@ (now @breakclass@); altered replacement key names; fixed and improved hover tooltips on _Admin->Users_ tab; increased default varchar size to 255 (thanks hablablow); added multi-select lists and permitted checkboxes to be marked as default; added more field types for HTML 5 widgets; enabled @SMD_BIO_FN|function|param|param|...@ support when defining fields to call arbitrary functions; experimental support for item="widget" to display an input control for the given field
* 08 Jun 2010 | 0.31 | Javascript only appears on admin tab (thanks redbot/Gocom)
* 31 Aug 2009 | 0.30 | Removed @item@ attribute; fixed warning message if using single items; hidden pref @smd_bio_sanitize_name@ forces sanitized login names
* 21 Aug 2009 | 0.20 | First public release; no image/thumb output; experimental @options@ attribute removed; container/form accepts Txp tags; fixed textbox size limit (thanks MattD)
* 14 Jul 2009 | 0.10 | Initial (non-public) release
# --- END PLUGIN HELP ---
-->
<?php
Expand Down

0 comments on commit 3ef567e

Please sign in to comment.