As if now, I have progressed through abit on fixing the problem. This are the things which I changed,
Line 109 (Original)
$_prev_num = $start_from - $number + 1;
Changed to,
$_prev_num = $start_from - $number;
Line 126 (Original)
elseif ($start_from && $start_from <= ($number - 1))
Changed to,
elseif ($start_from && $start_from <= ($number + 1))
Line 147 (Original)
$_next_num = $start_from + $number - 1;
Changed to,
$_next_num = $start_from + $number;
By changing the above lines, the articles now display properly at each page. However a new problem arise which is when you are at the last page of your article, you can still press "Next" to the next page. This next page do not have any news article and hence based on the PHP code, "No entries to show" is displayed. To give you an example,
Page 3
Article 3
Article 2
Article 1
[Prev][Next]
Page 4
No entries to show
[Prev][Next]
Note: Italic wording means it is a hyperlink.
From the above example, page 4 doesn't have any article at all yet at page 3, the [Next] button points it to page 4. Based on my findings, this is caused by this particular rule,
Line 145
if ($number && $_show_rows == $number)
Because of this rule, at page 3 when the number of articles is reached, the $_show_rows will have 3. Since the $number is 3, the [Next] button at page 3 will create page 4 due to this rule. However, this does not apply to page 4 because page 4 doesn't have a single article, hence the $_show_rows in page 4 is 0 (this case, the rule can't apply and create a "page 5").
Because of my limited understanding of PHP and everything else, I hope this helps you out Support_Team in fixing the pagination. If not, I can't progress my website having this error within the CMS itself.
Hope to get a reply from you guys, thanks.
P.S: PM if you need a live demo from my website. I don't wish to post my website URL here. Thanks. 