Twave 테마 기능 추가 옵션
본문
[code]
<?php
$result = $total_page * $i;
$total_write = "";
if ($result >= 5 && $result < 10) {
$total_write = "<span>5+</span>";
} elseif ($result >= 10 && $result < 20) {
$total_write = "<span>10+</span>";
} elseif ($result >= 20 && $result < 25) {
$total_write = "<span>20+</span>";
} elseif ($result >= 25 && $result < 50) {
$total_write = "<span>25+</span>";
} elseif ($result >= 50 && $result < 100) {
$total_write = "<span>50+</span>";
} elseif ($result >= 100 && $result < 250) {
$total_write = "<span>100+</span>";
} elseif ($result >= 250 && $result < 500) {
$total_write = "<span>250+</span>";
} elseif ($result >= 500 && $result < 1000) {
$total_write = "<span>500+</span>";
} elseif ($result >= 1000 && $result < 2500) {
$total_write = "<span>1000+</span>";
} elseif ($result >= 2500 && $result < 5000) {
$total_write = "<span>2500+</span>";
} elseif ($result >= 5000 && $result < 10000) {
$total_write = "<span>5000+</span>";
} elseif ($result >= 10000 && $result < 50000) {
$total_write = "<span>10000+</span>";
} elseif ($result >= 50000 && $result < 100000) {
$total_write = "<span>50000+</span>";
} elseif ($result >= 100000) {
$total_write = "<span>100000+</span>";
}
?>
[/code]
를 skin/member/basic/profile.skin.php 하단에 삽입,
[code]<?php echo $total_write; ?>[/code]
를 원하는 출력할 위치에 삽입
또는 <?php echo number_format($total_count) ?>를 통해 전체 게시글 출력, 다음 업데이트(24.11~ 예상) 때 추가 예정
등록된 댓글이 없습니다.