Well, i plan to add a “restriction” to replace on certain post IDs (entered as comma-separated list)… so now you can do this on _links_ individually…
For example, write
<a href="..." class="forregistered">Link for registered</a>
if you wish this link to be accessible by registered users only.
Then add re.place entry let’s say like this:
Search pattern:
(<a [^>]* class="forregistered"[^>]*>([^<]*)<\/a>)
Replace pattern:
\1
Restriction: for authenticated users
Otherwise use:
\2
This will replace links with link text for guests; so <a href="...">Test it</a>
will become Test it
.
In “Otherwise” field you can write smth like this:
<span class="forguests" title="For registered users only">\2</span>
… or:
<a href="/your/registration/url?redirect_to=\2">\2</a>
In above — you can change search pattern to have an original link URL as an \<digit> for reference.
Also, a “tag” for links to be replaced must not be class="smth"
, you can use other “tags”.
Well, i know, this a bit ugly if you need to do this on some posts basic, with no manual intervention like class=”smth” or the like… Hope i’ll add this possibility later.
Now i’m figuring out how to change GUI to make it convenient if filled with this and possible other features.