{writeArticleCategoryHeader}

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
notset4life
Posts: 30
Joined: Tue Oct 18, 2005 2:02 pm

{writeArticleCategoryHeader}

Post by notset4life »

On each FAQ, I see this underneath the results:

{writeArticleCategoryHeader}

Obviously something missing in the English lang file. Can someone tell me what it should be?
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: {writeArticleCategoryHeader}

Post by matteo »

Hi,
notset4life wrote:Obviously something missing in the English lang file. Can someone tell me what it should be?
That's wrong: when you see something like {key} in one of the PMF blocks, this is due to the missing of evaluating that key in the PHP file that is in charge to load the values into the keys for that particular TPL file.
In other words the issue is that your current artikel.php file is out-of-date regarding your current artikel.tpl file.
The other curious issue is that in PMF 1.6.x we use no key called writeArticleCategoryHeader.
That key was used 'till PMF 1.5.4 and then replaced with another set of keys starting from PMF 1.5.5.
You miss to give us a picture of your faq server, starting from the current PMF running version and if and when and from which version you performed an upgrade. So the only suggestion I can give you now is to look at the original TPL files of your running PMF version and compare them with your current TPL files :wink:. You'll see by your own that: we moved this part of the artikel.tpl file:

Code: Select all

    <!-- Article Categories Listing -->
    <div id="article_categories">
        <fieldset>
            <legend>{writeArticleCategoryHeader}</legend>
            <ul>
                {writeArticleCategories}
            </ul>
        </fieldset>
    </div>
    <!-- /Article Categories Listing -->
to:

Code: Select all

    <!-- Article Categories Listing -->
    {writeArticleCategories}
    <!-- /Article Categories Listing -->
This will fix your issue but please, perform a full check on your TPL files searching for any important difference between your running TPL files and those provided with your running PMF release (e.g: starting from PMF 1.6.1, we move the user search from HTTP POST to HTTP GET).

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
notset4life
Posts: 30
Joined: Tue Oct 18, 2005 2:02 pm

Post by notset4life »

The uprade instructions said not to overwrite the template files, so I didn't. After reading your response, I overwrote them and everything's fine.

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

Post by matteo »

Hi,
we write not to overwrite them 'cause it is supposed that the TPL files will be also under the PMF administrator control for his work of branding the colors and so on. In other words, if you use the PMF default TPL files, please, upgrade them every time you upgrade the code to the new PMF release.
For the admin convenience, starting from PMF 1.6.x, we also produce a list of files changed from the previous version: see [PATH_TO_PMFINSTALL]/docs/CHANGEDFILES.txt

Glad to read that you solved your issue :)
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply