답변 4개
2년 전
그누보드 사용이 안된다는 뜻이 뭘까요??
상단과 하단만 영카트가 나오고..
게시판, 회원가입, 정보변경 등 모두 사용 가능합니다.
메뉴만 수동으로 추가를 해줘야 합니다.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
2년 전
여러가지 방법중
코드단만 수정해서 동작되도록 하는 방법입니다.
e.g. ${WEB_ROOT} : public_html, www, html, ...
- create custom resource : ${WEB_ROOT}/community/index.php
</p>
<p>user@server:~/www$ ls -al</p>
<p>adm</p>
<p>bbs</p>
<p>...</p>
<p>css</p>
<p>data</p>
<p>extend</p>
<p>...</p>
<p> </p>
<p>user@server:~/www$ mkdir community</p>
<p>user@server:~/www$ touch community/index.php</p>
<p>user@server:~/www$ vi community/index.php</p>
<p>user@server:~/www$ cat community/index.php</p>
<p><?php
$target_dir = dirname(__DIR__) . DIRECTORY_SEPARATOR;
chdir($target_dir);
require $target_dir . 'index.php';
?></p>
<p>
- modify core file : ${WEB_ROOT}/index.php
</p>
<p><?php</p>
<p>// ------------------------------------------ added
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if ($uri == '/' || $uri == '/index.php') { // 서브 경로 존재시 그에 맞게 커스텀
//header('Location: /community'); // 서브 경로 존재시 그에 맞게 커스텀
header('Location: /shop'); // 서브 경로 존재시 그에 맞게 커스텀
exit();
}</p>
<p>// ------------------------------------------ added</p>
<p> </p>
<p>include_once('./_common.php');</p>
<p> </p>
<p>define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가</p>
<p>if(defined('G5_THEME_PATH')) {</p>
<p>...</p>
<p>
- modify core files :
${WEB_ROOT}/shop/shop.head.php
${WEB_ROOT}/head.php
${WEB_ROOT}/theme/basic/shop/shop.head.php
${WEB_ROOT}/theme/basic/head.php
</p>
<p>...</p>
<p> <ul id="hd_define">
<li class="active"><a href="<?php echo G5_URL ?>/community">커뮤니티</a></li></p>
<p> <!-- 서브 경로 존재시 그에 맞게 커스텀 --></p>
<p>...</p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인