Sorry for my english...
http://www.viscarani.it/portalesws/index.php?topic_id=1467
Comment are 12, but in home only 10 show...and don't show "page 2"
Why?
other example:
http://www.viscarani.it/portalesws/...rticle&start=91
in this example comments are 21, show page 2 after 10 comment, but show 18 comments in total!
Can help me??
Thanks
Don't Show News Comments In Home
Subject: Re: Don't Show News Comments In Home
Try this...
OPEN includes/news_data.php
FIND
REPLACE WITH
Please let me know if it is working fine.
OPEN includes/news_data.php
FIND
function fetchPosts($topic_id, $start = 0)
{
$topic_id = intval($topic_id);
$start = intval($start);
$start = ($start < 0) ? 0 : $start;
if($topic_id < 0)
{
return array();
}
$num_items = $this->num_items;
{
$topic_id = intval($topic_id);
$start = intval($start);
$start = ($start < 0) ? 0 : $start;
if($topic_id < 0)
{
return array();
}
$num_items = $this->num_items;
REPLACE WITH
function fetchPosts($topic_id, $start = 0)
{
global $board_config;
$topic_id = intval($topic_id);
$start = intval($start);
$start = ($start < 0) ? 0 : $start;
if($topic_id < 0)
{
return array();
}
$num_items = $board_config['posts_per_page'];
{
global $board_config;
$topic_id = intval($topic_id);
$start = intval($start);
$start = ($start < 0) ? 0 : $start;
if($topic_id < 0)
{
return array();
}
$num_items = $board_config['posts_per_page'];
Please let me know if it is working fine.
Subject: Re: Don't Show News Comments In Home
The problem is much more complex than appeared, I have fixed it, but current fix requires many files to be edited... at the moment the best thing you can do is set the number of news to the same value both in ACP and in CMS News Block.
Maybe if you set 10 to both you should fix the issue.
I may provide a fix with a patch, but not sure yet.
Maybe if you set 10 to both you should fix the issue.
I may provide a fix with a patch, but not sure yet.
Subject: Re: Don't Show News Comments In Home
don't work!
Set 10 work, thanks!
Wait for the fix...
Mighty Gorgon wrote: [View Post]
don't work!
Mighty Gorgon wrote: [View Post]
Set 10 work, thanks!
Wait for the fix...
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.2092s (PHP: 8% SQL: 92%)
SQL queries: 15 - Debug Off - GZIP Enabled