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

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Rufanuf
Posts: 15
Joined: Thu Mar 20, 2008 8:58 am

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

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

Post 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.
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

hi, i was after this too.
still waiting for the next release. will it be soon? thanks
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
Weird Dragon
Posts: 4
Joined: Mon Jul 28, 2008 11:47 am

Post 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.
Locked