view.skin.php 파일첨부 이미지 정보
view.skin.php 파일첨부 이미지본문
view.skin.php 파일첨부 이미지 말인데요
100% 주고싶은데요
어떻게 봐꾸어야할지 모르겠어요..답답해서 올려볼게요
고수님좀 알려주시면 감사하겠습니다.
// 파일 출력
$tmp_width=" width='{$board[bo_image_width]}' name=";
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($view[file][$i][image_width] >= $board[bo_image_width])
$view[file][$i][view]=preg_replace("/name=/i",$tmp_width,$view[file][$i][view]);
$src = $view[file][$i][path]."/".$view[file][$i][file];
$images= $view[file][$i][view];
$images = str_replace("name='target_resize_image[]'","",$view[file][$i][view]);
$images = str_replace("onclick='image_window(this);' style='cursor:pointer;'","class='view_img'",$images);
if ($width > 100) { $width = $width."px"; } else { $width = $width; }
echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'>".$images . "</a><span class='img_shadow'></span></p>";
100% 주고싶은데요
어떻게 봐꾸어야할지 모르겠어요..답답해서 올려볼게요
고수님좀 알려주시면 감사하겠습니다.
// 파일 출력
$tmp_width=" width='{$board[bo_image_width]}' name=";
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($view[file][$i][image_width] >= $board[bo_image_width])
$view[file][$i][view]=preg_replace("/name=/i",$tmp_width,$view[file][$i][view]);
$src = $view[file][$i][path]."/".$view[file][$i][file];
$images= $view[file][$i][view];
$images = str_replace("name='target_resize_image[]'","",$view[file][$i][view]);
$images = str_replace("onclick='image_window(this);' style='cursor:pointer;'","class='view_img'",$images);
if ($width > 100) { $width = $width."px"; } else { $width = $width; }
echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'>".$images . "</a><span class='img_shadow'></span></p>";
댓글 전체
$images<--여기에 폭을 설정하는 태그가 들어있기 때문입니다
$images=~~ 부분 다 지워버리고 그냥 $src를 이용해서 원하는 태그를 만들면 됩니다
<img src='$src' width='$width' class='view_img'>
$images=~~ 부분 다 지워버리고 그냥 $src를 이용해서 원하는 태그를 만들면 됩니다
<img src='$src' width='$width' class='view_img'>
답변 너무 감사드립니다 해결했어요..
// 파일 출력
$tmp_width=" width='{$board[bo_image_width]}' name=";
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($view[file][$i][image_width] >= $board[bo_image_width])
$view[file][$i][view]=preg_replace("/name=/i",$tmp_width,$view[file][$i][view]);
$src = $view[file][$i][path]."/".$view[file][$i][file];
//$images= $view[file][$i][view];
//$images = str_replace("name='target_resize_image[]'","",$view[file][$i][view]);
//$images = str_replace("onclick='image_window(this);' style='cursor:pointer;'","class='view_img'",$images);
if ($width > 100) { $width = $width."px"; } else { $width = $width; }
//echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'>".$images . "</a><span class='img_shadow'></span></p>";
echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'><img src='$src' width='$width' class='view_img'></a><span class='img_shadow'></span></p>";
// 파일 출력
$tmp_width=" width='{$board[bo_image_width]}' name=";
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($view[file][$i][image_width] >= $board[bo_image_width])
$view[file][$i][view]=preg_replace("/name=/i",$tmp_width,$view[file][$i][view]);
$src = $view[file][$i][path]."/".$view[file][$i][file];
//$images= $view[file][$i][view];
//$images = str_replace("name='target_resize_image[]'","",$view[file][$i][view]);
//$images = str_replace("onclick='image_window(this);' style='cursor:pointer;'","class='view_img'",$images);
if ($width > 100) { $width = $width."px"; } else { $width = $width; }
//echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'>".$images . "</a><span class='img_shadow'></span></p>";
echo "<p class='ac' style='width:$width'><a class=\"fancybox\" href='$src' data-fancybox-group='$view[wr_id]' title='$view[wr_subject]'><img src='$src' width='$width' class='view_img'></a><span class='img_shadow'></span></p>";