li>a{font-weight:500;letter-spacing:-.5px} .owl-theme .owl-controls{margin-top:0} .topbar-e1{line-height:25px}audio,canvas,progress,video{vertical-align:bottom} /*.board-list img.lazyloaded{transition:none!important}*/ /*.board-view img.lazyloaded{transition:opacity 300ms}*/ .info-alert{display:table;margin:30px auto 0;padding:0 5px;border-top:1px dotted #eee;border-bottom:1px dotted #eee;color:rgb(120, 120, 120);max-width:100%;background-color:#fafafa} .jw-time-tip{min-width:50px} /*.basic-bs-main > br{content:''}*/ .breadcrumb>li{color:#777} .breadcrumb>li+li:before{font-family:"Font Awesome 6 Free";font-weight:600;content:"\f105"} .emo-img{width:55px;max-width:55px!important;height:55px!important;object-fit:contain;background-color:#fff!important;border-radius:40%;margin:0 5px 5px}/*object-fit:cover;object-position:0 0*//*padding:2px;box-shadow:inset -1px -1px 5px rgb(0 0 0 / 30%)*/ @media (prefers-color-scheme:dark) { .eyoom-emo-top.my-loves{max-width:50px} .eyoom-emo-top{overflow:hidden;max-width:40px;height:40px;border-radius:50%;margin:5px 5px 0 0!important;background-color:#fff!important} .eyoom-emo-top img{padding-top:3.5pxpx} .header-e1.header .navbar-collapse{border-top:inherit;border-bottom:0;box-shadow:none} .header-fixed .navbar-collapse.header-fixed-bar{border-top:0} .header-fixed .topbar-e1.header-fixed-bar{background:#1f1f1f} .board-view .good_voters .no_voter img,.view-comment-no-item img,.empty-table img{margin-bottom:5px!important;background:#ffffff;border-radius:50%} } /*html{scroll-behavior:smooth}*/ .ellipsis{display:block;overflow:hidden;white-space:nowrap;word-wrap:normal;text-overflow:ellipsis;-o-text-overflow:ellipsis} /* .tab-pane.active{-webkit-animation:fadeIn 350ms ease-in-out .05s both;animation:fadeIn 350ms ease-in-out .05s both} @-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}} @keyframes fadeIn{from{opacity:0}to{opacity:1}} */ /* .tab-pane.active{animation: slide-up .3s ease-out;} @keyframes slide-up{ 0% { opacity: 0; transform: translateY(50%)} 100% { opacity: 1; transform: translateY(0)} } */ /* .tab-pane.active{animation: slide-down .3s ease-out;} @keyframes slide-down{ 0% { opacity: 0; transform: translateY(-50%)} 100% { opacity: 1; transform: translateY(0)} } */ .basic-bs-side h4 i{color:#54545a} .footer-e1 .copyright{background:initial!important} .header-e1.header .topbar-e1 .btn-group li{border:0} .topbar-e1 .badge,.ol-after-bottom .badge{padding:0 10px} .board-list canvas{width:135%} .board-view-con a,.view-comment .media-body p a{color:#00acee;font-weight:600} /* 본문 a태그 칼라 설정 */ .board-view-con a:hover,.view-comment .media-body p a:hover{color:#1f5aa6} .board-list .row{margin:0 -10px} /*body,.navbar-fixed-top,.navbar-fixed-bottom{margin-right:0!important}*/ /*.rotate-45{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}*/ .content-box p:not(:empty),.content-border-box p:not(:empty){position:relative;padding:10px;margin:0 auto}/*border:1px solid #999*/ ::-webkit-file-upload-button{cursor:pointer} .swal2-container{z-index:10000} .board-view-con .tooltip{max-width:180px;min-width:180px} p.fontsize-adjust, span.fontsize-adjust{font-size:16px!important} .tooltip-inner{padding:5px} .panel-heading .clearfix{height:0} .media-body .media-heading span img{display:inline-block} /*.fa{text-rendering:optimizeSpeed;-webkit-font-smoothing:none}*/ .modal-sm .modal-footer{text-align:center} /*.topbar-e1 li.btn-group > a{vertical-align:middle}*//*position:relative;display:inline-block;*/ .topbar-e1 .top-e1-contacts .dropdown-menu li{padding:3px 5px} .dropdown-menu .divider:last-of-type{height:0!imporant} .yadolee-header p.site-name-txt{font-size:16px!important;font-weight:900!important} .gsc-control-cse{padding:3px 0 0;margin:0;border-color:#eee} .gsc-control-cse .gsc-input-box{padding-top:0;border:0;background-color:none} .gsc-control-cse form.gsc-search-box{margin:0} .gsc-control-cse .gsc-search-button-v2{padding:0 10px} .gsc-control-cse .gsib_a,.gsc-control-cse .gsib_b{padding:0 5px} .gsc-control-cse .gsib_b .gsst_b{font-size:20px;padding:0;margin-top:-5px} .gsc-control-cse .gsib_b .gsst_a{padding:0} .gsc-control-cse .gsc-search-button-v2{display:none} .gsc-control-cse .gsc-search-button{display:none} table.gsc-search-box td{vertical-align:middle;line-height:27px} .gsc-modal-background-image{background:#000} .gsc-modal-background-image-visible{opacity:.75} .gsc-results-wrapper-overlay{width:80%;height:90%;top:1%;padding:20px 10px} .gsc-control-cse *{font-family:"Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",sans-serif;font-size:1.02em} .gsc-results-close-btn{top:10px;right:10px} .gs-web-image-box,.gs-promotion-image-box{width:100px} .gs-web-image-box .gs-image,.gs-promotion-image-box .gs-promotion-image{border:0;max-width:100%} .header-fixed-bar .top-e1-contacts .btn-group ul.dropdown-menu{border-top:0!important} .header .navbar-header{display:none} /*.header-e1.header .navbar-collapse.header-fixed-bar{border-bottom:1px solid #ccc;box-shadow:0 5px 15px -5px rgba(30,30,30,.55);-moz-box-shadow:0 5px 15px -5px rgba(30,30,30,.55);-webkit-box-shadow:0 5px 15px -5px rgba(30,30,30,.55)}*/ /*.header-fixed-bar{animation:smoothScroll .3s forwards} @keyframes smoothScroll{0%{transform:translateY(-15px);}100%{transform:translateY(0px)}}*/ .gsc-control-cse .gsib_b .gsst_a{padding:0;margin-right:-15px} .sch_word{font-size:inherit;color:#fff;background:#87b822;padding:1px 3px 1px 2px;line-height:inherit;margin:inherit;border-radius:5px}

[이윰] 현재 게시글 스크랩 갯수 본문에 보여주기

페이지 정보

shadow2fox shadow2fox 2,463 1 2 2019.04.28 18:38:42

평점

  • 평점 : 5점 (3명 참여)

본문

현재 게시글 스크랩 갯수 본문에 보여주기
1. 그누보드5/eyoom/user_program/board/view.skin.php를 열어 다음 소스를 삽입한다.


    // 현재 글 스크랩 갯수 구하기
    $sql = " select count(*) as cnt from {$g5['scrap_table']} where bo_table = '{$bo_table}' and wr_id = '$wr_id' ";
    $row = sql_fetch($sql);
    $scrap_count = $row['cnt'];

2. 스킨/view.skin.html을 열어 다음과 같이 수정한다.

수정 전

<a href="{_scrap_href}" target="_blank" class="btn-e btn-e-yellow rounded" type="button" onclick="win_scrap(this.href); return false;">스크랩</a>

수정 후

<a href="{_scrap_href}" target="_blank" class="btn-e btn-e-yellow rounded" type="button" onclick="win_scrap(this.href); return false;">스크랩{? _scrap_count > 0} <strong>{_scrap_count}</strong>{/}</a>
추천인 2
  • 012i1052u
    내사랑
  • skyfield4u
    하늘구장
shadow2fox
10
shadow2fox - 회원등급 : 자연/Level 147 - 포인트 : 2,607,149
레벨 147
경험치 3,225,027

Progress Bar 12.99%

- 가입일 : 2015-03-10 12:21:44
- 서명 : 인간에게 가장 큰 선물은 자기 자신에게 기회를 주는 것이다. - 크리스 가드너, Chris Gardner -
- 자기소개 : There's never a shortcut to happiness.

댓글1

하늘구장님의 댓글

skyfield4u
하늘구장 2019.05.01 12:47
잘 활용할께요 늘 감사합니다

축하합니다. 첫 댓글로 74경험치를 획득하였습니다.

Total 7591138 페이지
제목 글쓴이 날짜 조회 추천
그누•영카트  🏆 영카트 5.3.3.1 shadow2fox 2019.07.16 2,303 0
그누•영카트  🏆 그누보드 5.3.3.1 shadow2fox 2019.07.16 2,143 0
이윰  댓글+4🏆 태그 앞과 뒤 공백 제거하기 shadow2fox 2019.06.25 2,379 2
그누•영카트  🏆 영카트 5.3.3 shadow2fox 2019.06.19 1,955 0
그누•영카트  🏆 그누보드 5.3.3 shadow2fox 2019.06.19 1,961 0
그누•영카트  🏆 영카트 5.3.2.9.1 shadow2fox 2019.05.31 2,034 0
그누•영카트  🏆 그누보드 5.3.2.9.1 shadow2fox 2019.05.31 1,998 0
그누•영카트  🏆 영카트 5.3.2.9 shadow2fox 2019.05.30 11,880 0
그누•영카트  🏆 그누보드 5.3.2.9 shadow2fox 2019.05.30 1,845 0
이윰  댓글+1🏆 마이홈과 마이페이지에서 사이드바 사용하지 않기 shadow2fox 2019.05.26 2,217 1
이윰  댓글+2🏆 본문 내 첨부된 이미지와 에디터로 업로드한 이미지 갯수 구하기 shadow2fox 2019.05.12 2,107 1
이윰  🏆 내글반응 페이지 내 전체 선택 체크박스 올바르게 적용하기 shadow2fox 2019.05.06 2,219 0
이윰  🏆 게시글 보기시 본문에 포함된 주석 감추기 shadow2fox 2019.05.01 2,043 0
이윰  댓글+1🏆 🚩 현재 게시글 스크랩 갯수 본문에 보여주기 shadow2fox 2019.04.28 2,464 2
그누•영카트  🏆 영카트 5.3.2.8.1 shadow2fox 2019.04.23 2,200 0
이윰  🏆 Eyoom Builder 3.0.9 패치 shadow2fox 2019.03.25 2,681 0
그누•영카트  🏆 영카트 5.3.2.8 shadow2fox 2019.03.19 2,333 0
그누•영카트  🏆 그누보드 5.3.2.8 shadow2fox 2019.03.19 2,007 0
이윰  댓글+2🏆 출석부 선착순 포인트 올바르게 적용하기 shadow2fox 2019.03.16 2,526 2
이윰  댓글+1🏆 게시글 추천시 글 작성자에게 포인트 부여하기 shadow2fox 2019.03.15 2,083 1