팁게시판

multi skin 만들기

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

list.skin.php list1.skin.php list2.skin.php ..

-list.skin.php

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$_SESSION['type'] = '';
if(empty(isset($type)))$type = 1;
$_SESSION['type'] = $type;
$scach = ($config['cf_bbs_rewrite']) == 0 ? '&type='.$type : '?type='.$type;
include_once($board_skin_path."/list{$type}.skin.php");

 

-view.skin.php, view_comment.skin.php, write.skin.php

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
$type = $_SESSION['type'];
$scach = ($config['cf_bbs_rewrite']) == 0 ? '&type='.$type : '?type='.$type;
include_once("$board_skin_path/write{$type}.skin.php");

 

-list1~.skin.php, view1~.skin.php, view_comment1~.skin.php, write1~.skin.php

  <a href=~.$scach <-추가

  단 수정부분은 .'&type='.$type 이렇게 하세요.

 

달력게시판에 적용하면 2가지의 달력을 볼 수 있습니다.

 

free가 포함된 테이블은 1, gallery가 포함되면 2 이렇게도 됩니다.
if(empty(isset($type)))$type = 1;


//if(empty(isset($type)))$type = 1;
if(empty(isset($type)) && preg_match('/free/', $bo_table))$type = 1;
elseif(empty(isset($type)) && preg_match('/gallery/', $bo_table))$type = 2;
else $type = 1;

관련자료

댓글 0
등록된 댓글이 없습니다.

최근글


  • 글이 없습니다.

새댓글


  • 댓글이 없습니다.
알림 0