MioVisman/FluxBB_by_Visman

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

Opened this issue · 4 comments

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?

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) : '.'); ?>

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

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

Thanks