Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
rvm_privileged v0.4
Several tags that enable you to make use of the fact that a visitor is logged in on the admin side of Textpattern.
NOTE: Requires TXP 4.0.6 or higher.
Features:
- tag:
<txp:rvm_privileged />
returns HTTP 403 error to visitors that are not logged in on the admin side. Users logged in on the TXP admin side with customizable error template. - tag:
<txp:rvm_if_privileged />
lets you show parts of a page only to visitors that are logged in on the TXP admin side. - Both tags can be set to only allow specific users or privilege levels.
- tag:
<txp:rvm_privileged_user />
shows information about the logged TXP user that is visiting the website. - Very small (less than 1300 bytes of PHP code)
- Detailed documentation in the plugin help.
Changelog:
- version 0.1 (2007-12-18)
- version 0.2 (2008-02-06)
- parse contents of rvm_if_privileged container (thanks typeshige)
- version 0.3 (2008-03-23)
- use OR logic (as stated in documentation) when both level and name attributes are set (thanks Bloke/Stef)
- version 0.4 (2009-07-27)
- replaced escape_output with htmlspecialchars (required for TXP versions after 4.0.8)
Last edited by ruud (2009-07-27 13:20:49)
Offline
Re: rvm_privileged v0.4
i generally don’t like running svns..i’m sure this won’t be answered readily but any estimate on when 4.0.6 would be available? i see some admin themes and such saying they need 4.0.6 which is kind of odd.
Offline
Re: rvm_privileged v0.4
sounds great, but i guess i have to wait for 4.0.6 then… (i’m with steve regarding svns)
Offline
Re: rvm_privileged v0.4
I put the plugin online, because I’m hoping we can do a release before new year. For further discussion about the 4.0.6 release date, please open a new topic so we keep this one for discussing the plugin ;)
Offline
Re: rvm_privileged v0.4
an estimate before the new year is good enough for me! this plugin does sound very handy though. can’t wait to try it out.
Offline
Re: rvm_privileged v0.4
What i’m really suffer without – it’s online plugin help. Every time i want to get closer – i need to install. It’s not very difficultm but it’s easier to look for separate online help.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: rvm_privileged v0.4
May I suggest to have a gTxt()ed version of this part in rvm_privileged_user
, too?
case 'privilege': $out = $levels[$ili['privs']]; break;
Offline
Re: rvm_privileged v0.4
wet, I’ve tried that, but those language strings are not available on the public side…
the_ghost, you can find online help for all plugins I maintain on my website
Offline
Re: rvm_privileged v0.4
Hey, this plugin is cool, kind of missed this functionality when I moved to TxP from Nucleus.
Now we can show an edit button next to a story, if we are so privileged, for easy access to the write tab:
/textpattern/index.php?event=article&step=edit&ID=37
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: rvm_privileged v0.4
hcgtv wrote:
Hey, this plugin is cool, kind of missed this functionality when I moved to TxP from Nucleus.
Now we can show an edit button next to a story, if we are so privileged, for easy access to the write tab:
/textpattern/index.php?event=article&step=edit&ID=37
rss_article_edit has provided similar functionality for a while.
Offline
Re: rvm_privileged v0.4
Manfre wrote:
rss_article_edit has provided similar functionality for a while.
True, but ruud’s plugin doesn’t require another cookie to be set.
Now, I could use Rob’s plugin to get ideas of how to implement what I desire in an edit button.
Thanks for the heads up, so many plugins you lose track of them.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Offline