[pmwiki-users] Require: Permanent page creator name [Calling Pm, Please advise]

imoc blog.oc at gmail.com
Fri Feb 1 08:25:31 CST 2008

   2008/2/1, Hans <design5 at softflow.co.uk>:

   Well, not quite :-(

   The functions pulls the last author name from the page's diff history.
   This is usually the first auther = page creator.
   But if you delete part of the history with ExpireDiff or by setting
   $DiffKeepDays to a short time period, the last author in th ehistory
   changes, and so does the $Creator page variable.

   Thank you Anke for pointing this out!

   What we really need is a Creator page attribute, written into the page  
   when the page is created, and set to the author, alongside the
   existing one for creation time 'ctime'.
   I suggest 'cauthor'.

   It needs a change of code in pmwiki.php in function ReadPage:
   add $Author to the global list of that function, and
   change line
    if (@!$page) $page['ctime'] = $Now;
    if (@!$page) { $page['ctime'] = $Now; $page['cauthor'] = $Author; }

   Maybe Pm can be persuaded to do this core change.
   Then we can have a true {$Creator} or {$PageCreatedBy} page variable.

Thanks for thinking this seriously, Hans.  

Since Hans was baned by gmane( his post can not show here in gmane.org)
So I think I've to invite Pm to advise us what he think about this 
issue. I write some word in title. Wish Pm could see it.


More information about the pmwiki-users mailing list