FluxBB_by_Visman icon indicating copy to clipboard operation
FluxBB_by_Visman copied to clipboard

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

Open romulasry opened this issue 2 years ago • 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?

romulasry avatar Mar 08 '23 00:03 romulasry

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

MioVisman avatar Mar 08 '23 03:03 MioVisman

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

MickeyTTT avatar Nov 11 '23 19:11 MickeyTTT

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

MioVisman avatar Nov 12 '23 05:11 MioVisman

Thanks

MickeyTTT avatar Nov 12 '23 14:11 MickeyTTT