[pmwiki-users] Making homepage links inoperative until newcomers register first
Al Louis Ripskis
ripskis at sprynet.com
Sat Apr 2 15:57:56 CDT 2011
I get a very truncated homepage, without the side bar or any of the links, after I did what you instructed: i.e. inserted $DefaultPasswords['read'] = 'id:*' in my config.php file;
and went to Site.GroupAttributes?action=attr and set @nopass as a 'read' attribute.
You can go to my site in progress at www.politicaltransformation.org, to see exactly what I mean.
As evidence that I did the above correctly I copied:
Enter new attributes for this page below. Leaving a field blank will leave the attribute unchanged. To clear an attribute, enter 'clear'.
Set new read password: @nopass
Set new edit password: (set by site) ****
Set new attribute password: (using edit password)
Set new upload password: (set by site) id:*
Top entries from the config.php file:
$EnableUpload = 1;
#$DefaultPasswords['upload'] = array('id:*');
#$DefaultPasswords['read'] = '@nopass';
$DefaultPasswords['read'] = 'id:*';
$UploadPrefixFmt = '';
## Unicode (UTF-8) allows the display of all languages and all alphabets.
Any other suggestions?
>From: Hans <design5 at softflow.co.uk>
>Sent: Apr 2, 2011 12:31 PM
>To: Al Louis Ripskis <ripskis at sprynet.com>
>Cc: pmwiki-users at pmichaud.com
>Subject: Re: [pmwiki-users] Making homepage links inoperative until newcomers register first
>Saturday, April 2, 2011, 5:16:11 PM, Hans wrote:
>> There is bigger problem with setting a default read password in
>> config.php and setting @nopass for read attribute in Main.HomePage:
>> Main.HomePage will not display an SideBar content, nor any PageHeader
>> or footer or any of the action menus. It looks a bit stripped.
>> None of the sub-pages get loaded.
>To get those pages to display, which are part of the page structure
>(and therefore I called them sub-pages) you need to do one additional
>Go to Site.GroupAttributes?action=attr
>and set @nopass as a 'read' attribute.
>Now all pages in the Site group can be read, and theefore they
>display just fine in Main.HomePage.
>It should not be a security risk to have read access to the Site group
>pages. The pages which may need protection fro public view are in
>the SiteAdmin group.
>Sorry if this seems a rather complex setup for your situation.
>But I think you get exactly what you want.
>The links in the SideBar which you like any site visitor to see
>are active, but when clicking any, the visitor will get directed to
>the page and will be prompted for name and password, because the
>visitor has not logged in (not registered).
More information about the pmwiki-users