MioVisman / FluxBB_by_Visman

My modification of FluxBB
GNU General Public License v2.0
78 stars 13 forks source link

How would you allow posting as no name to "."? #24

Open romulasry opened 1 year ago

romulasry commented 1 year ago

It requires a name at least two characters to post now. How could you make it default to "." if you had no name in the name field?

Any idea?

MioVisman commented 1 year ago

post.php

find

        // It's a guest, so we have to validate the username
        check_username($username);

before add

        if ($username == '' || $username == '.')
            $username = '.';
        else

find <?php if (isset($_POST['req_username'])) echo pun_htmlspecialchars($username); ?> replace to <?php echo (isset($_POST['req_username']) ? pun_htmlspecialchars($username) : '.'); ?>

MickeyTTT commented 10 months ago

This fixes it in new posts. Is there a way to do this in reply?

MioVisman commented 10 months ago

for the quick reply form viewtopic.php find name="req_username" replace to name="req_username" value="."

MickeyTTT commented 10 months ago

Thanks