게시판을 디렉토리(검색사이트)처럼 보이게하기. 정보
그누호환 게시판을 디렉토리(검색사이트)처럼 보이게하기.관련링크
http://www.phil114.com
506회 연결
본문
제 사이트의 소스를 오픈합니다..
주석이 달려 있으니 수정해서 쓰세요.
아래글의 발전 내지는 응용입니다.
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&sselect=wr_name&stext=mando&soperator=1&page=2&wr_id=2474
아래의 소스를 category.php로 저장후
보여주고 싶은곳에
<? include "./category.php"; ?>
를 합니다.
###############소스시작###################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "NONE");
$icon_gre="<img src='./image/s_t.gif' border=0 align=absmiddle>";
// include "./$cfg[bbs_dir]/gnusearch.cfg.php";
?>
<style>
.pad4{padding-top:0px;padding-bottom:0px;padding-left:3px;padding-right:3px;}
.pad5{padding-top:0px;padding-bottom:0px;padding-left:3px;padding-right:3px;}
.pad6{padding-top:0px;padding-bottom:3px;padding-left:3px;padding-right:3px;}
</style>
<table width='96%' cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top>
<?
$sql = " select * from $cfg[table_group] order by gr_id ";
$result = sql_query($sql);
//$gr_id=row[gr_id];
echo "
<table width=100% cellpadding=1 cellspacing=0 align=center style='border:1px solid #dddddd;' bgcolor=#ffffff>
<tr><td height=13></td></tr>";
$t=0;
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$gr_id=$row[gr_id];
if($gr_id==notice||$gr_id==goods||$gr_id==misc||$gr_id==column||$gr_id==tiptech||$gr_id==knowledge||$gr_id==clip){}//제외시킬 그룹명...
else{
$t++;
$gr_href="./$cfg[index]?doc=gr_list.php&gr_id=$gr_id";
// ↑ 그룹명을 클릭하면 그룹명.php으로 간다..
$icon_gr="<img src='./bbs/imgs/icon_gr.gif' border=0 align=absmiddle>";// 그룹명 앞에 올 이미지.
echo "
<td width=50% height=19 valign=top style='padding-left:11px;' >
<table width=100% cellpadding=0 cellspacing=0>
<tr><td height=0></td></tr>
<tr>
<td colspan=10 style='padding-left:5px;padding-right:3px'><a href='$gr_href' style='color:#393D55;font-size:10pt;font-family:웹고딕9; text-decoration: underline'><b>$row[gr_subject]</b></a></td>
</tr>
<tr><td height=17 style='padding-left:9px;text-align:justify;'>";
$sql2 = " select bo_subject, bo_table,gr_id,bo_total_count from $cfg[table_board] where gr_id = '$row[gr_id]' order by bo_subject ";
$result2 = sql_query($sql2);
$l=0;
$k=0;
//$sql3 = " select bo_total_count from $cfg[table_board] where bo_table='$row2[bo_table]' order by bo_total_count ";
//$result3 = sql_query($sql3);
for ($j=0;$row2 = mysql_fetch_array($result2); $j++) {
$bo_sub=cut_str(get_text($row2[bo_subject]),28,"");
$co=$row2[bo_total_count];
$k++;
$l++;//게시판앞에 숫자 보이기 $bo_sub 앞에 $l을 넣어주면 숫자가 증가되면서 보임.
if($row2[bo_table]==clip){}// 특정게시판제외(여기서는 게시판명==clip)...
else{ echo "
<a href='./?doc=bbs/gnuboard.php&bo_table=$row2[bo_table]' title='$row2[bo_subject]' style='color:000000;font-size:9pt;font-family:웹고딕9'>$bo_sub,</a>";
if($k%3==0){//해당그룹내 게시판 3개만 보여주고 줄을 바꾼다. $k%숫자 <=='숫자'로 보여줄 게시판수 조정
echo " <br>";
if($k==12){//그룹내게시판이 12개 이상미면12개에서 멈춘다.
echo "</td>";
break;}
}
}
}
if($t%2==1){
echo "</tr></table></td><td width=2></td><td>";}
else{echo "</tr></table></td><td>";}
mysql_free_result($result2);
if($t%2==0) echo "<tr><td height=0></td></tr></tr><tr>";
}}mysql_free_result($result);
?>
</tr>
<tr><td colspan=10 height=4></td></tr>
</table>
</td>
</tr>
</table>
#################소스끝######################
주석이 달려 있으니 수정해서 쓰세요.
아래글의 발전 내지는 응용입니다.
http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&sselect=wr_name&stext=mando&soperator=1&page=2&wr_id=2474
아래의 소스를 category.php로 저장후
보여주고 싶은곳에
<? include "./category.php"; ?>
를 합니다.
###############소스시작###################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "NONE");
$icon_gre="<img src='./image/s_t.gif' border=0 align=absmiddle>";
// include "./$cfg[bbs_dir]/gnusearch.cfg.php";
?>
<style>
.pad4{padding-top:0px;padding-bottom:0px;padding-left:3px;padding-right:3px;}
.pad5{padding-top:0px;padding-bottom:0px;padding-left:3px;padding-right:3px;}
.pad6{padding-top:0px;padding-bottom:3px;padding-left:3px;padding-right:3px;}
</style>
<table width='96%' cellpadding=0 cellspacing=0 align=center>
<tr>
<td valign=top>
<?
$sql = " select * from $cfg[table_group] order by gr_id ";
$result = sql_query($sql);
//$gr_id=row[gr_id];
echo "
<table width=100% cellpadding=1 cellspacing=0 align=center style='border:1px solid #dddddd;' bgcolor=#ffffff>
<tr><td height=13></td></tr>";
$t=0;
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$gr_id=$row[gr_id];
if($gr_id==notice||$gr_id==goods||$gr_id==misc||$gr_id==column||$gr_id==tiptech||$gr_id==knowledge||$gr_id==clip){}//제외시킬 그룹명...
else{
$t++;
$gr_href="./$cfg[index]?doc=gr_list.php&gr_id=$gr_id";
// ↑ 그룹명을 클릭하면 그룹명.php으로 간다..
$icon_gr="<img src='./bbs/imgs/icon_gr.gif' border=0 align=absmiddle>";// 그룹명 앞에 올 이미지.
echo "
<td width=50% height=19 valign=top style='padding-left:11px;' >
<table width=100% cellpadding=0 cellspacing=0>
<tr><td height=0></td></tr>
<tr>
<td colspan=10 style='padding-left:5px;padding-right:3px'><a href='$gr_href' style='color:#393D55;font-size:10pt;font-family:웹고딕9; text-decoration: underline'><b>$row[gr_subject]</b></a></td>
</tr>
<tr><td height=17 style='padding-left:9px;text-align:justify;'>";
$sql2 = " select bo_subject, bo_table,gr_id,bo_total_count from $cfg[table_board] where gr_id = '$row[gr_id]' order by bo_subject ";
$result2 = sql_query($sql2);
$l=0;
$k=0;
//$sql3 = " select bo_total_count from $cfg[table_board] where bo_table='$row2[bo_table]' order by bo_total_count ";
//$result3 = sql_query($sql3);
for ($j=0;$row2 = mysql_fetch_array($result2); $j++) {
$bo_sub=cut_str(get_text($row2[bo_subject]),28,"");
$co=$row2[bo_total_count];
$k++;
$l++;//게시판앞에 숫자 보이기 $bo_sub 앞에 $l을 넣어주면 숫자가 증가되면서 보임.
if($row2[bo_table]==clip){}// 특정게시판제외(여기서는 게시판명==clip)...
else{ echo "
<a href='./?doc=bbs/gnuboard.php&bo_table=$row2[bo_table]' title='$row2[bo_subject]' style='color:000000;font-size:9pt;font-family:웹고딕9'>$bo_sub,</a>";
if($k%3==0){//해당그룹내 게시판 3개만 보여주고 줄을 바꾼다. $k%숫자 <=='숫자'로 보여줄 게시판수 조정
echo " <br>";
if($k==12){//그룹내게시판이 12개 이상미면12개에서 멈춘다.
echo "</td>";
break;}
}
}
}
if($t%2==1){
echo "</tr></table></td><td width=2></td><td>";}
else{echo "</tr></table></td><td>";}
mysql_free_result($result2);
if($t%2==0) echo "<tr><td height=0></td></tr></tr><tr>";
}}mysql_free_result($result);
?>
</tr>
<tr><td colspan=10 height=4></td></tr>
</table>
</td>
</tr>
</table>
#################소스끝######################
추천
0
0
댓글 전체
애공 초보가 어캐 만드나요?
gr_list.php
gr_list.php
셔리야님....죄송합니다...내공부족르로 카테고리는.......
?
atimeforus님
gr_list.php는 만들어 쓰세요......
gr_list.php는 만들어 쓰세요......
gr_list.php 이것이 없다는데요.
잘 됩니다^^
넵~~
약좀 뿌리고 확인 할께요^^
약좀 뿌리고 확인 할께요^^
정말 멋진 소스입니다..^^
감사히 쓰겠습니다..^^
감사히 쓰겠습니다..^^
칠쟁이님 소스를 보아하니 text-decoration: underline 이 살아 있네요,,,
냉큼 죽이셔요....
냉큼 죽이셔요....
if($row2[bo_table]==tip2||$row2[bo_table]==tip3||$row2[bo_table]==tip2){}//
짝때기 두개씩 세워 주시면...
밑줄 문제는....????
짝때기 두개씩 세워 주시면...
밑줄 문제는....????
아~ 알았습니다.
게시글이 몇개인지 알려 주는 소스이군요...
세심한 배려 감사합니다...^^
게시글이 몇개인지 알려 주는 소스이군요...
세심한 배려 감사합니다...^^
고맙습니다.
좋은 팁을 올려 주셨군요.....복받으실거에요....^^
그런데 아래의 소스는 어디에 쓰이는 것인가요?
//$sql3 = " select bo_total_count from $cfg[table_board] where bo_table='$row2[bo_table]' order by bo_total_count ";
//$result3 = sql_query($sql3);
.
.
.
$co=$row2[bo_total_count];
좋은 팁을 올려 주셨군요.....복받으실거에요....^^
그런데 아래의 소스는 어디에 쓰이는 것인가요?
//$sql3 = " select bo_total_count from $cfg[table_board] where bo_table='$row2[bo_table]' order by bo_total_count ";
//$result3 = sql_query($sql3);
.
.
.
$co=$row2[bo_total_count];
와우~~ 만도님 예전사이트와 지금의 사이트......
지금은 거의 포탈사이트 만드시는 수준이시군요...............
아~~ bbking은 아직도 제자리 걸음입니다..............ㅡ,.ㅡ;;
지금은 거의 포탈사이트 만드시는 수준이시군요...............
아~~ bbking은 아직도 제자리 걸음입니다..............ㅡ,.ㅡ;;
좋습니다.~~^^
그런데 그룹하고 게시판을 일일이 다 만들어줘야 한다는게 압박인데요..
[그룹-게시판]으로 된 걸 [게시판 - 카테고리]를 이용해서 할수는 없나요?? ^^;;
날씨가 정말 덥습니다.. ;;
그런데 그룹하고 게시판을 일일이 다 만들어줘야 한다는게 압박인데요..
[그룹-게시판]으로 된 걸 [게시판 - 카테고리]를 이용해서 할수는 없나요?? ^^;;
날씨가 정말 덥습니다.. ;;
http://arttoart.pe.kr/gnu3/?doc=category.php
밑줄이 ...그냥 나오죠?
if($row2[bo_table]==tip2){}// 특정게시판제외... <===여러개 할려면 어떻게 묶어 주는지요?
밑줄이 ...그냥 나오죠?
if($row2[bo_table]==tip2){}// 특정게시판제외... <===여러개 할려면 어떻게 묶어 주는지요?
그렇군요..
위소스 수정했어요 칠쟁이님...
위소스 수정했어요 칠쟁이님...
이상하네요...저는 지금 쓰고 잇는 소스인데요...
크아~~이놈도 안되아블구먼유^^<==이거 어디를 띄어쓰기 해야하죠?
히히히~
히히히~
질문답변 게시판에 까만도둑님 질문 박갑성님 답변
참고 하세요.^_^
참고 하세요.^_^
이상스럽게 안되 불구만...^^
if($gr_id==my||$gr_id==goods||$gr_id==study||$gr_id==column||$gr_id==tiptech||$gr_id==knowledge||$gr_id==clip){}//제외시킬 게시판이 아니라 그룹 이네요...특정 게시판 제외는 어딘가에서 봤는데...
찿아봐야 겠네요...
if($gr_id==my||$gr_id==goods||$gr_id==study||$gr_id==column||$gr_id==tiptech||$gr_id==knowledge||$gr_id==clip){}//제외시킬 게시판이 아니라 그룹 이네요...특정 게시판 제외는 어딘가에서 봤는데...
찿아봐야 겠네요...
감사 합니다^^
<td colspan=10 style='padding-left:5px;padding-right:3px'><a href='$gr_href' style='color:#393D55;font-size:10pt;font-family:웹고딕9; text-decoration: underline'><b>$row[gr_subject]</b></a></td>
위부분에서요 "text-decoration: underline"을 삭제하시면 되겠읍니다..
위부분에서요 "text-decoration: underline"을 삭제하시면 되겠읍니다..
만도님 아주 좋습니다^^
밑줄을 없애고 싶은데 ...알려주세요..
밑줄을 없애고 싶은데 ...알려주세요..
네... 까만도둑님이셨죠?...
이제는 안정을 찿으셨나 보군요^^
대 환영 합니다!!
대 환영 합니다!!
이전에 ****님께만 공개를 하셨던걸로 기억 됩니다. ^^b
아무튼 좋은 참고 자료가 될겁니다. 아꽈님도 좀더 멋지게
꾸미시기를 ....^_^
아무튼 좋은 참고 자료가 될겁니다. 아꽈님도 좀더 멋지게
꾸미시기를 ....^_^
만도님... 감사합니다. 정말 궁금했었거든요... *^^*
잘 사용하겠습니다
잘 사용하겠습니다
만도님 필? 받으신듯 ....^^
필요 하셨던 분들이 꽤나 되셨던걸로 기억이 ....
감사합니다.
필요 하셨던 분들이 꽤나 되셨던걸로 기억이 ....
감사합니다.