Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
jmd_author
This plugin provides access to an author’s username and email address. It can also modify the output of an author’s name with case and/or separators.
Last edited by jm (2009-05-03 01:33:14)
Offline
Re: jmd_author
0.2 is up. real_name
and email
were removed in favor of display="name||email||username"
.
Offline
#3 2009-04-26 10:21:46
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: jmd_author
Just maintained my installs and noticed the update.
I want to say:
Thanks for that plugin!, it’s working for a year now together with rvm_privileged to provide “edit”-links for logged in authors on the public-side (first together with asy_wondertags – now with core nested tags).
<txp:rvm_if_privileged name='<txp:jmd_author />'> <a href="/textpattern/index.php?event=article&step=edit&ID=<txp:article_id />
" class="editlink" >Edit</a></txp:rvm_if_privileged>
Last edited by saccade (2009-04-26 10:28:13)
Offline
Offline
Re: jmd_author
I too use this plugin; it fills a missing gap in the core tag set, and it’s fab.
One thing that would make it fabber — I’ve modded my copy to do this — would be the ability to specify the username so the returned author info is not restricted to being the current article’s author. For example, in smd_gallery:
<txp:smd_gallery category="photos">
<a rel="lightbox-{category}" href="{url}" title="{caption} by <txp:jmd_author user='{author}' display='name' />">
<txp:thumbnail id="{id}" />
</a>
</txp:smd_gallery>
would allow me to show the real name of the author who uploaded each photo. Useful for multi-author gallery sites and, of course, the same idea can be applied to file downloads.
Thanks for a very simple yet incredibly useful plugin, jm.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: jmd_author
Good idea, Stef. 0.3 is now up. Thanks for the feedback too.
Edit: Forgot to add, the new attr is username
.
Last edited by jm (2009-05-03 22:54:14)
Offline
Pages: 1