[pmwiki-users] Blocklist2 bug (was: Re: Blocklist2 ignoring EnableWhyBlocked)
H. Fox
haganfox at users.sourceforge.net
Sun Apr 2 11:27:04 CDT 2006
On 4/2/06, David Spitzley <dspitzle at wash.k12.mi.us> wrote:
> David
> >>> "H. Fox" <haganfox at users.sourceforge.net> 04/01/06 12:05 PM >>>
> On 4/1/06, David Spitzley <dspitzle at wash.k12.mi.us> wrote:
> > "H. Fox wrote;
> > Change
> > $EditMessageFmt .= $BlocklistMessageFmt;
> > to
> > $MessagesFmt[] = $BlocklistMessageFmt;
> >
> > Change
> > if ($EnableWhyBlocked == "1") $EditMessageFmt .= "<pre>" .
> > $WhyBlockedFmt . "</pre>";
> > to
> > if ($EnableWhyBlocked == "1") $MessagesFmt[] = "<pre>" .
> > $WhyBlockedFmt . "</pre>";
> >
> > Ok, I made those changes, and while I now get a message that "This post has been blocked by the administrator", it doesn't list any of the reasons why,
>
> Have you set
>
> $EnableWhyBlocked = 1;
> -------------------------------------------
>
> Yes, which is how I'm getting the "This post has been blocked by the administrator" message. I'm just not getting the rest.
$EnableWhyBlocked is for "the rest". From the script:
$EnableWhyBlocked is a switch for whether or not to display
reasons a post is blocked to the user on the edit screen.
For security purposes, the default is off (0).
Temporarily give this one a try and see if there's any difference:
http://www.pmwiki.org/pmwiki/uploads/Cookbook/cmsb-blocklist.php
Hagan
More information about the pmwiki-users
mailing list