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

John Rankin john.rankin at affinity.co.nz
Thu May 25 16:27:58 CDT 2006


On Thursday, 25 May 2006 2:23 AM, Curtis, Clayton <Clayton.Curtis at va.gov> wrote:
>Upload problem - interaction with Wikiforms and CSS for form styles
><snip>
>= = = = =
><?php if (!defined('PmWiki')) exit();
>if (preg_match('/[.\\/]\\d{5}$/',$pagename)) $HTMLStylesFmt['form'] = "
>#wikitext dt { font-weight: bold; }
>#wikitext dt:after { content: ':' }
>#wikitext p { margin-left: 40px; }";
>?>
>= = = = =
>I had forgotten this was part of installing the wikiforms
>recipe (started out as WikiFormCSS.php)  And I don57;t
>understand exactly what57;s being done (Cookbook entry says
>60;to use the form styles61;), but I found that renaming the
>file (to avoid processing) made the problem go away. Of course,
>I57;m not sure what OTHER side effects that had 51; the obvious
>one is that the headings / titles on the display of form instances are no longer bold.
>Any suggestions??  Maybe a way to invoke this code only if the action is 56;read57;?

Try the following change:

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...
>Thanks!!
>Clayton Curtis MD PhD


-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list