Warning: Undefined array key "pmwiki" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 14

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 14

Warning: Undefined array key "pagename" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 225

Warning: Undefined array key "pagename" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 253
FriendlyAuthorLinks - Cookbook - PmWiki

Friendly Author Links

Summary: Displays author page titles as link text for all automatic author links.
Version: 2017-12-28
Prerequisites: None
Status: Needs review
Maintainer: wizzwizz4
License: GNU GPL 3+
Categories: Links Markup
Users: (view / edit)

Questions answered by this recipe

Description

Displays author page titles as link text for all automatic author links.

Installation

Add FriendlyAuthorLinks.php to your installation (as cookbook/FriendlyAuthorLinks.php) then add the following to your config.php:

include_once("$FarmD/cookbook/FriendlyAuthorLinks.php");

If you want a one-to-one correspondence between credentials and author names (usually for accountability or authorship rights):

Configuration

You can change $CurrentTime or TimeFmt if you like, but make sure to do so before including this recipe. Note: this only affects ~~~~.

Usage

Just use as normal. The following are transparently changed:

Notes

PHP doesn't support namespaces, so I assumed that nobody else would use variables starting with $FriendlyAuthorLinks. If my assumption is incorrect... there still probably won't be problems. I've been over-cautious because I don't want to break anything.

To do

Change log / Release notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

Contributors

wizzwizz4 wrote most of it, but a substantial amount of that is boilerplate.
The signature functionality (~~~ and ~~~~) is derived from Pm's author.php.

Comments

See discussion at FriendlyAuthorLinks-Talk

User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.