Showing more articles in recent/latest posts?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
epicflupe

Showing more articles in recent/latest posts?

Post by epicflupe »

Hi!

I want to show 30 articles in recent posts... Is it possible? How?

Will it slow down the FAQ?

Thanks!
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can change this in inc/constants.php.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Change in RSS

Post by epicflupe »

Hello again.

Does it change in the RSS then?

I only want the 30 latest in the RSS, not in the FAQ view.

Sorry for my bad explanation. :)

/E
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it changes both...

But just edit line 52 in feed/latest/rss.php from

Code: Select all

$rssData = $faq->getLatestData(PMF_NUMBER_RECORDS_LATEST, $lang);
to

Code: Select all

$rssData = $faq->getLatestData(30, $lang);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Post by epicflupe »

GREAT! Thanks!

And the last question.

Where do i change the text "the five latest answered questions" on the RSS-feed (in my language)?

I guess I can´t change it in sv.lang cause this will change it in the FAQ view aswell.

Change this in a similar way?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it's just some lines below... you have to change the $PMF_LANG variables.

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