Can you tell me the code and files to edit to change the value of "five questions posted most recently" on the index.php page to "20 questions posted most recently" please?
THanks
Hayden
five questions posted most recently - changed to 10 or 20.
Moderator: Thorsten
Hi,
open inc/functions.php and look for the function generateNewestData(). Then look for the line
and change it to
or whatever you want.
bye
Thorsten
open inc/functions.php and look for the function generateNewestData(). Then look for the line
Code: Select all
while (($row = $db->fetch_object($result)) && $i < $count ) {
Code: Select all
while (($row = $db->fetch_object($result)) && $i < 20) {
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: five questions posted most recently - changed to 10 or 20.
Hello, I have same question as Hayden.
However the answer given at the time is not applicable to version that I am trying to customise (2.0.3).
Unless i am missing something.
It would be greatly appreciated if you can give me answer that would work with versio in question 2.0.3.
Thank you,
Vik
However the answer given at the time is not applicable to version that I am trying to customise (2.0.3).
Unless i am missing something.
It would be greatly appreciated if you can give me answer that would work with versio in question 2.0.3.
Thank you,
Vik
Re: five questions posted most recently - changed to 10 or 20.
Hi,
you can change that in version 2.0 in the file inc/constants.php:
bye
Thorsten
you can change that in version 2.0 in the file inc/constants.php:
Code: Select all
/**
* Number of records for the latest entries
*
* @var const 5
*/
define('PMF_NUMBER_RECORDS_LATEST', 5);
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist