[pmwiki-users] Upload problem - interaction with Wikiforms and CSS for form styles

John Rankin john.rankin at affinity.co.nz
Thu May 25 18:07:54 CDT 2006

On Friday, 26 May 2006 10:25 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Fri, May 26, 2006 at 09:27:58AM +1200, John Rankin wrote:
>> if ($action=='browse && preg_match('/[.\\/]\\d{5}$/',$pagename)) 
>>    $HTMLStylesFmt['form'] = "
>> It is not at all obvious to me why a style should cause upload to break, 
>> I'm afraid...
>I'm with John on this one -- I can't imagine why a style would
>cause upload to break here.  However, it might be worthwhile to
>add an extra space or newline at the end of the style
>definition -- as in:
>  if (preg_match('/[.\\/]\\d{5}$/',$pagename)) $HTMLStylesFmt['form'] = "
>  #wikitext dt { font-weight: bold; }
>  #wikitext dt:after { content: ':' }
>  #wikitext p { margin-left: 40px; }\n";
>(Note the extra space before the closing ").  This is useful to prevent
>two successive style definitions from abutting each other in the output,
>which might cause problems for the browser.

Done -- new version of WikiFormCSS.php uploaded to 

>Beyond that... I don't see why the style affects things.
I am *so* relieved that it isn't something obvious!

FWIW, I am planning to write a user guide on the wikipublisher site, 
as the wikiforms cookbook page is getting way too big.

John Rankin

More information about the pmwiki-users mailing list