How to remove the name field and make it anonymous?

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Mark1981
Posts: 2
Joined: Sun Dec 09, 2007 12:45 am

How to remove the name field and make it anonymous?

Post 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 :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Mark1981
Posts: 2
Joined: Sun Dec 09, 2007 12:45 am

Post by Mark1981 »

I tried what you said and it returned the following message:

You are not allowed to post on this message board!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked