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

Brian Tibbels brian.tibbels at clickmarlow.co.uk
Sat Apr 2 06:12:51 CDT 2011


I use this to completely hide the Site.PageActions for a single login site
(:if auth admin:)
* [[Page.Target1 | Label1 ]]
* [[Page.Target2 | Label2 ]]
(:ifend:)

You might want to use
(:if authid:)
* [[Page.Target1 | Label1 ]]
* [[Page.Target2 | Label2 ]]
(:else:)
* Label1
* Label2
(:ifend:)

but you will need AuthUser recipe loaded.

Rgds
Brian









On 2 April 2011 08:14, Hans <design5 at softflow.co.uk> wrote:

> Saturday, April 2, 2011, 12:05:55 AM, Al Louis Ripskis wrote:
>
> > 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.
>
> $DefaultPasswords['read'] = 'id:*';
>
> and set a read password on the Homepage as '@nopass'
> (without quotes).
>
> That leaves the home page open for public access,
> and requires login for all other pages.
>
> It may make the side bar disappear till you are logged in.
> So your registration info needs to go into the home page content.
>
>
>  ~Hans
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
Brian Tibbels
IT support for small business and the individual
http://clickmarlow.co.uk/
m: 07804 109906
t: 01628 477640
skype: brian.tibbels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110402/29124167/attachment.html>


More information about the pmwiki-users mailing list