예시
설치순서
- /plugin/tl_star/adm/install.php 로 설치(관리자 로그인 후 실행)
- 표시하고자 하는 페이지에 /plugin/tl_star/star.php 를 include 하여 설치
-----------------------------------------------
$ref_table = 'test';
$ref_id = 1;
include G5_PLUGIN_PATH.'/tl_star/star.php';
-----------------------------------------------
- /plugin/tl_star/adm/list.php : 관리페이지
관리 페이지 링크 추가 - array('300900', '별점관리', G5_PLUGIN_URL.'/tl_star/adm/list.php', 'tl_star'),
게시판에 붙인다면 다음과 같이 붙일 수 있겠죠?
(view.skin.php)의 일부분입니다.
게시판 예시
<?php
// include하는 페이지에서 ref_table, ref_id 변수를 설정한다.
$ref_table = $bo_table;
$ref_id = $wr_id;
include G5_PLUGIN_PATH.'/tl_star/star.php';
// 코멘트 입출력
include_once(G5_BBS_PATH.'/view_comment.php');
?>
content.php(내용)에 붙인다면 다음과 같이 붙일 수 있겠죠?
(content.skin.php)의 일부분입니다.
내용 페이지 예시
<div id="ctt_con">
<?php echo $str; ?>
</div>
<div>
<?php
// include하는 페이지에서 ref_table, ref_id 변수를 설정한다.
if ($co_id == 'company') {
$ref_table = $co_id;
$ref_id = 1;
include G5_PLUGIN_PATH.'/tl_star/star.php';
}
?>
</div>