클럽 최신글 (첫글에 이미지 잇을시 이미지 출력) 정보
최신글 클럽 최신글 (첫글에 이미지 잇을시 이미지 출력)첨부파일
본문
안녕하세요 ~
시그너스 님의 최근 게시물을 무한 삽질하여 클럽최근게시물로 만들엇슴니다 ..
왕초보라 수정할곳 엄청 만을검니다 ~
한개카테고리의 첫게시물에 그림이 잇으면 그림이 출력이 되고 그림이 없으면 없는대로 출력이 되게 삽질 햇는데 그림이 잇는 최근게시물의 제목글자수를 기준으로 설정 하다 보니 그림이 없을시 최근게시물의 제목글자수가 넘 짧아서 ...........
그림이 출력이 않될때 그림이 출력이 될때 게시물보다 10글자수 자동으로 더 출력이 되게 햇으면 하는 바램에서요 ~ 고수분들 계심 수정해주세요 ~
시그너스 님의 최근 게시물을 무한 삽질하여 클럽최근게시물로 만들엇슴니다 ..
왕초보라 수정할곳 엄청 만을검니다 ~
한개카테고리의 첫게시물에 그림이 잇으면 그림이 출력이 되고 그림이 없으면 없는대로 출력이 되게 삽질 햇는데 그림이 잇는 최근게시물의 제목글자수를 기준으로 설정 하다 보니 그림이 없을시 최근게시물의 제목글자수가 넘 짧아서 ...........
그림이 출력이 않될때 그림이 출력이 될때 게시물보다 10글자수 자동으로 더 출력이 되게 햇으면 하는 바램에서요 ~ 고수분들 계심 수정해주세요 ~
추천
3
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>
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> [{$list[$i][datetime]}] ";
echo "<IMG src='$latest_skin_path/img/dot.gif' border=0> ";
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>
저두 현재 스킨에 저 부분만 수정해서 사용하거든요..
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> [{$list[$i][datetime]}] ";
echo "<IMG src='$latest_skin_path/img/dot.gif' border=0> ";
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>
잘 사용하겠습니다.^
잘 쓰겠습니다 ^^
잘쓰겠습니다. 감사합니다.
앗! 이거닷. 내가 찾던거이....감사합니다.
잘 쓰겠습니다 ^^ 잘 쓰겠습니다 ^^
감사합니다.^^
감사합니다. 잘 사용 할께요~. ^^
감사합니다!!
감사합니다...^^
고마워요. ^^
클럽
감사용~으히히히히히 굿이예요