[pmwiki-users] List the editors of a page

Nicolas Poulain nico.poulain at gmail.com
Thu Oct 9 04:26:35 CDT 2008


Eemeli Aro a écrit :
> 2008/10/8 Nicolas Poulain <nico.poulain at gmail.com>:
>   
>> I'm looking for a way to list the people who have modified a page.
>>     
>
> Try adding this to your config file:
>
>
> function ContribList( $pagename, $level='read' ) {
>   $page = RetrieveAuthPage( $pagename, $level, FALSE );
>   $a = array();
>   foreach ( $page as $k => $v ) if (!strncmp($k,'author:',7)) $a[] = $v;
>   return implode(', ',array_unique($a));
> }
> $FmtPV['$Contributors'] = 'ContribList("$group.$name")';
>   

  It works fine. I just just modified to link to the Profile specific
pages :
foreach ( $page as $k => $v ) if (!strncmp($k,'author:',7)) $a[] =
'[[~'.$v.']]';

  Thank you very much

-- 
Nicolas Poulain
http://exomatik.net/




More information about the pmwiki-users mailing list