[Pmwiki-users] Re: custom wikistyle -- help?

Bronwyn Boltwood arndis at gmail.com
Mon Jan 24 12:42:27 CST 2005


On Mon, 24 Jan 2005 12:27:26 -0600, Patrick R. Michaud
<pmichaud at pobox.com> wrote:
> On Mon, Jan 24, 2005 at 01:19:16PM -0500, Bronwyn Boltwood wrote:
> > It took me some time to figure out that text after the ?> probably
> > weren't getting interpreted.  Now that I've debugged the titleof
> > breakage, the rule is enabled again, and my custom wikistyle gets
> > handled properly.
> 
> It's almost certainly a problem of a missing/misplaced doublequote  (")
> somewhere in the code prior to this statement.  If you look carefully
> at the lines

Here's the full text of the farmconfig.php file in question:

<?php
## Sets pub dir for entire farm -- keep skins available to all here
$FarmPubDirUrl = 'http://localhost/pmwiki/v1tov2/wikifarm/pub';
#
## Change to US Eastern timezone
putenv("TZ=EST5EDT");
#
## Enables URLs like http://example.com/pmwiki.php/Group/PageName.
## Otherwise, you get http://example.com/pmwiki.php?p=Group.PageName
## See also http://www.pmwiki.org/wiki/Cookbook/CleanUrls
$EnablePathInfo = 1;
#
## Turns on ?action=diag and ?action=phpinfo for troubleshooting
$EnableDiag = 1;
#
## Enables ?action=refcount. See PmWiki.RefCount on using it to find missing
## or orphaned pages.
if ($action == 'refcount') include_once("$FarmD/scripts/refcount.php");
#
## Enables ?action=rss and ?action=rdf to provide RSS feeds for a site, based
## on WikiTrails.  See PmWiki.RSS.
if ($action == 'rss' || $action == 'rdf')
include_once("$FarmD/scripts/rss.php");
#
## Enables skinchange script and sets list of available skins.  Point to either
## skin dir or .tmpl file, but don't forget the commas!
$PageSkinList = array(
	'pmwiki' => 'pmwiki',
	'jh' => 'jhskin'
	);
@include_once("$FarmD/cookbook/skinchange.php");
#
## [[text > target]] KEEP BEFORE titleof.php!
## based on [[text -> target]] from beta 19
## doesn't break built-in version, and copes with spaces or lack thereof
Markup('[[->','>[[|',
  "/(?>\\[\\[([^\\]]+?)\\s*-?+&gt;\\s*)(\\S.+?)\\]\\]($SuffixPattern)/e",
  "Keep(MakeLink(\$pagename,PSS('$2'),PSS('$1'),'$3'),'L')");
#
## Add preferred extended markup
include_once("$FarmD/cookbook/custom_ext_markup.php");
#
## Enables link markup that automagically displays page titles instead of names
include_once("$FarmD/cookbook/titleof.php");
#
#$WikiStyle['commentary']['apply'] = 'block';
#$WikiStyle['commentary']['class'] = 'commentary';
# 
$WikiStyle['commentary']['apply'] = 'block';
$WikiStyle['commentary']['background-color'] = '#f8dce1';
$WikiStyle['commentary']['margin'] = '1em';
$WikiStyle['commentary']['border'] = '1px dotted #ea97a4';
#
?>

It's fine while the Markup rule is enabled, but it does the
end-of-script thing when I comment it out.  I retested just now to
make sure.  I searched the whole file for " characters, marked them,
and looked for missing ones, but I can't spot any missing ones.

Bronwyn



More information about the pmwiki-users mailing list