[pmwiki-users] AuthUser (was UserAuth) (Susan)

The Editor editor at fast.st
Thu Mar 2 16:38:15 CST 2006

Susan, I'm trying to get my login page working also.  Your script
helped, but I'd like to put some kind of box around it for styling,

%block bgcolor=#f0f9ff border='1px solid gray' padding=5px%[@
Login code...

But of course when I do this, the code shows up as text, and won't
work...  Any suggestions?

I'm having the same sort of trouble with the #nobold# suggestion.  I put
.nobold a { font-weight:normal; } in my skin.css and then tried this in a page:

#nobold#  (:pagelist  various attributes...:)  with no effect.  I also
tried putting it in a pagelist template.  Nothing seems to work.

I think I'm a bit confused as to when to use the various levels of
codes. Sometimes in the docs it talks about some kind of code, but
it's not always clear whether it goes in a page, a stylesheet, a
script, an attribute, within some kind of markup, a template, etc. 
Perhaps someone could produce an overview of the most likely place to
put a piece of code based on what it looks like. Or what the rules
are. It might help those just starting out in PmWiki.

Thanks for all the help so far, and for the great software.


Message: 9
Date: Thu, 02 Mar 2006 16:22:39 -0500
From: Susan <pmwiki at onebit.ca>
Subject: [pmwiki-users] AuthUser (was UserAuth)
To: pmwiki-users at pmichaud.com
Message-ID: <du7nn0$ir7$1 at sea.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I don't know about skins that do it, but it's easy enough to add to the
wiki-text in the sidebar (or anywhere else), so it shows up in any skin:

(:if !authid:)
(:if authid:)
!User: {$Author}
(:if auth edit:)
(:if auth admin:)
[[{$FullName}?action=attr|Page Password]]\\
[[Site.Admin|Site Admin]]\\

In plainer English:
If not logged in, display link to login page
If logged in, display "User:Name" and give link to logout
If logged in and have edit authority for the page, give link to edit
If logged in and have admin authority for the page, give links to edit
access for page and to the Site.Admin page

I'm still not sure what to do about people logging in with password but
no name (a carry-over from when I used the standard install.)

If you want to get to the login/logout commands and don't see a link,
just add ?action=login  or  ?action=logout  after any page name in the
URL. (Check out Available Actions in the documentation for all sorts of
nifty things you can do that way.)


More information about the pmwiki-users mailing list