[pmwiki-users] $FarmPubDirUrl not being set
marc
gmane at auxbuss.com
Wed Nov 1 12:33:03 CST 2006
Patrick R. Michaud said...
> On Wed, Nov 01, 2006 at 12:23:40PM -0000, marc wrote:
> >
> > While testing Hans' update to commentboxplus, which separates the .css
> > into a file, I found that it returns:
> >
> > <link href='/css/commentboxplus.css' rel='stylesheet'
> > type='text/css' /><script type="text/javascript">
> >
> > from
> >
> > # load commentbox.css for styling
> > SDV($HTMLHeaderFmt['cbplus'], "
> > <link href='$FarmPubDirUrl/css/commentboxplus.css' rel='stylesheet'
> > type='text/css' />");
> >
> > indicating that $FarmPubDirUrl isn't set, in my case.
> > [...]
> > Any ideas what's amiss? (pmwiki-2.2.0-beta15)
>
> It looks to me as though $FarmPubDirUrl is being evaluated too
> soon because of the double-quotes around the string.
Ah, that's a useful thing to know. Something to keep an eye on
elsewhere.
> There
> probably needs to be a backslash in front of the dollar sign:
>
> # load commentbox.css for styling
> SDV($HTMLHeaderFmt['cbplus'], "
> <link href='\$FarmPubDirUrl/css/commentboxplus.css' rel='stylesheet'
> type='text/css' />");
>
> This way $FarmPubDirUrl will be evaluated (by FmtPageName)
> when the heading is being output, as opposed to the current
> version that does the substitution when commentboxplus.php
> is loaded (which occurs before skin loading).
Gotcha. Thanks. It's working now and I double checked that this was the
cause.
--
Best,
Marc
More information about the pmwiki-users
mailing list