Upgrading from 1.4 to 1.5

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
XavierBlak
Posts: 8
Joined: Wed Feb 02, 2005 6:21 am

Upgrading from 1.4 to 1.5

Post by XavierBlak »

Okay I'm all ready to update to the new 1.5 version but some questions first.
Updating from phpMyFAQ 1.4.x is fairly simple. Via FTP copy all new files from the update zip file except:

* the files data.php and config.php in the directory inc/
* your CSS file style.css in the template/ directory
This is from the documentation referring to upgrading. What is meant by "Copy all new files from the update zip file except your CSS file style.css in the template/ directory."?

Are we suppose to keep our modified CSS and not overwrite it with the new one or is that not compatible and we are suppose to overwrite it with the one from the zip file.
Thorsten
Posts: 15744
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can use you complete old templates, but you have to patch one file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
XavierBlak
Posts: 8
Joined: Wed Feb 02, 2005 6:21 am

Post by XavierBlak »

Which file? And is it patched by running the update?

Thanks for your help. :o
Thorsten
Posts: 15744
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you have to copy these variables for the templates from main.php to index.php at the bottom of the file:

Code: Select all

                'writeTopTenHeader' => $PMF_LANG['msgTopTen'],
                'writeTopTenRow' => generateTopTen($LANGCODE),
                'writeNewestHeader' => $PMF_LANG['msgLatestArticles'],
                'writeNewestRow' => generateFiveNewest($LANGCODE),
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply