Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Don't Show News Comments In Home 
 
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
 



 
paxSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Don't Show News Comments In Home 
 
Try this...

OPEN includes/news_data.php
FIND
Code: [Download] [Hide] [Select]
    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;

REPLACE WITH
Code: [Download] [Hide] [Select]
    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'];



Please let me know if it is working fine.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Don't Show News Comments In Home 
 
Mighty Gorgon wrote: [View Post]
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.


don't work!

Mighty Gorgon wrote: [View Post]

Maybe if you set 10 to both you should fix the issue.


Set 10 work, thanks!

Wait for the fix...
 



 
paxSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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