T
toilatoi10
New Member
Đến forum/index tìm mã echo $text xóa nó đi thay bằng mã này
demo

Code:
if (!isset($_GET["contentpage"])) {
$st = 1;
} else {
$st = (int) functions::check($_GET["contentpage"]);
}
$maxtext = 2500;
$total = ceil(strlen($text) /$maxtext);
$showtext = ($st - 1) *$maxtext;
$text = mb_substr($text,$showtext, $maxtext);
echo "<p>" . $text ."</p>";
if($total > 1) {
for ($i = 1; $i < $total;$i ) {
?>
<?php if ($i == $st): ?>
<span class="currentpage"><b><?php echo $i;?></b></span>
<?php else: ?>
<a href="index.php?id=<?php echo $id ?>&contentpage=<?php echo $i; ?>" class="pagenav"><?php echo $i; ?></a>
<?php endif; ?>
<?php
}
}
