[pmwiki-users] Author Setting

Patrick R. Michaud pmichaud at pobox.com
Fri Dec 16 04:02:47 CST 2005


On Fri, Dec 16, 2005 at 09:36:51AM +0000, Alan Perryman wrote:
> (psudocode)
> 
> if(logged in == true)
> Author = Logged In User Name
> else
> reject edit ()

Try (assuming you're using authuser):

   # ... settings here
   include_once('scripts/authuser.php');

   if (@$AuthId) $Author = $AuthId;
   else { 
     $EnablePost = 0;
     $MessagesFmt[] = "Posting not allowed w/o login";
   }

Pm




More information about the pmwiki-users mailing list