https://github.com/PHPFusion/PHPFusion/commit/b24d29f0e770edfb10fa50676d32148b7d96e985
I reindex the base array and split them into pages following c_start.
$comments_per_page = 3;
[0] (all array that has comment_cat = 0)
--- [0] -- c_start = 0 (3 comment arrays)
--- [3] -- c_start = 3 (3 comment arrays)
--- [6] -- c_start = 6 (3 comment arrays)
Now, $array[0][0] is page c_start =0 with 3 comments array, and we find child of each comment. If exist, it will show. [b]These do not count as comments_per_page[b]
If they count we got 2 problem, parent not found how to render... it will look very wierd. Replying to ghost.
First page
html view: page 1
{avatar} { Message: Wow this is good }
--------------{avatar} {Message: There is something funny here.}
------------- {avatar} {Message: Something is even funnier with the shape of the block! }
html view: page 2
----------------------------------{avatar} {message: hahahaha}
{avatar} {message: who is A talking to?}
1. That is bad design.
2. sub sub sub sub reply will be in a mess.
So, comments per page only paginate base on items that is only comment_cat = 0
Also, comments will not show current page comment count.. it is also wierd to keep counting how many comments there are in this page, because we are talking about "Comments of the NEWS". That news has 8 comments, so it will stick to 8.
Now, I will progress with the Jquery. In order to do this, I need a static container for Jquery to push content to. It will generate on Model Level. You cannot customize it. I need that ID so HTML can be append.