Page 1 of 1

How to remove the name field and make it anonymous?

Posted: Sun Dec 09, 2007 12:50 am
by Mark1981
Script URL: <n/a>
Version of script: 1.3
Hosting company: Linux Apache
URL of phpinfo.php: <n/a>
URL of session_test.php: <n/a>
What terms did you try when SEARCHING for a solution: anonymous

Write your message below:

Ok I want people to post anonymously without having to put in a name, and in order to prevent the abuse of names so people don't post as "jack@ss" etc.

If I delete the name field, it gives me an error msg. when trying to submit a message, and if I put the word anonymous inside the name field it still gives me the error message.

Is there any way to make it automatically put anonymous inside the name field and NOT let the users change it?

Oh and one last thing is it possible to make it so that only the admin can see the ip?

Thanks, and this is a great script :)

Posted: Sun Dec 09, 2007 2:59 am
by Klemen
Try changing

Code: Select all

<input type=text name="name" size=30 maxlength=30>
to

Code: Select all

<input type=text name="name" value="Anonymous" size=30 maxlength=30 readonly>
And no, not possible for admin only to see the IP, you'd have to store it somewhere in a file to do that, MBoard uses plain HTML pages for messages and the IP is hard-coded there (you could remove it though).

Posted: Mon Dec 10, 2007 2:54 am
by Mark1981
I tried what you said and it returned the following message:

You are not allowed to post on this message board!

Posted: Mon Dec 10, 2007 9:13 am
by Klemen
If you got that message you did something to upset the SPAM filter. Try closing all browser messages, then open MBoard again and try posting a simple short message.