묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
2005.08.29 04:27
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
$lang->msg_exists_nick_name = \
댓글 3
-
홈리스
2005.08.30 15:13
-
홈리스
2005.08.30 14:56
1)
http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&no=4673참고하세요
2)
print_gallery2 로 적으세요(숫자2)
<? print_gallery2 ("default/default_gallery","갤러리","comunity6", 5, 80, 80, 5)?> -
홈리스
2005.08.30 14:56
// 갤러리 이미지 제목 뽑아오는 스킨
function print_gallery2($skinname, $title, $id, $num=10, $xsize=80, $ysize=80, $xnum=10) {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $HTTP_SESSION_VARS;
if(!$skinname||!$id) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$tmpResult = mysql_query("select use_alllist from $admin_table where name='$id'") or die(mysql_error());
$setup = mysql_fetch_array($tmpResult);
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id order by no desc limit $num", $connect) or die(mysql_error());
$imgList.="<table width=100% cellpadding=0 cellspacing=0 border=0>";
$imgList.="<tr><td width=$xsize height=$ysize align=center valign=middle>";
$i = 0;
while($data=mysql_fetch_array($result)) {
if(eregi("\.gif|\.jpg",$data[file_name1])) $filename = $_zb_url.$data[file_name1];
elseif(eregi("\.gif|\.jpg",$data[file_name2])) $filename = $_zb_url.$data[file_name2];
else $filename="";
$subject = cut_str(stripslashes($data[subject]),50)."</font></b>";
if($filename) {
$imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='$filename' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a><br><img src=[dir]dot.gif border=0> $subject";
} else {
$imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='[dir]t.gif' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a><br><img src=[dir]dot.gif border=0> $subject";
}
$i++;
if($i>=$xnum) {
$imgList.="</td></tr><tr><td width=$xsize height=$ysize align=center valign=middle>";
$i=0;
} else {
$imgList.="</td><td width=$xsize height=$ysize align=center valign=middle>";
}
}
$imgList.="</table>";
$str = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$str);
$str = str_replace("[img]",$imgList,$str);
$str = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$str);
echo $str;
}
// 갤러리 이미지 제목 뽑아오는 스킨
function print_gallery2($skinname, $title, $id, $num=10, $xsize=90, $ysize=80, $xnum=10) {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $HTTP_SESSION_VARS;
if(!$skinname||!$id) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$tmpResult = mysql_query("select use_alllist from $admin_table where name='$id'") or die(mysql_error());
$setup = mysql_fetch_array($tmpResult);
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id order by no desc limit $num", $connect) or die(mysql_error());
$imgList.="<table width=100% cellpadding=0 cellspacing=0 border=0>";
$imgList.="<tr><td align=center valign=middle>";
$i = 0;
while($data=mysql_fetch_array($result)) {
if(eregi("\.gif|\.jpg",$data[file_name1])) $filename = $_zb_url.$data[file_name1];
elseif(eregi("\.gif|\.jpg",$data[file_name2])) $filename = $_zb_url.$data[file_name2];
else $filename="";
$subject = cut_str(stripslashes($data[subject]),50)."</font></b>";
if($filename) {
$imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='+ '+ '$filename' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a><br><img src=[dir]dot.gif border=0> $subject";
} else {
$imgList.="<a href='".$_zb_url.$target."&no=$data[no]'><img src='[dir]t.gif' border=1 style=border-color:black width=$xsize height=$ysize vspacing=10 hspacing=10></a><br><img src=[dir]dot.gif border=0> $subject";
}
$i++;
if($i>=$xnum) {
$imgList.="</td></tr><tr><td align=center valign=middle>";
$i=0;
} else {
$imgList.="</td><td align=center valign=middle>";
}
}
$imgList.="</table>";
$str = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$str);
$str = str_replace("[img]",$imgList,$str);
$str = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$str);
echo $str;
}