FireFox Search Plugin - disappeared after upgrade to 1.5.6

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
macnlos
Posts: 17
Joined: Thu Dec 01, 2005 9:48 pm

FireFox Search Plugin - disappeared after upgrade to 1.5.6

Post by macnlos »

I upgraded from 1.5.4 to 1.5.6 following the instructions in the documentation. I just noticed that when I go to Search page my option to install the Firefox search plugin is no longer appearing.

I do have a "pmfsearch.src" in the root directory.
I do have the "{msgFirefoxPluginTitle}" in the "search.tpl" file.

I do have a copy of the 1.5.4 installation I was using and noticed that there was a difference in the "search.php" files. I tried reverting back to that file and it did not work.

You can see my current 1.5.6 site at: http://www.ti-994a.com/faq
You can see my older 1.5.4 site at: http://www.ti-994a.com/faq_1.5.4

Any suggestions?
Thanks,
CR
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please try to re-create the file in the admin section.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
macnlos
Posts: 17
Joined: Thu Dec 01, 2005 9:48 pm

Post by macnlos »

I did go the the admin section but got the same results. There was a change in search.php between 1.5.4 and 1.5.6. I just got my plugin back if I reverted back to the 1.5.4 version of search.php. Here are the differences between the files:

Version 1.5.6 of SEARCH.PHP

Code: Select all

if (!file_exists(dirname(__FILE__).'/'.$_SERVER['SERVER_NAME'].'.pmfsearch.src')) {
...
...
'msgFirefoxPluginTitle' => '<p><a id="searchplugin" href="javascript:addEngine(\'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'\', \''.$_SERVER['SERVER_NAME'].'.pmfsearch\', \'png\', \'Web\')">'.$PMF_LANG['ad_search_plugin_install'].'</a></p>'
Version 1.5.4 of SEARCH.PHP

Code: Select all

if (!file_exists(dirname(__FILE__).'/pmfsearch.src')) {
...
...
'msgFirefoxPluginTitle' => '<p><a id="searchplugin" href="javascript:addEngine(\'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'\', \'pmfsearch\', \'png\', \'Web\')">'.$PMF_LANG['ad_search_plugin_install'].'</a></p>'

It looks like the change was the inclusion of the "$_SERVER['SERVER_NAME']" entries into those lines.

CR
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay... I'll fix it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply