Page 1 of 1

E mail remains private...not shown on board can we do this?

Posted: Sat Mar 22, 2008 10:24 pm
by Rufanuf
Script URL:www.siamfishingtours.com/forum/mboard.php
Version of script:1.3
Hosting company:IXW
URL of phpinfo.php:?
URL of session_test.php:?
What terms did you try when SEARCHING for a solution:scanned every thread

Write your message below:

Ive maanged to install the mboard...im just a but concerned of the security of visitors, them not being able to keep there email private. Is there an option for turning off the visible Email...I could not see it anywhere, I noticed someone asked a similar quest a long way back on this forum, they didnt get an answer.

Can we switch off emails being displayed?

Thanks

Ruf

Posted: Mon Mar 24, 2008 1:21 pm
by Klemen
As a quick solution you can try changing (inside mboard.php)

Code: Select all

    if(!empty($_POST['email']))
    {
        $email=pj_input($_POST['email']);
            if(!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email))
            {
                problem('Please enter a valid e-mail address!');
            }
        $char = array('.','@');
        $repl = array(".","@");
        $email=str_replace($char,$repl,$email);
    }
    else {$email='NO';}
to

Code: Select all

$email='NO';
This won't show the e-mail but it also won't provide any way of viewing it. That would take a bit more work, will try to think of something for the next version.

Posted: Fri Mar 28, 2008 11:53 am
by icepack
hi, i was after this too.
still waiting for the next release. will it be soon? thanks

Posted: Sat Mar 29, 2008 6:09 pm
by Klemen
Can't really say when, I hoped February at first but had other work (updated my other scripts though). That's why I don't like giving any dates as I really can't say when I will work on any of the scripts.

Posted: Mon Jul 28, 2008 1:20 pm
by Weird Dragon
Klemen wrote:As a quick solution you can try changing (inside mboard.php)

... snipped ...

to

Code: Select all

$email='NO';
This won't show the e-mail but it also won't provide any way of viewing it. That would take a bit more work, will try to think of something for the next version.
I have just installed mboard and decided to disable the email option. I changed the code as mentioned above, but found that the box for typing the email was still there and if you typed a letter in there you would get a message prompting you to write a valid email address. So I decided to find out how to remove the input text box.

So besides doing what Klemen suggested I also did the following:

In the file "mboard.php" I replaced this line

Code: Select all

E-mail (optional):<br><input type=text name="email" size=30 maxlength=50>
with this one

Code: Select all

<br>
because I found out that an extra new line was a good idea once the text input box was removed.

Note that the line appears two times in the script, so I replaced it both times with <br>.

EDIT: I removed those extra <br> as it turned out that it disturbed the layout.

Then in the file "javascript.js" I deleted this part:

Code: Select all

if (
    d.email.value!='' && (
      d.email.value.indexOf(".") == -1 ||
      d.email.value.indexOf("@") == -1
    )
) {alert('Please enter a valid e-mail address!'); return false;}
I know nothing about php and java scripting. My only programming experience, apart from a small knowledge of html, is GML (Game Maker Language) which is a language that only works in the program called Game Maker. But because I have that experience I could recognize the "script patterns" and conclude what to do. What I did was searching in the scripts for matters concerned about email and testing over and over. It works very well as far as I can see.

In the file "style.css" I changed a colour of a font:

This part:

Code: Select all

A {
	color : #0084BE;
	text-decoration : underline;
}
I changed into this one:

Code: Select all

A {
	color : Navy;
	text-decoration : underline;
}
Here you can see the result:
http://www.weird-dragon.dk/mboard/mboard.php

I have removed all my testing messages and written a new welcome message.

As you can see I have also worked quite a bit with the "header.txt" file and the "footer.txt" file. I made those header and footer files in a "Drag and Drop" interface html program and then I copied the source code into the header and footer text files.