Bug: phpMyFAQ 2.7.1
Frontend-form 'Add new Faq': The input field 'Link for this FAQ' has no function.
Solution (this will add the link to the answer):
Change ajaxservice.php / line 224
link = PMF_Filter::filterInput(INPUT_POST, 'contentlink', FILTER_VALIDATE_URL);
to
$contentlink = PMF_Filter::filterInput(INPUT_POST, 'contentlink', FILTER_VALIDATE_URL);
and if you like some more control over the layout, change ajaxservice.php / line 257 too
$answer = sprintf('%s<br />%s<a href="http://%s" target="_blank">%s</a>',
to
$answer = sprintf('%s<br /><div id="newFAQContentLink">%s<a href="http://%s" target="_blank">%s</a></div>',
That's it.
Add new Faq: Input field 'Link for this FAQ' no function
Moderator: Thorsten
Re: Add new Faq: Input field 'Link for this FAQ' no function
Hi,
thanks for the hint, fixed with the upcoming 2.7.3 release!
bye
Thorsten
thanks for the hint, fixed with the upcoming 2.7.3 release!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist