Display open questions but not letting users suggest answers

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
epicflupe

Display open questions but not letting users suggest answers

Post by epicflupe »

Hi!

I´m running the latest version, 2.5.2, great job by the way, and i want the "open questions" to be viewable by the users without letting them add answers.

How? Just removing the "answer"-link? Where, in that case?

Thanks in advance.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Display open questions but not letting users suggest answers

Post by Thorsten »

Hi,

you have to open inc/Faq.php, goto line 2679 and change this code

Code: Select all

                $output .= sprintf('<td valign="top"><a href="%s?%saction=add&question=%d&cat=%d">%s</a></td>',
                    $_SERVER['PHP_SELF'],
                    $sids,
                    $row->id,
                    $row->ask_rubrik,
                    $this->pmf_lang['msg2answer']);
to

Code: Select all

                $output .= printf('<td valign="top">&nbsp;</td>');
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply