[pmwiki-users] How to remove a colon after user login?

Petko Yotov 5ko at 5ko.fr
Mon May 19 06:54:21 CDT 2008


Anton Shevtsov wrote:
> I modify scripts/author.php
> 
> *Before*
> Markup('[[~','<links','/\\[\\[~(.*?)\\]\\]/',"[[$AuthorGroup/$1]]");
> 
> *After*
> Markup('[[~','<links','/\\[\\[~(.*?)\\]\\]/',"[[$AuthorGroup/$1]] <a
> href='#' onclick='javascript:window.open(\"/
> ldapinfo.php?$1\", \"newwin\", \"height=200,width=400\");'><img
> src='/img/i.gif' border=0 align='absmiddle'></a>&
> nbsp;");

You should never modify files in script/ directory, neither pmwiki.php, 
or it will be difficult to upgrade. You could instead just place your 
code in your local/config.php (before including authuser).


> 
> How to remove a colon after user login?
> 
> screenshot:
> http://uploads.screenshot-program.com/my.php?image=upl8759639072.png (8Kb)
> 

This colon is because some people add an "edit summary" when they modify 
a page, and this summary is shown after the colon.

If you really want to remove the colons, set in config.php:

$RecentChangesFmt = array(
   '$SiteGroup.AllRecentChanges' =>
     '* [[{$Group}.{$Name}]]  . . . $CurrentTime $[by] $AuthorLink 
[=$ChangeSummary=]',
   '$Group.RecentChanges' =>
     '* [[{$Group}/{$Name}]]  . . . $CurrentTime $[by] $AuthorLink 
[=$ChangeSummary=]');

Note that there are two whitespaces after the "]]".

Thanks,
Petko



More information about the pmwiki-users mailing list