[pmwiki-users] Site.EditForm

Ben Wilson dausha at gmail.com
Thu Oct 12 23:13:20 CDT 2006


This might work, although it's not too pretty. There are two variables
you need to explicitly set in farmconfig.php or config.php. In each
case, I will first show the PmWiki setting (both from form.php), and
then provide a pretty-close variable set that should work for
you---but you may have to debug.

form.php:SDV($PageEditForm, '$SiteGroup.EditForm');

Set $PageEditForm to someting else like "$SiteGroup.FormEdit". Copy
the wikilib.d/Site.EditForm to wiki.d/Site.FormEdit

$PageEditForm = '$SiteGroup.FormEdit';

form.php:SDV($AuthPromptFmt, array(&$PageStartFmt, 'page:$SiteGroup.AuthForm',
  "<script language='javascript' type='text/javascript'><!--
    try { document.authform.authid.focus(); }
    catch(e) { document.authform.authpw.focus(); } //--></script>",
  &$PageEndFmt));

Set $AuthPromptFmt to a different page, like $SiteGroup.FormAuth.
However, you will probably have to set all values. So:

$AuthPromptFmt = array(
  &$PageStartFmt,
  'page:$SiteGroup.AuthForm',
    "<script language='javascript' type='text/javascript'><!--
    try { document.authform.authid.focus(); }
    catch(e) { document.authform.authpw.focus(); } //--></script>",
  &$PageEndFmt);


Ben

On 10/12/06, martrn at googlemail.com <martrn at googlemail.com> wrote:
> Is there anyway to get pmwiki installed on a
> web host that disallows rm files because of
> real media application problems.
>
> The host disallows names ending with rm or .rm
>
> The installation fails because of the files
>
> Site.EditForm
> Site.AuthForm
>
> in the wikilib.d directory.
>
> Anyway around this ?
>
> Regards,
> Martin.
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>


-- 
Ben Wilson
"All this worldly wisdom was once the unamiable heresy of some wise man." HDT




More information about the pmwiki-users mailing list