Trying to add Hyperlink to "err_noArticles"

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
sstewart780
Posts: 5
Joined: Wed Jan 24, 2018 5:22 pm

Trying to add Hyperlink to "err_noArticles"

Post by sstewart780 »

Hello All,

I am attempting to add a hyperlink back to Ask A Question when the "err_noArticles" is displayed when there are no results returned in advanced search.

I have added this into language_en.php:

$PMF_LANG["err_noArticles"] = "No FAQs available <http://faq-onkyo.s2g.net/index.php?acti ... d=0">Click Here to submit a Question</a>";

No Matter how I do this, this breaks the entire PHPMYFAQ Instance until I revert it back to:

$PMF_LANG["err_noArticles"] = "No FAQs available";

Would anyone be able to offer any help on how I would add a hyperlink to this? Any assistance would be GREATLY appreciated. I am a little new to PHP so please take it easy on me! Thanks in advance!
sstewart780
Posts: 5
Joined: Wed Jan 24, 2018 5:22 pm

Re: Trying to add Hyperlink to "err_noArticles"

Post by sstewart780 »

Folks,

Thanks anyway, I was able to get this to work with the following:

$PMF_LANG["err_noArticles"] = "No FAQs available <strong><a href=\"http://faq-*****.***.net/index.php?action=ask&category_id=0\" title=\"Read more on Captcha at Wikipedia\" target=\"_blank\">Click Here</a> to submit a question</strong>!";

(Asterisks are to hide name)
Post Reply