upgrading to 1.6.3

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Hamster
Posts: 5
Joined: Mon Aug 14, 2006 1:40 pm

upgrading to 1.6.3

Post by Hamster »

I'm currently working through the instructions to upgrade phpMyFAQ from version 1.5.0 RC5 to 1.6.3.

I have successfully run the install.php script and have reached the step where I have to add the two strings {msgFirefoxPluginTitle} and {msgMSIEPluginTitle} to the file template/search.tpl

Exactly where in that file do I add them?

Thanks

H.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: upgrading to 1.6.3

Post by matteo »

Hi,
Hamster wrote:Exactly where in that file do I add them?
why not trying a full-text search upon the original template/ folder ;)?
For your convenience: [PATH_TO_PMFINSTALL]/template/search.tpl

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Hamster
Posts: 5
Joined: Mon Aug 14, 2006 1:40 pm

Re: upgrading to 1.6.3

Post by Hamster »

matteo wrote: why not trying a full-text search upon the original template/ folder ;)?
Because doing so doesn't help terribly much.

The installed template/search.tpl file (ie the one under /var/www) is significantly different to the new one that came with 1.6.3

For example, the installed one has the form action as being post, whereas the new one is listed as a get. The new one has a hidden input field, the old one doesn't.

So I'm a bit confused as to whether or not I should change those things as well as add the two strings.

Does that make sense? The differences between the old and new files are enough that I felt it safer to ask where to put the strings rather than to just copy them to the (more or less) same spot as where they in the new file which differs from the old one not insignificantly.

H.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you didn't change anything in your current search.tpl file from 1.5.x you should just use the one from 1.6.3.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Hamster
Posts: 5
Joined: Mon Aug 14, 2006 1:40 pm

Post by Hamster »

Thorsten wrote: if you didn't change anything in your current search.tpl file from 1.5.x you should just use the one from 1.6.3.
But according to the instructions for upgrading from 1.5.x, the search.tpl file does not get copied.

The instructions say "copy all new files except inc/data.php, except inc/config.php and except everything in template/ barring artikel.tpl".

Therefore the new file template/search.tpl did not get copied over. The only file that got copied over from the template/ directory was artikel.tpl.

Have I somehow misinterpreted the upgrade instructions?

H.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

no, but my way is just easier for you if you did no changes to the file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Hamster
Posts: 5
Joined: Mon Aug 14, 2006 1:40 pm

Post by Hamster »

Ahhh OK. Thanks for that. I've made no changes so I'll just copy it over.

H.
Hamster
Posts: 5
Joined: Mon Aug 14, 2006 1:40 pm

Post by Hamster »

Just a thought, should the upgrade instuctions perhaps then be altered so that if you choose to edit the template/search.tpl file rather than copy it over, you should also be told to make the other two changes as well? ie, change the form action method and add the hidden input field?

H.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I look at them and make them better...

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