[pmwiki-users] Making homepage links inoperative until newcomers register first

Vince Administration vadmin at math.uconn.edu
Fri Apr 1 21:07:07 CDT 2011


On Apr 1, 2011, at 7:05 PM, Al Louis Ripskis wrote:

> Guys,
> How do I make the links in my homepage left sidebar, inoperative to readers who have not yet registered?
> I’m using Hans’ Triad skin with the PmWiki I’m constructing. At the bottom of the homepage I’ve inserted this statement and code:
> '''If, after you read the above " Introduction" you would like to get (read- and upload) access to the links listed in the left sidebar, you will need to register first by clicking on [[{$FullName}?action=user/new]]'''  
> 
> But how do I enforce this? i.e. what code do I insert and where to make it so that people who come to my homepage for the first time and want access to the sidebar’s links won’t be able to get where those links lead to, until they register first?
> 
> This doesn’t work:
> # require valid login before viewing pages
>   $DefaultPasswords['read'] = 'id:*';
> Because this code  requires a login before the newcomers can even get to the homepage.
> I would like the newcomers to be able to read the homepage, see the links, which hopefully would intrigued and motivate them to register, giving their real names and emails.
> Thanks,
> Al     
> 
If you really want to show what they are missing, how about just duplicating the links:

(:if auth something :) 
Links for logged in users
(:else:)
advertising for others, with no link.
(:ifend:)

    Vince





More information about the pmwiki-users mailing list