From c9b65efbf30c3801deae7148ad7b7a7af143d49a Mon Sep 17 00:00:00 2001 From: Arcturus Date: Tue, 22 Oct 2024 17:57:41 +0900 Subject: [PATCH] update --- _common.php | 2 +- list.skin.php | 94 +++++++++++++---------- readme.md | 19 +++++ set_order.php | 49 +++++++----- set_order_update.php | 3 +- view.skin.php | 24 +++--- view_comment.skin.php | 136 ++++++++++++++-------------------- write.skin.php | 18 ++--- write_comment_update.skin.php | 28 +++---- write_update.skin.php | 3 +- 10 files changed, 197 insertions(+), 179 deletions(-) create mode 100644 readme.md diff --git a/_common.php b/_common.php index 5fe980a..48e1738 100644 --- a/_common.php +++ b/_common.php @@ -1,2 +1,2 @@ ', 0); -include_once(G5_LIB_PATH . '/thumbnail.lib.php'); +include_once G5_LIB_PATH . '/thumbnail.lib.php'; if ($board['bo_table_width'] == 0) $width = "100%"; @@ -10,12 +10,12 @@ $cate = array(); $lists = array(); ?>
- +
- - +
- -

+ +

+ -
- - - + + +
+ +
- - + +
- - 목록 - - 링크 추가 - - - 링크 - 관리 - 관리자 + + 목록 + + + 링크 추가 + + + + 링크 + 관리 + + + 관리자 + +
- + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..84a86c4 --- /dev/null +++ b/readme.md @@ -0,0 +1,19 @@ +## 링크 게시판 스킨 + +작성자: 대하 (Extra Shot) +원본주소: https://extrashot.tistory.com/59 + +오류 수정 및 일부 코드에 최적화 작업을 진행했습니다. + +### 주요 수정 사항 +- short open tag 제거 + +모든 아보카도 버전에 호환됩니다. + +## 설치방법 + +아보카도가 설치된 폴더의 하위 폴더인 `skin/board/` 에 `link` 라는 폴더를 생성하고 파일을 업로드합니다. + +``` +php 최소 버전: 5.6 이상 (5.3부터 사용 가능) +``` diff --git a/set_order.php b/set_order.php index 3f0e7e8..b4d2ed0 100644 --- a/set_order.php +++ b/set_order.php @@ -1,6 +1,6 @@ ', 0); if ($board['bo_write_level'] <= $member['mb_level']) { ?> @@ -10,8 +10,9 @@ if ($board['bo_write_level'] <= $member['mb_level']) {
- - + + + @@ -19,39 +20,47 @@ if ($board['bo_write_level'] <= $member['mb_level']) { - - + + + - - - - - - - - +
카테고리카테고리 제목 배너 링크 순서
+ + + + + + + + + + + +

@@ -61,4 +70,4 @@ if ($board['bo_write_level'] <= $member['mb_level']) {
- + diff --git a/set_order_update.php b/set_order_update.php index 4eb32b5..e6801b6 100644 --- a/set_order_update.php +++ b/set_order_update.php @@ -1,5 +1,5 @@ ', 0); @@ -9,15 +9,15 @@ if ($board['bo_table_width'] == 0) $width = "100%"; ?>
- + - @@ -26,8 +26,8 @@ if ($board['bo_table_width'] == 0)
-
- +
+
diff --git a/view_comment.skin.php b/view_comment.skin.php index ee63ad0..124d9a8 100644 --- a/view_comment.skin.php +++ b/view_comment.skin.php @@ -1,6 +1,6 @@ - - = $board['bo_comment_level']) { ?>
- 0) { ?> - 로그 - 0) { ?> + 로그 + -
+
- 0) { $co_list = array(); for ($k = 0; $k < count($co_links); $k++) { @@ -44,9 +44,8 @@ $clo = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_com } ?>
-
- - m - d - + m + d +
-
- - +
- - " - id="secret_comment_"> - + " + id="secret_comment_"> + - - - +
- -
- 0) { ?> + 0) { ?> 옷장 - - + -
+
- -
-
- - m - d - + m + d +
-
- - +
- - " - id="secret_comment_"> - + " + id="secret_comment_"> + - - +
- -

▶ 로그 링크 추가

+ +

▶ 로그 링크 추가

▶ 의상 추가

- - +
- diff --git a/write.skin.php b/write.skin.php index a36021c..507859c 100644 --- a/write.skin.php +++ b/write.skin.php @@ -1,6 +1,6 @@ ', 0); @@ -22,10 +22,7 @@ if ($is_category && $board['bo_category_list']) { $category_option .= ">$categories[$i]\n"; } } - ?> - -
@@ -78,7 +75,7 @@ if ($is_category && $board['bo_category_list']) { ?>
- +
카테고리
- +
제목
@@ -125,14 +122,12 @@ if ($is_category && $board['bo_category_list']) {
-
-