작업실

그누보드5 아미나스킨 모바일 아이콘을 한글로 바꿔줬습니다. (업그레이드)

컨텐츠 정보

본문



스샷보면 아시겠죠? ^^


로그인 안하면 반응도 안보이고 쪽지함도 안보입니다.


로그인하면 반응 보이고 쪽지함 보이고, 새쪽지 오면 숫자 나타납니다.


반응이 있으면 반응 옆에 숫자 붙구요.



수정하는 방법


1. /amina/thema/basic/mobile/header.php 수정하기

 

 


<div id="at-logo">
<span class="logo-left">
<?php if($is_member) { ?>
<a href="<?php echo G5_URL;?>/?m=login">내정보<span class="sound_only"> 내정보</span></a>
<?php } else { ?>
<a href="<?php echo G5_URL;?>/?m=login">로그인<span class="sound_only"> 로그인</span></a>
<?php } ?>
</span>
<span class="logo-right">
<?php if($is_member) { ?>
<a href="<?php echo G5_BBS_URL; ?>/memo.php" target="_blank"><?php echo $memo_msg; ?></a>
<?php } else { ?>
<a href="<?php echo G5_BBS_URL; ?>/register.php">회원가입<span class="sound_only"> 회원가입</span></a>
<?php } ?>
</span>
<span class="logo">
<a href="<?php echo $site_url; ?>"><?php echo $site_logo; ?></a>
</span>
</div>
<div id="at-menu">
<table>
<tr>
<td class="first" title="메뉴보기"><a href="<?php echo G5_URL;?>/?m=menu">메뉴<span class="sound_only"> 메뉴보기</span></a></td>
<?php if($is_member) { ?>
<td title="내글반응"><a href="<?php echo AMINA_URL; ?>/response.php">반응<?php echo $response_cnt;?><span class="sound_only"> 내글반응</span></a></td>
<?php } else { ?>
<?php } ?>
<td title="새글모음"><a href="<?php echo G5_BBS_URL; ?>/new.php">새글<span class="sound_only"> 새글모음</span></a></td>
<td title="전체검색"><a href="<?php echo G5_BBS_URL; ?>/search.php">검색<span class="sound_only"> 전체검색</span></a></td>
<td class="last" title="태그"><a href="<?php echo AMINA_URL; ?>/tag.php?qm=popular">태그<span class="sound_only"> 태그</span></a></td>
</tr>
</table>
</div>

 


2. /amina/thema/basic/thema.php 에서 마지막 ?> 위에

 

 


// 읽지 않은 쪽지가 있다면
if ($is_member) {
$sql = " select count(*) as cnt from {$g5['memo_table']} where me_recv_mb_id = '{$member['mb_id']}' and me_read_datetime = '0000-00-00 00:00:00' ";
$row = sql_fetch($sql);
$memo_not_read = $row['cnt'];
}
//새쪽지
$memo_msg = ($memo_not_read > 0) ? "새쪽지<span class='ol_new_memo'>({$memo_not_read})</span>" : "쪽지함";

 

 

위와 같이 넣어주면 됩니다.


꼭 둘다 해줘야 잘 나옵니다.

관련자료

댓글 9 / 1 페이지

우헤헤헤님의 댓글

2. /amina/thema/basic/thema.php 에서 마지막 ?> 위에
이게 이렇게죠?

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

//기본설정
$site_url = G5_URL; //사이트 URL
$site_logo = G5_IS_MOBILE ? '<i class="fa fa-leaf"></i> AMINA' : '<i class="fa fa-leaf"></i> AMINA';
$site_copyright = 'Copyright &copy; 2013 AMINA.co.kr. All Rights Reserved.';

//제외 그룹 및 게시판 - 세미콜론(;)으로 구분 ex) $gr_exclude='test1;test2;test3';
$gr_exclude = '';
$bo_exclude = '';

//사이즈 - 모바일은 자동 100%로 적용
$content_width = 970;
$left_width = 0;
$right_width = 0;
$margin_width = 30;

// 읽지 않은 쪽지가 있다면
if ($is_member) {
    $sql = " select count(*) as cnt from {$g5['memo_table']} where me_recv_mb_id = '{$member['mb_id']}' and me_read_datetime = '0000-00-00 00:00:00' ";
    $row = sql_fetch($sql);
    $memo_not_read = $row['cnt'];
}


//새쪽지
<span style="background-color:transparent;"></span>
$memo_msg = ($memo_not_read > 0) ? "새쪽지<span class='ol_new_memo'>({$memo_not_read})</span>" : "쪽지함";
?>

근데 안되서요 허허헛;
전체 157 / 10 페이지
RSS

최근글


새댓글


알림 0