Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
romulasry opened this issue Mar 8, 2023 · 4 comments
Open

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

romulasry opened this issue Mar 8, 2023 · 4 comments

Comments

@romulasry
Copy link

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
Copy link
Owner

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
Copy link

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

@MioVisman
Copy link
Owner

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

@MickeyTTT
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants