채택완료

pc/모바일 게시판의 상단의 게시판 제목에 링크를 걸고 싶습니다.

2018-06-04 (월) 17:16:31 3,719

2038640821_1528100068.9961.png 2038640821_1528100072.5626.png

코드상으로는 스킨의 head.php 에서 <h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2> 이 부분인데요..

현재 접속 중인 게시판의 리스트 주소 "/bbs/board.php?bo_table=free"를 저 위 이미지의 붉은 박스에 있는 게시판 제목에 링크를 걸고 싶습니다.

왜 하필 게시판 스킨에 없고.. head.php에 있는지.. ㅠㅠ 코드를 만질 수 있는 상황이 아니여서 질문 올립니다.

혹시 주소를 호출할 수 있는 방법이 없을까요?

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

head.php 에 아래와 같이 수정해주세요.

<?php

if ($bo_table != "") { //게시판인 경우

?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo get_head_title($g5['title']); ?></a></h2>

<?php } else { ?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2>

<?php } ?>

답변에 대한 댓글 1개

2018-06-04 (월) 20:00:44
감사합니다..

head.php 에 아래와 같이 수정해주세요.

<?php

if ($bo_table=="free") {

?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=free"><?php echo get_head_title($g5['title']); ?></a></h2>

<?php } else { ?>

<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2>

<?php } ?>

답변에 대한 댓글 1개

2018-06-04 (월) 17:49:17
어.. 음... 게시판이 free 뿐만 아니라 더 다양해서요.. ㅠㅠ

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