테스트 사이트 - 개발 중인 베타 버전입니다

sns 소셜공유 이미지 삭제 또는 숨김 채택완료

magicpjy 3년 전 조회 1,939

모바일 보기 상품 이미지 입니다 

표시된 마크 이미지를 안보이게 하고 싶습니다 

 

홈피 처음 구축했을 때 작업하신 프리랜서분께 SNS 이미지 지워달라고 요청했었는데 ...

PC쪽은 안보이는데 모바일쪽은 이렇게 존재하네요    

지금 수정 요청 드려도 AS 못해준다고 하고  ㅠㅠ 

결국 제가 SIR게시판 보며 찾고있는데요  

 

지금까지 수정하면서 알게된 것으로는 

이미지는 SIKN 폴더고 . 메뉴는 SHOP 폴더 안 PhP 파일을 수정 

숨김표시는 <!-- / -->  로 하면 되던데 어떤파일의 어떤 부분을 봐야 하는건지 모르겠습니다 

 

게시판 Q&A 글을 참고삼아  

mobile>skin>shop>basic>item.form.sikn.php 에서 "facebook" 문자가 있는곳에서

<!-- / --> 표시를 하였는데  숨김적용을 하였더니  best 이미지에서는 안보이고 

상품정렬은 보이고 이미지 클릭하면 안보이고 ...

 

 

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

답변 2개

채택된 답변
+20 포인트
복스리
3년 전

간단한 방법으로는 false로 값만 변경하시면됩니다.

/shop 및에 index.php나 list.php같은 부분에서  set_view('sns', true); 의 값을 false로 변경만 하시면됩니다

아래 소스가 있으니 참고 바랍니다.

 

</p>

<p> </p>

<p>$list = new item_list($skin_file, $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);

$list->set_category($ca['ca_id'], 1);                                                                                

$list->set_category($ca['ca_id'], 2);                                                                                

$list->set_category($ca['ca_id'], 3);                                                                                

$list->set_is_page(true);                                                                                            

$list->set_order_by($order_by);                                                                                      

$list->set_from_record($from_record);                                                                                

$list->set_view('it_img', true);                                                                                     

$list->set_view('it_id', false);                                                                                     

$list->set_view('it_name', true);                                                                                    

$list->set_view('it_basic', true);                                                                                   

$list->set_view('it_cust_price', true);                                                                              

$list->set_view('it_price', true);                                                                                   

$list->set_view('it_icon', true);                                                                                    

$list->set_view('sns', true);  <-- 이부분을 false로 바꾸시면 안나옵니다.                                                                                      

echo $list->run();                                                                                                   </p>

<p> </p>

<p>

도움이 되셨기를.~~

로그인 후 평가할 수 있습니다

답변에 대한 댓글 3개

m
magicpjy
3년 전
위 소스는 mobile>shop>index.php 파일에 있었고 내용은 히트상품, 추천상품,최신상품,인기상품,할인상품까지더라구요 . 상품진열에 관한내용은 mobile>skin>shop>basic>list.10.skin.php 에서 찾았는데 내용이 이렇게 되어 있어요

<?php } ?>

<!-- 메인상품진열 10 시작 { -->
<?php
$is_gallery_list = ($this->ca_id && isset($_COOKIE['ck_itemlist'.$this->ca_id.'_type'])) ? $_COOKIE['ck_itemlist'.$this->ca_id.'_type'] : '';
if(!$is_gallery_list){
$is_gallery_list = 'gallery';
}
$li_width = ($is_gallery_list === 'gallery') ? intval(100 / $this->list_mod) : 100;
$li_width_style = ' style="width:'.$li_width.'%;"';
$ul_sct_class = ($is_gallery_list === 'gallery') ? 'sct_10' : 'sct_20';

$i = 0;
foreach((array) $list as $row){
if( empty($row) ) continue;

$item_link_href = shop_item_url($row['it_id']); // 상품링크

if ($i == 0) {
if ($this->css) {
echo "<ul id=\"sct_wrap\" class=\"{$this->css}\">\n";
} else {
echo "<ul id=\"sct_wrap\" class=\"sct ".$ul_sct_class."\">\n";
}
}

if($i % $this->list_mod == 0)
$li_clear = ' sct_clear';
else
$li_clear = '';

echo "<li class=\"sct_li{$li_clear}\"$li_width_style><div class=\"li_wr is_view_type_list\">\n";

if ($this->href) {
echo "<div class=\"sct_img\"><a href=\"{$item_link_href}\">\n";
}

if ($this->view_it_img) {
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
}

if ($this->href) {
echo "</a></div>\n";
}


if ($this->view_it_id) {
echo "<div class=\"sct_id\">&lt;".stripslashes($row['it_id'])."&gt;</div>\n";
}

if ($this->href) {
echo "<div class=\"sct_txt\"><a href=\"{$item_link_href}\" class=\"sct_a\">\n";
}

if ($this->view_it_name) {
echo stripslashes($row['it_name'])."\n";
}

if ($this->href) {
echo "</a></div>\n";
}

if ($this->view_it_price) {
echo "<div class=\"sct_cost\">\n";
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
echo "</div>\n";
}

if ($this->view_sns) {
$sns_top = $this->img_height + 10;
$sns_url = $item_link_href;
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
echo "<div class=\"sct_sns\" style=\"top:{$sns_top}px\">";
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/gplus.png');
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
echo "</div>\n";
}

echo "</div></li>\n";

$i++;
}

if ($i > 0) echo "</ul>\n";

if($i == 0) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
?>
<!-- } 상품진열 10 끝 -->
복스리
3년 전
아래보이는 해당 코드 주석처리 하면될꺼 같습니다.

[code]
if ($this->view_sns) {
$sns_top = $this->img_height + 10;
$sns_url = $item_link_href;
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
echo "<div class=\"sct_sns\">";
echo "<h3>SNS 공유</h3>";
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/facebook.png');
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/twitter.png');
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/gplus.png');
echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png');
echo "<button type=\"button\" class=\"sct_sns_cls\"><span class=\"sound_only\">닫기</span><i class=\"fa fa-times\" aria-hidden=\"true\"></i></button>";
echo "</div>\n";
}
[/code]
m
magicpjy
3년 전
주석처리가 뭔가요? 복스리님이 주신 소스 복사해서 붙여넣기 하면 되나요?
어느 파일에다 하면되나요?

감사합니다 알려주신 소스을 참고삼아 검색하니 좋은 링크글을 찾았네요
https://gnustudy.com/bbs/board.php?bo_table=yc_tip&wr_id=90

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

thisgun
3년 전

css 에서 display:none 속성으로 안보이게 하는것이 제일 간단합니다.

 

 

돌아가는 아무 css 파일에서

 

.sct_10 .sct_sns {display:none}

 

또는

 

#sct_wrap .sct_sns {display:none}

 

또는

 

#sct .sct_sns {display:none}

 

이렇게 하면 화면에서 안보여요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

m
magicpjy
3년 전
다른 프로그램 할줄모르고 php 파일 메모장으로 읽고 수정후 ftp로 올리는 방식밖에 할줄모르는데 css 도 메도장읽어서 설정하면 되나요?

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

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

로그인