클럽 최신글 (첫글에 이미지 잇을시 이미지 출력) > 그누4 스킨

그누4 스킨

스킨의 저작권은 해당 스킨 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
스킨 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y
그누보드와 관련이 있지만 스킨과 빌더가 아니면 플러그인 게시판에 올려주세요.

클럽 최신글 (첫글에 이미지 잇을시 이미지 출력) 정보

최신글 클럽 최신글 (첫글에 이미지 잇을시 이미지 출력)

첨부파일

cb_bubble_img.zip (7.5K) 254회 다운로드 2006-07-26 13:18:17

본문

안녕하세요  ~

시그너스 님의 최근 게시물을 무한 삽질하여 클럽최근게시물로 만들엇슴니다 ..
왕초보라 수정할곳 엄청 만을검니다  ~

한개카테고리의 첫게시물에 그림이 잇으면 그림이 출력이 되고 그림이 없으면 없는대로 출력이 되게 삽질 햇는데 그림이 잇는 최근게시물의 제목글자수를 기준으로 설정 하다 보니 그림이 없을시 최근게시물의 제목글자수가 넘 짧아서 ...........

그림이 출력이 않될때 그림이 출력이 될때 게시물보다 10글자수 자동으로 더 출력이 되게 햇으면 하는 바램에서요  ~  고수분들 계심 수정해주세요  ~
추천
3
  • 복사

댓글 전체

lastest.skin.php

17,18 행을

아래 내용으로 바꿔보세요.

 background=<?=$latest_skin_path?>/img/bg.gif height=22><span class="title"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></A></strong></span></TD>
          <td width="50" background=<?=$latest_skin_path?>/img/bg.gif><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" width="45" height="17" align="absolmiddle" border="0"></a></td>
앗 안되세요?

저두 현재 스킨에 저 부분만 수정해서 사용하거든요..

lastest.skin.php 내용 전부 입니다.


------------------------------------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

?>

<style>
.title a:link {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:visited {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:active {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:hover {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFEA78; text-decoration:none;}
</style>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
       
        <TR>
          <TD width=5 height=22><IMG src="<?=$latest_skin_path?>/img/left.gif" border=0></TD>
          <TD style="PADDING-LEFT: 3px" width="100%"
          background=<?=$latest_skin_path?>/img/bg.gif height=22><span class="title"><strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></A></strong></span></TD>
          <td width="50" background=<?=$latest_skin_path?>/img/bg.gif><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" width="45" height="17" align="absolmiddle" border="0"></a></td>
          <TD width=5 height=22><IMG src="<?=$latest_skin_path?>/img/right.gif" border=0></TD></TR></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%">
       
        <TR>
          <TD vAlign=top width=33 height=6><IMG
          src="<?=$latest_skin_path?>/img/arrow.gif"></TD>
          <TD width="100%" height=6></TD></TR></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%">
       
        <TR>
          <TD width=6 height=6><IMG src="<?=$latest_skin_path?>/img/t_left.gif" border=0></TD>
          <TD width="100%" background=<?=$latest_skin_path?>/img/t_bg.gif height=6></TD>
          <TD width=6 height=6><IMG src="<?=$latest_skin_path?>/img/t_right.gif"
        border=0></TD></TR></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
       
        <TR>
          <TD width=6 background=<?=$latest_skin_path?>/img/l_bg.gif></TD>
          <TD>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">


<?

$img = "$g4[path]/data/file/$bo_table/".urlencode($list[0][file][0][file]);

// if (!file_exists($img) || !$list[0][file][0][file])
// $img = "$latest_skin_path/img/no_image.gif";
?>

<tr> <? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="140">
<table border=0>
<tr>
<td><img src="<?=$img?>" width="130" height="120" border="0"></td>
</tr>
</table>
</td><? }else ?>

<td valign="top">
<table width=100%>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>

<!-- <td width="20" height="25" align="center" valign="middle"><img src="<?=$latest_skin_path?>/img/board_icon.gif" width="9" height="13"></td> -->
    <td style='word-break:break-all;' height="20">
        <?
        echo $list[$i][icon_reply] . " ";
//        echo "<IMG src='$latest_skin_path/img/dot.gif' border=0>&nbsp;[{$list[$i][datetime]}]&nbsp;";
        echo "<IMG src='$latest_skin_path/img/dot.gif' border=0>&nbsp;";
        echo "<a href='{$list[$i][href]}&sca=". urlencode($ca_name). "'>";
        if ($list[$i][is_notice])
            echo "<font style='font-family:돋움, SimHei, SimSun; font-size:9pt; color:#39A6B5;'><strong>{$list[$i][subject]}</strong></font>";
        else
            echo "<font style='font-family:돋움, SimHei, SimSun; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
        echo "</a>";

        if ($list[$i][comment_cnt])
            echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A; background-color:#f7f3f2;'>{$list[$i][comment_cnt]}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            echo " " . $list[$i][icon_new];
            echo " " . $list[$i][icon_file];
            echo " " . $list[$i][icon_link];
            echo " " . $list[$i][icon_hot];
            echo " " . $list[$i][icon_secret];
        ?>
    </td>
</tr>
<tr><td colspan=2  background=<?=$latest_skin_path?>/img/line.gif height=1></td></tr>
<? } ?>
</table>

</td>
</tr>




<? if (count($list) == 0) { ?>
<tr><td colspan=2 align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table></TD>
          <TD width=6 background=<?=$latest_skin_path?>/img/r_bg.gif></TD></TR></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%">
       
        <TR>
          <TD width=6 height=6><IMG src="<?=$latest_skin_path?>/img/b_left.gif" border=0></TD>
          <TD width="100%" background=<?=$latest_skin_path?>/img/b_bg.gif height=6></TD>
          <TD width=6 height=6><IMG src="<?=$latest_skin_path?>/img/b_right.gif"
        border=0></TD></TR></TABLE>
© SIRSOFT
현재 페이지 제일 처음으로