메뉴 건너뛰기

조회 수 876 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
///////////////////// 설정부분 /////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
$site_name = "치즈의 사이트"; // 사이트 이름을 적어주세요 (예 : 치즈의 사이트)
$site_hellow = "치즈의 사이트에 방문해주셔셔 감사합니다."; // 페이지 재목을 알 수 없을때 타이틀에 표시할 내용을 적어주세요 (예 : 치즈의 사이트에 방문해주셔셔 감사합니다.)
$deport_key = "치즈,도치즈,프로그래머,일상"; // 이곳에 사이트의 키워드를 적어주세요. (예 : 치즈, 도치즈, 프로그래머 등등)

$capy_right = "Copyright © Dochis. All rights reserved."; // 이사이트의 카피라이트를 적어주세요.
$capy_rghter = "DOCHIS"; // 이사이트의 소유자를 적어주세요.

$site_description = "도치즈의 개인홈페이지입니다. 안녕하세요^^"; // 이사이트의 내용, 소개글같은거 적어주시면됩니다.

$site_url = "http://dochis.net/bbs/"; // 사이트의 주소입니다. 그누보드설치경로 + bbs 까지 적어주세요.

///// sns 관련
$facebook_appid = ""; // 페이스북 앱 아이디가 있으시면 적어주세요
$sns_icon_img = ""; // 트위터, 페이스북에 공유할떄 사용할 이미지의 주소를 적습니다. 없으면 적지않으셔도됩니다.
$metoday_tags = "도치즈넷,도치즈,공지사항"; // 미투데이로 보내기하실때 사용하실 sns 태그입니다.
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////

첨부파일을 그누보드의 plugin 폴더에 넣으신 뒤 head.sub.php 파일의 <title> 태그 위에 incluede 해주시면될듯합니다 ㅎㅎㅎ

첨부파일에 설정하는부분이 있는데

4번째줄부터


<title><?php echo $g5_head_title; ?></title>
코드 위에


include_once G5_PLUGIN_URL . "/meta_seo_plugin.php";


첨부파일 전채코드


<?php
<?php
if($wr_id && $bo_table) { $meta_post_cottent = sql_fetch("select wr_subject, wr_content, wr_name, wr_datetime from g5_write_{$bo_table} where wr_id = '$wr_id' limit 1"); }

///////////////////// 설정부분 /////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
$site_name = "치즈의 사이트"; // 사이트 이름을 적어주세요 (예 : 치즈의 사이트)
$site_hellow = "치즈의 사이트에 방문해주셔셔 감사합니다."; // 페이지 재목을 알 수 없을때 타이틀에 표시할 내용을 적어주세요 (예 : 치즈의 사이트에 방문해주셔셔 감사합니다.)
$deport_key = "치즈,도치즈,프로그래머,일상"; // 이곳에 사이트의 키워드를 적어주세요. (예 : 치즈, 도치즈, 프로그래머 등등)

$capy_right = "Copyright © Dochis. All rights reserved."; // 이사이트의 카피라이트를 적어주세요.
$capy_rghter = "DOCHIS"; // 이사이트의 소유자를 적어주세요.

$site_description = "도치즈의 개인홈페이지입니다. 안녕하세요^^"; // 이사이트의 내용, 소개글같은거 적어주시면됩니다.

$site_url = "http://dochis.net/bbs/"; // 사이트의 주소입니다. 그누보드설치경로 + bbs 까지 적어주세요.

///// sns 관련
$facebook_appid = ""; // 페이스북 앱 아이디가 있으시면 적어주세요
$sns_icon_img = ""; // 트위터, 페이스북에 공유할떄 사용할 이미지의 주소를 적습니다. 없으면 적지않으셔도됩니다.
$metoday_tags = "도치즈넷,도치즈,공지사항"; // 미투데이로 보내기하실때 사용하실 sns 태그입니다.
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////



if($meta_post_cottent) {
	$view['wr_name'] = "이 게시물에 대한 모든 저작권은 작성자에게 있습니다. ( 작성자: ".$meta_post_cottent['wr_name']." )"; // 이곳은 게시물의 카피라이트를 적어주세요.
	$view['author'] = $meta_post_cottent['wr_name']; // 글쓴이 (게시물의 저작자)
	
	$post_key = conv_subject(strip_tags($meta_post_cottent['wr_subject'].$meta_post_cottent['wr_content']),500);
	
	$is_meta_author_data = $meta_post_cottent['wr_datetime'];
	
}

if($board['bo_subject'] || $meta_post_cottent['wr_content']) {
	if(!$meta_post_cottent) {
		$view['meta_description'] = str_replace("\r\n"," ",conv_subject($site_name . " > 게시판 > ".$board['bo_subject']." (".$page."페이지)"));	
	} else {
		$view['meta_description'] = str_replace("\r\n"," ",conv_subject($site_name . " > ".$board['bo_subject']." | ".strip_tags($meta_post_cottent['wr_content']), 500));
	}
	
	if($wr_id == "0" ) { unset($wr_id); } 
	$view['meta_canonical'] = $site_url."tb.php/$bo_table/$wr_id"; // 게시물의 짧은주소 (트래백주소)
}

$keywords = str_replace(array("\r\n","!","@","#","$"," "),",",$deport_key.",".$post_key); // 게시물 내용에 특수문자나 개행문자가있으면 콤마로 바꿔 키워드로 인식되게함
$keywords = str_replace(array(" "),"",$keywords); // 게시물 내용에 공백있으면 콤마로 바꿔 키워드로 인식되게함
$keywords = array_unique(explode(",",$keywords)); // 모든키워드를 배열화하여 키워드에 중복을 재거함
$keywords = array_filter(array_map('trim', $keywords)); // 중복제거
$keywords = implode(",",$keywords); // 배열화했던 키워드들을 평문화한다. (문자열화)
	



$g5_head_title = (!$g5_head_title) ? $site_hellow : $g5_head_title;
$meta_subject = (!$g5_head_title) ? $site_hellow : $g5_head_title;
$meta_title = (!$g5_head_title) ? $site_hellow : $g5_head_title;
$meta_copyright = (!$view['wr_name']) ? $capy_right : $view['wr_name'];
$meta_author = (!$view['wr_name']) ? $capy_rghter : $view['author'];
$meta_keywords = $keywords;

$meta_description = (!$view['meta_description']) ? $site_description.$deport_key : str_replace(array(" ","\r\n"),"",$view['meta_description']);

$meta_distribution = "Global";

$meta_canonical = (!$view['meta_canonical']) ? 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : $view['meta_canonical'];

?>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<!-- 검색로봇 -->
<meta name="Location"		content="KR">
<meta name="subject"		content="<?php echo $meta_subject // 페이지 주재 ?>" />
<meta name="title"			content="<?php echo $meta_title // 페이지 재목 ?>" />
<meta name="copyright"		content="<?php echo $meta_copyright // 저작권 ?>" />
<meta name="author"			content="<?php echo $meta_author // 작성자 ?>">
<meta name="keywords"		content="<?php echo $meta_keywords // 페이지 키워드 ?>" />
<meta name="description" 	content="<?php echo $meta_description // 페이지 요약설명 ?>" />
<meta name="distribution"	content="<?php echo $meta_distribution // 배포자 ?>" />
<meta name="publisher"		content="<?php echo $capy_rghter // 페이지의 공급자 ?>" />
<meta name="robots" 		content="index,follow" />
<link rel="canonical" 		href="<?php echo $meta_canonical ?>">

<?php
if($is_meta_author_data) { // 작성일
	echo "<meta name='author-date(date)' content='$is_meta_author_data'/>";
}
?>

<!-- 트위터 -->
<meta name="twitter:card"			content="summary">
<meta name="twitter:title"			content="<?php echo $meta_title // 페이지 재목 ?>">
<meta name="twitter:site"           content="<?php echo $site_name // 사이트 이름 ?>">
<meta name="twitter:creator"        content="<?php echo $meta_author // 작성자 ?>">
<meta name="twitter:image"          content="<?php echo $sns_icon_img // 섬네일 이미지 ?>">
<meta name="twitter:description"    content="<?php echo $meta_title // 페이지 재목 ?>">

<!-- 페이스북 -->
<meta property="og:title"			content="<?php echo $meta_title // 페이지 재목 ?>"/>
<meta property="og:type"			content="website"/>
<meta property="og:site_name"		content="<?php echo $site_name // 사이트 이름 ?>"/> 
<meta property="fb:app_id"			content="<?php echo $facebook_appid // 페이스북 앱 아이디 ?>"/>
<meta property="og:image"			content="<?php echo $sns_icon_img // 섬네일 이미지 ?>"/>
<meta property="og:url"				content="<?php echo $meta_canonical // 페이지 주소 ?>"/>
<meta property="og:description"		content="<?php echo $meta_title // 페이지 재목 ?>"/>

<!-- 미투데이 -->
<meta property="me2:post_body"      content="<?php echo $meta_title // 페이지 재목 ?>"/>
<meta property="me2:post_tag"       content="<?php echo $metoday_tags.",".$meta_canonical ?>"/>
<meta property="me2:image"          content="<?php echo $sns_icon_img // 섬네일 이미지 ?>"/>

<!-- Google -->
<meta itemprop="name"				content="<?php echo $meta_title // 페이지 재목 ?>">
<meta itemprop="description"		content="<?php echo $meta_description // 페이지 요약설명 ?>">
<meta itemprop="image"				content="<?php echo $sns_icon_img // 섬네일 이미지 ?>">




  1. jQuery 요소(elements) 미디어 컨버팅 플러그인

    Date2019.12.13 Views320
    Read More
  2. 글 작성시 랜덤형 자동 댓글로 인사 멘트남기기

    Date2019.12.13 Views320
    Read More
  3. iframe 금지된 사이트 iframe 으로 불러오기

    Date2019.12.13 Views385
    Read More
  4. 이미지에 워터마크 넣기

    Date2019.12.13 Views389
    Read More
  5. style 수정시 서버에서 로딩되게 하기

    Date2019.12.13 Views255
    Read More
  6. 우측 퀵메뉴

    Date2019.12.13 Views382
    Read More
  7. 특정 게시판에서 이미지 파일만 업로드 허용하기

    Date2019.12.09 Views367
    Read More
  8. 쉽고 간편한 인쇄 팁

    Date2019.04.29 Views743
    Read More
  9. 그누보드5 검색최적화 방법입니다

    Date2019.04.29 Views876
    Read More
  10. 영카트5 DB 테이블별로 덤프하기

    Date2019.04.29 Views863
    Read More
  11. 게시판 기본 스킨 목록 페이지 살펴보기 1 - list.skin.php

    Date2017.04.13 Views2950
    Read More
  12. 게시판 기본 스킨 목록 페이지 살펴보기 2 - 상세 설명

    Date2017.04.13 Views2321
    Read More
  13. 게시판 기본 스킨 글쓰기 페이지 살펴보기 1 - write.skin.php

    Date2017.04.13 Views2549
    Read More
  14. 게시판 기본 스킨 글쓰기 페이지 살펴보기 2 - 상세 설명

    Date2017.04.13 Views2912
    Read More
  15. 게시판 기본 스킨 내용보기 페이지 살펴보기 2 - 상세 설명

    Date2017.04.13 Views2527
    Read More
  16. 여분필드를 활용한 게시판 스킨 제작 - 기본적인 사용 방법

    Date2017.04.13 Views2892
    Read More
  17. 여분필드를 활용한 게시판 스킨 제작 - 기초 예제1-1

    Date2017.04.13 Views3474
    Read More
  18. 여분필드를 활용한 게시판 스킨 제작 - 기초 예제1-2

    Date2017.04.13 Views4262
    Read More
  19. 여분필드를 활용한 게시판 스킨 제작 - 기초 예제1-3

    Date2017.04.13 Views3276
    Read More
  20. 게시판 글쓰기 페이지에 스마트 에디터 2개 이상 사용하기

    Date2017.04.12 Views2775
    Read More
Board Pagination Prev 1 2 3 4 Next
/ 4

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved