Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-15 03:33:14

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

[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

#2 2006-04-15 09:19:41

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

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

#3 2006-04-22 23:56:06

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

Re: [request] display author privileges?

Thank you kindly, sorry for the late response.

Offline

Board footer

Powered by FluxBB