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

Al Louis Ripskis ripskis at sprynet.com
Fri Apr 1 18:05:55 CDT 2011

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.

More information about the pmwiki-users mailing list