[pmwiki-users] Repsonse to wikcal/pmcal broken links

Rene Visco rvisco at csdr-cde.ca.gov
Mon Sep 12 16:52:07 CDT 2005


Is it in pmcal.php or config.php?  I added the code on the top of 
pmcal.php and it created a warning that it doesn't work.

Where should i insert this code in?

Rene V.

On Sep 12, 2005, at 2:45 PM, John Rankin wrote:

> // Allow page names to be all numerics.
> $CalendarPattern = "[0-9]{8}";
> $WikiDateCreateFmt =
>       "<a class='nonexistent-date' 
> href='\$PageUrl?action=edit'>\$LinkText</a>";
>
> ## process date links
> Markup('datelink','>inline',
>     "/\[\[($GroupPattern(?:[\/.])$CalendarPattern)\|(.*?)\]\]/e",
>     "Keep(MakeDateLink(\$pagename,'$1','$2'),'L')");
>
> function MakeDateLink($pagename,$ref,$btext) {
> 	global $LinkPageCreateFmt,$WikiDateCreateFmt,$day_as_wiki;
> 	if ($day_as_wiki==true)
> 		return MakeLink($pagename,$ref,$btext);
> 	$hold = $LinkPageCreateFmt;
> 	$LinkPageCreateFmt = $WikiDateCreateFmt;
> 	$r = MakeLink($pagename,$ref,$btext);
> 	$LinkPageCreateFmt = $hold;
> 	return $r;
> }





More information about the pmwiki-users mailing list