엑스엠엘 선배님!!

2021-06-17 (목) 23:40:58 4,025
|

답변 1개 / 댓글 4개

2021-06-17 (목) 23:51:56

제목은 질문 내용에 맞게 해 주시기 바랍니다.

올리신 소스는, /index.php 기준으로는

현재 브라우저 소스보기"해서 나온 내용과 다릅니다.

답변에 대한 댓글 4개

2021-06-17 (목) 23:57:21
영카트5 설치후 테마 https://theme.sir.kr/youngcart5/everyday/
다운받아서 테마 적용방법을 https://sir.kr/faq/57 이대로 보고
그대로 적용했습니다. 그런대 틀리다니 ... 제가 잘몰라서 그럽니다. ㅠㅠ
<div id="logo">

<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/logo.png" alt="<?php echo $config['cf_title']; ?>"></a>
여기 이렇게 해서 /index.php에 이 글씨가 나오는지 확인해 보세요.
</div>

head.php는 다음 위치에 있습니다.
$ find . -name head.php
./head.php
./mobile/head.php
./theme/basic/head.php
./theme/basic/mobile/head.php
그외 다운로드 받으신 테마 폴더 밑에...
2021-06-18 (금) 10:10:21
/index.php 파이에는 말씀해주신 <div id="logo">

<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/logo.png" alt="<?php echo $config['cf_title']; ?>"></a>
없습니다.
<?php
if (!defined('_INDEX_')) define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

if (G5_IS_MOBILE) {
include_once(G5_THEME_MOBILE_PATH.'/index.php');
return;
}

if(G5_COMMUNITY_USE === false) {
include_once(G5_THEME_SHOP_PATH.'/index.php');
return;
}

include_once(G5_THEME_PATH.'/head.php');
?>

<h2 class="sound_only">최신글</h2>

<div class="latest_top_wr">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_list', 'free', 4, 23); // 최소설치시 자동생성되는 자유게시판
echo latest('theme/pic_list', 'qa', 4, 23); // 최소설치시 자동생성되는 질문답변게시판
echo latest('theme/pic_list', 'notice', 4, 23); // 최소설치시 자동생성되는 공지사항게시판
?>
</div>
<div class="latest_wr">
<!-- 사진 최신글2 { -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/pic_block', 'gallery', 4, 23); // 최소설치시 자동생성되는 갤러리게시판
?>
<!-- } 사진 최신글2 끝 -->
</div>

<div class="latest_wr">
<!-- 최신글 시작 { -->
<?php
// 최신글
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'mobile' ";
if(!$is_admin)
$sql .= " and a.bo_use_cert = '' ";
$sql .= " and a.bo_table not in ('notice', 'gallery') "; //공지사항과 갤러리 게시판은 제외
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$lt_style = '';
if ($i%3 !== 0 ) $lt_style = "margin-left:2%";
?>
<div style="float:left;<?php echo $lt_style ?>" class="lt_wr">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/basic', $row['bo_table'], 6, 24);
?>
</div>
<?php
}
?>
<!-- } 최신글 끝 -->
</div>

<?php
include_once(G5_THEME_PATH.'/tail.php');

이렇게 나올뿐입니다.
제가 잘못 알려 드렸군요.

index.php에 있다는 뜻이 아니라
브라우저로 index.php를 열었을 때 추가한 텍스트가 보이는지 물어 본 거였습니다.
보인다면 그 head.php를 사용하는 것이니까요.

답변을 작성하려면 로그인이 필요합니다.