테스트 사이트 - 개발 중인 베타 버전입니다

최근게시물에 이름을 출력하고 싶습니다.

· 13년 전 · 923 · 5
온라인 신청 게시판을 만들어놓고
최근게시물로 [이름+님 신청] 식으로 표현을 하고싶은데

echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['name']}님 온라인 신청</font>";
echo "</a>";


이 코드를 이용하게되면 로그인 회원의경우 실명이 아닌 닉네임이 표시되는데 어덯게 해야하나요?





$mb = get_member($list[$i]['mb_id']);
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$mb[mb_name]}님 온라인 신청</font>";
echo "</a>";


이렇게 바꾸라고 사노라가노라님이 말씀해주셨는데
바꾸게되면 [님 온라인 신청]만 출력되고 그 앞에 실명은 출력이 안됩니다... 방법이 없는걸까요 ?

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 5개

echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['wr_name']}님 온라인 신청</font>";
echo "</a>";

안되면

echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['ca_name']}님 온라인 신청</font>";
echo "</a>";
13년 전
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['wr_name']}님 온라인 신청</font>";
echo "</a>";

하게되면 닉네임이 떠버리고


echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['ca_name']}님 온라인 신청</font>";
echo "</a>";

하게되면 안떠버리네요



혹시 게시판 스킨에 문제가 있는건가요?
13년 전
앗 그런데

$mb = get_member($list[$i]['mb_id']);
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$mb[mb_name]}님 온라인 신청</font>";
echo "</a>";

이렇게 입력을 하니까 회원읜경우 실명이 뜨는데
비회원의경우 글쓰기할때 입력한 이름이 뜨지않고 아무것도 뜨지 않습니다


혹시 회원의경우 실명을 그리고 비회원의경우 글쓰기시 입력한 이름을 출력하려면 어떻게 해야할까요?
13년 전
$mb = get_member($list[$i]['mb_id']);
if($mb[mb_name]) { $list_name = $mb[mb_name]; } else { $list_name = $list[$i][wr_name]; }
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list_name}님 온라인 신청</font>";
echo "</a>";

추가 테스트 해 보세요.
13년 전
감사합니다 잘 되네요^^
좋은 답변 감사합니다~

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440