Textpattern Forum

You are not logged in. Register | Login | Help

#1 2007-12-18 22:09:40

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,492
Website

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.

Download

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

#2 2007-12-18 22:12:53

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

#3 2007-12-18 22:24:45

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

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

#4 2007-12-18 22:32:52

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,492
Website

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

#5 2007-12-18 22:35:41

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

#6 2007-12-19 00:21:44

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#7 2007-12-19 05:56:17

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,091
Website

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;

Online

#8 2007-12-19 12:08:36

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,492
Website

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

#9 2007-12-19 14:35:46

hcgtv
Member
From: Charlotte, NC
Registered: 2005-11-29
Posts: 2,154
Website

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

txp:tag – Textpattern Tags ~ TxPlanet – Textpattern Planet

Offline

#10 2007-12-20 02:01:09

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

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

Board footer

Powered by FluxBB