disable emailaddress on ask question

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
gifwav
Posts: 2
Joined: Sun Dec 19, 2004 9:04 pm

disable emailaddress on ask question

Post by gifwav »

Is is possible to disable the emailaddress on the ask question page?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

disabling viewing the e-mail address or disabling the need to add the address? :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gifwav
Posts: 2
Joined: Sun Dec 19, 2004 9:04 pm

Post by gifwav »

Hello Thorsten,

I want to use phpMyFaq on two different sites.
The first one there's no email required.
I've read viewtopic.php?t=1170 and it worked on the "Add Content" and "Add Comment" feature.
I still have to fill in my emailaddress when I ask a question.

I don't want to remove the user email requirement from the second site.
But I want to disable the "mailto" function.

As you can see my English is bad.
Sorry.
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

replace the following code in functions.php (about line 525):

Code: Select all

$output .= "<strong>".$PMF_LANG["msgCommentBy"]."<a href=\"mailto:".safeEmail($row->email)."\">".$row->usr."</a>:</strong>\n";
with

Code: Select all

$output .= "<strong>".$PMF_LANG["msgCommentBy"].$row->usr.":</strong>\n";
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply