오누리빌더 서브메뉴 정보
오누리빌더 서브메뉴
첨부파일
본문
안녕하세요 오랜만에 글 남기게 되었네요..
첨부파일은 오누리빌더 서브메뉴 내용입니다.
현재 모든 메뉴가 해당 게시판 리스트로 이동합니다.
특정게시판관리자에서 여분필드5 에 링크를 입력하면 그 해당링크로 이동되게 하고싶습니다.
이것저것 짜집기 해보다 계속 실패하여 도움좀 받으려고 글남깁니다.
그럼 좋은 답변 기다리겠습니다 감사합니다.
첨부파일은 오누리빌더 서브메뉴 내용입니다.
현재 모든 메뉴가 해당 게시판 리스트로 이동합니다.
특정게시판관리자에서 여분필드5 에 링크를 입력하면 그 해당링크로 이동되게 하고싶습니다.
이것저것 짜집기 해보다 계속 실패하여 도움좀 받으려고 글남깁니다.
그럼 좋은 답변 기다리겠습니다 감사합니다.
댓글 전체
for 문 아래에 다음과 같이 추가하면 될 것 같습니다.
// bo_5 값이 있다면.
if ($list[$i]['bo_5']) {
// bo_5 값으로 지정.
$list[$i]['bo_table'] = $list[$i]['bo_5'];
} else {
$list[$i]['bo_table'] = $list[$i]['bo_table'];
}
// bo_5 값이 있다면.
if ($list[$i]['bo_5']) {
// bo_5 값으로 지정.
$list[$i]['bo_table'] = $list[$i]['bo_5'];
} else {
$list[$i]['bo_table'] = $list[$i]['bo_table'];
}
유아원님 우선 질문에 대해 답변 주셔서 감사합니다.
말씀하신데로 for문 아래 추가해보았는데 적용되지가 않네요 ^^;;
<a href="<?=$g4['path']?>/bbs/board.php?bo_table=<?=$list[$i]['bo_table']?>"><?=$list[ $i]['bo_subject']?></a>
요부분도 어찌 함 건드려야 하지않을까요..????
아 어렵다 정말 ㅠ.ㅠ
말씀하신데로 for문 아래 추가해보았는데 적용되지가 않네요 ^^;;
<a href="<?=$g4['path']?>/bbs/board.php?bo_table=<?=$list[$i]['bo_table']?>"><?=$list[ $i]['bo_subject']?></a>
요부분도 어찌 함 건드려야 하지않을까요..????
아 어렵다 정말 ㅠ.ㅠ
이런식 아닌가 해서 올립니다.
--------------------------------
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
<?
for( $i=0; $i<count($list); $i++) {
if ($list[$i]['bo_5'])
$link_href = $list[$i]['bo_5'];
else
$link_href = $g4[bbs_path]."/board.php?bo_table=".$list[$i][bo_table];
?>
<tr height="25">
<td width="12"><img src="<?=$latest_skin_path?>/img/dot.gif"></td>
<td width="125"><a href="<?=$link_href?>"><?=$list[ $i]['bo_subject']?></a></td>
</tr>
<tr height="1">
<td colspan="2">
<table cellpadding="0" cellspacing="0" width="90%" border="0" align="center">
<tr height="1">
<td background="<?=$latest_skin_path?>/img/_dot.gif"></td>
</tr>
</table>
</td>
</tr>
<? } ?>
</table>
--------------------------------
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
<?
for( $i=0; $i<count($list); $i++) {
if ($list[$i]['bo_5'])
$link_href = $list[$i]['bo_5'];
else
$link_href = $g4[bbs_path]."/board.php?bo_table=".$list[$i][bo_table];
?>
<tr height="25">
<td width="12"><img src="<?=$latest_skin_path?>/img/dot.gif"></td>
<td width="125"><a href="<?=$link_href?>"><?=$list[ $i]['bo_subject']?></a></td>
</tr>
<tr height="1">
<td colspan="2">
<table cellpadding="0" cellspacing="0" width="90%" border="0" align="center">
<tr height="1">
<td background="<?=$latest_skin_path?>/img/_dot.gif"></td>
</tr>
</table>
</td>
</tr>
<? } ?>
</table>
뮤죤님처럼 해줬었는데 도통 $list[$i]['bo_5'] 값이 안 올라와서 다른 방법으로 해결해드렸습니다. 원본이 많이 변한거 같은데 일일이 살펴볼시간도 없구해서요..^^