[code]
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180" height="40" background="<?=$connect_skin_path?>/img/visit_bg.gif">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" align="right"><img src="<?=$connect_skin_path?>/img/icon.gif" width="14" height="14"></td>
<td width="170"> <a href='<?=$g4['bbs_path']?>/current_connect.php'><strong>동접수</strong>: <?=$row['total_cnt']?>명</a></td>
</tr>
</table></td>
</tr>
</table>
[/code]
/skin/connect/basic/connect.skin.php 소스코드의 일부입니다.
관리자일 경우에만 a href태그가 발생하게 하고 싶은데요..
여러분 문의 를 해 보았지만, 답변대로 해봐도 관리자가 a href태그가 생기지는 않더라구요..
도움 부탁드립니다. 한 4분정도가 답변해주셧는데 다 안되네요..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180" height="40" background="<?=$connect_skin_path?>/img/visit_bg.gif">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" align="right"><img src="<?=$connect_skin_path?>/img/icon.gif" width="14" height="14"></td>
<td width="170"> <a href='<?=$g4['bbs_path']?>/current_connect.php'><strong>동접수</strong>: <?=$row['total_cnt']?>명</a></td>
</tr>
</table></td>
</tr>
</table>
[/code]
/skin/connect/basic/connect.skin.php 소스코드의 일부입니다.
관리자일 경우에만 a href태그가 발생하게 하고 싶은데요..
여러분 문의 를 해 보았지만, 답변대로 해봐도 관리자가 a href태그가 생기지는 않더라구요..
도움 부탁드립니다. 한 4분정도가 답변해주셧는데 다 안되네요..
댓글 2개
[code]
<?php
if($is_admin == 'super'){
echo "<a href='$g4[bbs_path]/current_connect.php'>";
}
echo "<strong>동접</strong>: $row[total_cnt]명";
if($is_admin == 'super'){
echo "</a>";
}
?>
[/code]
요렇게 했을때 안된다는건 최고관리자가아닌 일반관리자라는 소리이신가요??
위 코드는 최고관리자만 링크를 걸도록 해드린거구요 모든 관리자가 다 볼 수 있도록 하시려면
[code]
<?php
if($is_admin){
echo "<a href='$g4[bbs_path]/current_connect.php'>";
}
echo "<strong>동접</strong>: $row[total_cnt]명";
if($is_admin){
echo "</a>";
}
?>
[/code]
이렇게 하시면될듯합니다 ㅇㅁㅇ
<?php
if($is_admin == 'super'){
echo "<a href='$g4[bbs_path]/current_connect.php'>";
}
echo "<strong>동접</strong>: $row[total_cnt]명";
if($is_admin == 'super'){
echo "</a>";
}
?>
[/code]
요렇게 했을때 안된다는건 최고관리자가아닌 일반관리자라는 소리이신가요??
위 코드는 최고관리자만 링크를 걸도록 해드린거구요 모든 관리자가 다 볼 수 있도록 하시려면
[code]
<?php
if($is_admin){
echo "<a href='$g4[bbs_path]/current_connect.php'>";
}
echo "<strong>동접</strong>: $row[total_cnt]명";
if($is_admin){
echo "</a>";
}
?>
[/code]
이렇게 하시면될듯합니다 ㅇㅁㅇ
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기