<?php
//ver1.0 150424 @_untitle_d
$tmp_g5_head_title_exp = explode(' > ', $g5_head_title);
$tmp_meta_exp = explode(' ', $tmp_g5_head_title_exp[0]);
$tmp_meta = '';
for ($i=0; $i<count($tmp_meta_exp); $i++)
$tmp_meta .= $tmp_meta_exp[$i].', ';
$tmp_meta = substr($tmp_meta, 0, -2);
?>
<meta name="robots" content="ALL" />
<meta name="title" content="<?=$tmp_meta?>" />
<meta name="subject" content="<?=$tmp_meta?>" />
<meta name="keywords" content="<?=$tmp_meta?>" />
<meta name="description" content="<?=$tmp_meta?>" />
메타태그 최적화 소스인데 이게 그누보드5만되는거같은데
그누보드4에서 적용시킬려면 어떻게해야될까요..
답변 3개 / 댓글 1개
일단은
head.sub.php 파일에서
if (!isset($g4['title'])) { $g4['title'] = $config['cf_title']; $g4_head_title = $g4['title'];}else { $g4_head_title = $g4['title']; // 상태바에 표시될 제목 $g4_head_title .= " | ".$config['cf_title'];}
부분을 추가해주고
<?php
//ver1.0 150424 @_untitle_d
$tmp_g4_head_title_exp = explode(' > ', $g4_head_title);
$tmp_meta_exp = explode(' ', $tmp_g4_head_title_exp[0]);
$tmp_meta = '';
for ($i=0; $i<count($tmp_meta_exp); $i++)
$tmp_meta .= $tmp_meta_exp[$i].', ';
$tmp_meta = substr($tmp_meta, 0, -2);
?>
<meta name="robots" content="ALL" />
<meta name="title" content="<?=$tmp_meta?>" />
<meta name="subject" content="<?=$tmp_meta?>" />
<meta name="keywords" content="<?=$tmp_meta?>" />
<meta name="description" content="<?=$tmp_meta?>" />
와 같이 적용해 보세요.
답변에 대한 댓글 1개
사례금을 준다니... 의뢰게시판으로 가야할 듯...
신고가 안되네요.
배추빌더4 안에도 저거 비슷한 소스 있어요. 최신 버전 받아서 살펴보세요.
head.sub.php 파일 안에 있습니다.
답변을 작성하려면 로그인이 필요합니다.