그누보드 페이지 페이지 포럼 누락 이라고나오는데 채택완료
60개 이상의 포럼 페이지에 토론 포럼의 구조화된 데이터가 누락되었습니다

어떤게 잘못되어있는건가요?
ai 물어봤는데 이렇게 나오길래 무슨말인지 몰라서 선생님들에게 물어보려합니다...ㅜ.ㅜ

어떤게 잘못되어있는건가요?
https://xn--3v0bv7uj8g.org/ 제홈페이지는 여기구요 아래 링크는 구글 서치콘솔 링크입니다
답변 4개
채택된 답변
+20 포인트
마르스컴퍼니
1개월 전
* /skin/board/basic/view.skin.php 하단부에 추가
Copy
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "",
"articleBody": "",
"author": {
"@type": "Person",
"name": ""
},
"datePublished": "",
"dateModified": "",
"url": ""
}
로그인 후 평가할 수 있습니다
답변에 대한 댓글 7개
J
1개월 전
if(data.count) {
$el.find("strong").text(number_format(String(data.count)));
if($tx.attr("id").search("nogood") > -1) {
$tx.text("이 글을 비추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
} else {
$tx.text("이 글을 추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
}
}
}, "json"
);
}
<?php
// 게시글 정보 세팅
$title = get_text($view['wr_subject']);
$content = get_text($view['wr_content']);
$author = get_text($view['wr_name']);
$date = date('c', strtotime($view['wr_datetime']));
$modified = date('c', strtotime(isset($view['wr_last']) ? $view['wr_last'] : $view['wr_datetime']));
$url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "<?php echo $title; ?>",
"articleBody": "<?php echo preg_replace('/\s+/', ' ', strip_tags($content)); ?>",
"author": {
"@type": "Person",
"name": "<?php echo $author; ?>"
},
"datePublished": "<?php echo $date; ?>",
"dateModified": "<?php echo $modified; ?>",
"url": "<?php echo $url; ?>"
}
</script>
<!-- } 게시글 읽기 끝 -->
이렇게 넣었습니다.
$el.find("strong").text(number_format(String(data.count)));
if($tx.attr("id").search("nogood") > -1) {
$tx.text("이 글을 비추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
} else {
$tx.text("이 글을 추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
}
}
}, "json"
);
}
<?php
// 게시글 정보 세팅
$title = get_text($view['wr_subject']);
$content = get_text($view['wr_content']);
$author = get_text($view['wr_name']);
$date = date('c', strtotime($view['wr_datetime']));
$modified = date('c', strtotime(isset($view['wr_last']) ? $view['wr_last'] : $view['wr_datetime']));
$url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "<?php echo $title; ?>",
"articleBody": "<?php echo preg_replace('/\s+/', ' ', strip_tags($content)); ?>",
"author": {
"@type": "Person",
"name": "<?php echo $author; ?>"
},
"datePublished": "<?php echo $date; ?>",
"dateModified": "<?php echo $modified; ?>",
"url": "<?php echo $url; ?>"
}
</script>
<!-- } 게시글 읽기 끝 -->
이렇게 넣었습니다.
�
마르스컴퍼니
1개월 전
<?php
// 게시글 정보 세팅
전에 </script> 가 들어가야 됩니다.
</script>
<?php
// 게시글 정보 세팅
// 게시글 정보 세팅
전에 </script> 가 들어가야 됩니다.
</script>
<?php
// 게시글 정보 세팅
J
1개월 전
if(data.count) {
$el.find("strong").text(number_format(String(data.count)));
if($tx.attr("id").search("nogood") > -1) {
$tx.text("이 글을 비추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
} else {
$tx.text("이 글을 추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
}
}
}, "json"
);
</script>
<?php
// 게시글 정보 세팅
$title = get_text($view['wr_subject']);
$content = get_text($view['wr_content']);
$author = get_text($view['wr_name']);
$date = date('c', strtotime($view['wr_datetime']));
$modified = date('c', strtotime(isset($view['wr_last']) ? $view['wr_last'] : $view['wr_datetime']));
$url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "<?php echo $title; ?>",
"articleBody": "<?php echo preg_replace('/\s+/', ' ', strip_tags($content)); ?>",
"author": {
"@type": "Person",
"name": "<?php echo $author; ?>"
},
"datePublished": "<?php echo $date; ?>",
"dateModified": "<?php echo $modified; ?>",
"url": "<?php echo $url; ?>"
}
</script>
<!-- } 게시글 읽기 끝 -->
이렇게 넣는거 맞죠?
$el.find("strong").text(number_format(String(data.count)));
if($tx.attr("id").search("nogood") > -1) {
$tx.text("이 글을 비추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
} else {
$tx.text("이 글을 추천하셨습니다.");
$tx.fadeIn(200).delay(2500).fadeOut(200);
}
}
}, "json"
);
</script>
<?php
// 게시글 정보 세팅
$title = get_text($view['wr_subject']);
$content = get_text($view['wr_content']);
$author = get_text($view['wr_name']);
$date = date('c', strtotime($view['wr_datetime']));
$modified = date('c', strtotime(isset($view['wr_last']) ? $view['wr_last'] : $view['wr_datetime']));
$url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "<?php echo $title; ?>",
"articleBody": "<?php echo preg_replace('/\s+/', ' ', strip_tags($content)); ?>",
"author": {
"@type": "Person",
"name": "<?php echo $author; ?>"
},
"datePublished": "<?php echo $date; ?>",
"dateModified": "<?php echo $modified; ?>",
"url": "<?php echo $url; ?>"
}
</script>
<!-- } 게시글 읽기 끝 -->
이렇게 넣는거 맞죠?
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
�
마르스컴퍼니
1개월 전
8개 이상의 페이지 URL 을 확인, 소스보기로 'skin/' 검색하여..
해당 스킨의 뷰 페이지에 비슷한 코드를 넣어주면 될 것 같습니다.
해당 스킨의 뷰 페이지에 비슷한 코드를 넣어주면 될 것 같습니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
�
마르스컴퍼니
1개월 전
<script> ~ </script> 구조이기 때문에,
기존 </script> 바로 다음 줄에 넣어야 합니다.
<script> ~ <script> ~ </script> ~ </script> 같은 중첩 구조가 되면 오류가 발생합니다.
기존 </script> 바로 다음 줄에 넣어야 합니다.
<script> ~ <script> ~ </script> ~ </script> 같은 중첩 구조가 되면 오류가 발생합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인