Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[request] display author privileges?
I would like something that would display the author tag on published articles as something like “Tom Alday, Publisher” or “Tim Smith, Staff Writer”. Is such a plugin available?
Offline
Re: [request] display author privileges?
Insert this into article’s form:
<code><txp:author />, <txp:php>
$levels = array(
1 => ‘Publisher’,
2 => ‘Managing Editor’,
3 => ‘Copy Editor’,
4 => ‘Staff writer’,
5 => ‘Freelancer’,
6 => ‘Designer’,
0 => ‘None’
);
echo $levels[fetch(‘privs’,‘txp_users’,‘name’,$thisarticle[‘authorid’])];
</txp:php></code>
Plugin Composer — admin plugin to write your own plugins
Offline
Re: [request] display author privileges?
Thank you kindly, sorry for the late response.
Offline