안녕하세요^^
제목대로
메인 화면이 랜덤으로 출력이 되게 수정을 했는데요.
랜덤으로 다 출력이 잘 되는데요.
뭐가 문제인지 오른쪽에 있는 최신상품만 아무것도 출력이 되질 않습니다.
해결 방법 좀 부탁드립니다^^;
아~ 그리고 메인화면 방문자수에서 접속자 수를 관리자만 전체 다 보이고
일반 접속자들은 전체만 보이게 할려면 어떤 파일에서 어떻게 수정해야 하는지도 부탁드립니다^^
제목대로
메인 화면이 랜덤으로 출력이 되게 수정을 했는데요.
랜덤으로 다 출력이 잘 되는데요.
뭐가 문제인지 오른쪽에 있는 최신상품만 아무것도 출력이 되질 않습니다.
해결 방법 좀 부탁드립니다^^;
아~ 그리고 메인화면 방문자수에서 접속자 수를 관리자만 전체 다 보이고
일반 접속자들은 전체만 보이게 할려면 어떤 파일에서 어떻게 수정해야 하는지도 부탁드립니다^^
댓글 2개
lib/shop.lib.php 에 추가하신 코드에서 발생된 자바스크립트 오류로 인한것 입니다.
if (file_exists($full_img) && $img)
{
if (!$width)
{
$size = getimagesize($full_img);
$width = $size[0];
$height = $size[1];
}
$str = "<img id='$img' src='$g4[url]/data/item/$img' width='$width' height='$height' border='0'";
//$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=80)';\" onmouseout=\"this.style.filter='none'\">";
$str .= ">";
}
else
{
$str = "<img id='$img' src='$g4[shop_img_url]/no_image.gif' border='0' ";
if ($width)
$str .= "width='$width' height='$height'";
else
$str .= "width='$default[de_mimg_width]' height='$default[de_mimg_height]'";
//$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=90)';\" onmouseout=\"this.style.filter='none'\">";
$str .= ">";
}
skin/visit/shop_visit/visit.skin.php 를
<? if ($is_admin) { ?>
<tr><td> · 오늘 : <?=number_format($visit[1])?> <? if ($is_admin == "super") { ?><a href="<?=$g4[admin_path]?>/visit_list.php"><img src="<?=$visit_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a><?}?></td></tr>
<tr><td> · 어제 : <?=number_format($visit[2])?></td></tr>
<tr><td> · 최대 : <?=number_format($visit[3])?></td></tr>
<? } ?>
<tr><td> · 전체 : <?=number_format($visit[4])?></td></tr>
이렇게 수정하시면 됩니다.
if (file_exists($full_img) && $img)
{
if (!$width)
{
$size = getimagesize($full_img);
$width = $size[0];
$height = $size[1];
}
$str = "<img id='$img' src='$g4[url]/data/item/$img' width='$width' height='$height' border='0'";
//$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=80)';\" onmouseout=\"this.style.filter='none'\">";
$str .= ">";
}
else
{
$str = "<img id='$img' src='$g4[shop_img_url]/no_image.gif' border='0' ";
if ($width)
$str .= "width='$width' height='$height'";
else
$str .= "width='$default[de_mimg_width]' height='$default[de_mimg_height]'";
//$str .= "style=\"FILTER: alpha(opacity=100)\" onmouseover=\"this.style.filter = 'alpha(opacity=90)';\" onmouseout=\"this.style.filter='none'\">";
$str .= ">";
}
skin/visit/shop_visit/visit.skin.php 를
<? if ($is_admin) { ?>
<tr><td> · 오늘 : <?=number_format($visit[1])?> <? if ($is_admin == "super") { ?><a href="<?=$g4[admin_path]?>/visit_list.php"><img src="<?=$visit_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a><?}?></td></tr>
<tr><td> · 어제 : <?=number_format($visit[2])?></td></tr>
<tr><td> · 최대 : <?=number_format($visit[3])?></td></tr>
<? } ?>
<tr><td> · 전체 : <?=number_format($visit[4])?></td></tr>
이렇게 수정하시면 됩니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기