Showing more articles in recent/latest posts?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
epicflupe
Posts: 42
Joined: Thu Sep 20, 2007 8:42 am

Showing more articles in recent/latest posts?

Post by epicflupe » Tue Nov 27, 2007 9:40 am

Hi!

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

Will it slow down the FAQ?

Thanks!

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

Post by Thorsten » Tue Nov 27, 2007 10:11 am

Hi,

you can change this in inc/constants.php.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

epicflupe
Posts: 42
Joined: Thu Sep 20, 2007 8:42 am

Change in RSS

Post by epicflupe » Tue Nov 27, 2007 10:20 am

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: 14868
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue Nov 27, 2007 10:34 am

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
Posts: 42
Joined: Thu Sep 20, 2007 8:42 am

Post by epicflupe » Tue Nov 27, 2007 10:46 am

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: 14868
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue Nov 27, 2007 10:48 am

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