Email in open question (edit: and in the 2.0 version ?)

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
skiverman
Posts: 24
Joined: Sat Mar 10, 2007 1:01 pm

Email in open question (edit: and in the 2.0 version ?)

Post by skiverman »

How to delete these mailto links ?

I have another problem : the function send2friend doesn't work anymore : The mail is sending but nothing after. I haven't touch any php file . What could be the problem ? mod_rewrite ?

Thanks !
Last edited by skiverman on Mon Apr 30, 2007 10:49 am, edited 1 time in total.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
skiverman
Posts: 24
Joined: Sat Mar 10, 2007 1:01 pm

Post by skiverman »

version 1.6.10

A third problem , in my save logs file there is only written that : Le fichier attachment.php ne peut être ouvert sans authentification préalable. (to be open Attachement.php need an authentification)

Thanks !
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

to remove the e-mail link in open questions, just open the file inc/functions.php and change this line

Code: Select all

$output .= "\t\t<td valign=\"top\" nowrap=\"nowrap\"><a name=\"openq_".$row->id."\">".makeDate($row->ask_date)."</a><br /><a href=\"mailto:".safeEmail($row->ask_usermail)."\">".$row->ask_username."</a></td>\n";
to

Code: Select all

$output .= "\t\t<td valign=\"top\" nowrap=\"nowrap\"><a name=\"openq_".$row->id."\">".makeDate($row->ask_date)."</a><br />".$row->ask_username."</td>\n";
I cannot reproduce your Send2Friends problem. The other problem will be fixed in 1.6.11.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
skiverman
Posts: 24
Joined: Sat Mar 10, 2007 1:01 pm

Post by skiverman »

Hello,

And how to do that in 2.0 version ?

thanks for your great work !
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

open inc/Faq.php on line 2672 and edit:

Code: Select all

                $output .= sprintf('<td valign="top" nowrap="nowrap">%s<br /><a href="mailto:%s">%s</a></td>',
                    makeDate($row->ask_date),
                    safeEmail($row->ask_usermail),
                    $row->ask_username);
to

Code: Select all

                $output .= sprintf('<td valign="top" nowrap="nowrap">%s<br />%s</td>',
                    makeDate($row->ask_date),
                    $row->ask_username);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply