Re: Unable to register at Wiki

[email protected] (Christoph Becker)
Newsgroups php.webmaster
Message-ID <[email protected]>
Hannes Magnusson wrote:

> On Tue, Mar 17, 2015 at 7:36 AM, Christoph Becker <[email protected]> wrote:
>> Hannes Magnusson wrote:
>>
>>> You likely did not answer the " Which email address do you have to
>>> mail now? " question correctly.
>>
>> Maybe the question should be slightly reworded, e.g.
> 
> I'd love help to reword this :D
> https://github.com/php/web-wiki/blob/master/dokuwiki/inc/lang/en/register.txt
> https://github.com/php/web-wiki/blob/master/dokuwiki/inc/html.php#L1594

I'll see if I'll be able to submit a pull request later.  I have some
trouble getting the folder layout right for web-wiki and web-shared; for
now I've quickly moved parts of the clones, so that it works.

>>> I don't know why the error message doesn't show up when its wrong o.O
>>> Maybe we broke something in the template?
>>
>> FWIW: I just sent an empty form, and there was no message shown, despite
>> msg($lang['regmissing'], -1) is called, what should display "Sorry, you
>> must fill in all fields.".
> 
> Yeah... I don't know why the error message isn't showing. Maybe we
> broke the templates or something with the customizations we've done.

Indeed, it seems that an early commit[1] broke the display of any
message, due to the exclusion of tpl_header.php which calls the
important html_msgarea().  A very quick fix might be to insert the
respective

  <?php html_msgarea() ?>

in dokuwiki/lib/tpl/phpnet/main.php right below

  <!-- wikipage start -->

Some styling for the respective classes (apparently, .error, .info,
.success, .notify) would also be appropriate.

[1]
<https://github.com/php/web-wiki/commit/b189eb22dc5a13cf71e407797d62c3e18b0cdbe1>

-- 
Christoph M. Becker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.