워드프레스 > kboard 게시판에서 사용자가 설정한 아바타 보이기.

https://www.cosmosfarm.com/threads/document/17483
위글을 참조해서, list.php 코드를 변경하니. 

스크린샷처럼 사용자 프사가 보여졌습니다.

현재 적용한 코드

<tr>
	<td class="kboard-widget-content-avatar" rowspan="2">
		<?php if($row->row_type == 'content'):?>
			<?php echo get_avatar($row->member_uid, 24, '', $row->member_display, array('class'=>'kboard-avatar'))?>
		<?php elseif($row->row_type == 'comment'):?>
			<?php echo get_avatar($row->user_uid, 24, '', $row->user_display, array('class'=>'kboard-avatar'))?>
		<?php endif?>
	</td>
	<td colspan="2" class="kboard-widget-content-title" style="padding-left:0">
		<?php if($row->row_type == 'content'):?>
		<a href="<?php echo $row->url?>" title="<?php echo esc_attr(mb_strimwidth(strip_tags($row->title), 0, 100, '...', 'utf-8'))?>">
			<div class="kboard-widget-cut-strings">
				<?php if($row->isNew()):?><span class="kboard-widget-new-notify">N</span><?php endif?>
				<?php if($row->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard-widget')?>"><?php endif?>
				<?php echo strip_tags($row->title)?>
				<span class="kboard-comments-count"><?php echo $row->getCommentsCount()?></span>
			</div>
		</a>
		<?php elseif($row->row_type == 'comment'):?>
		<a href="<?php echo $row->url?>" title="<?php echo esc_attr(mb_strimwidth(strip_tags($row->content), 0, 100, '...', 'utf-8'))?>">
			<div class="kboard-widget-cut-strings">
				<?php if($row->is_new):?><span class="kboard-widget-new-notify">N</span><?php endif?>
				<?php if($row->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard-widget')?>"><?php endif?>
				<?php echo strip_tags($row->content)?>
			</div>
		</a>
		<?php endif?>
	</td>
</tr>
<tr>
	<td class="kboard-widget-content-user" style="border:0">
		<?php if($row->row_type == 'content'):?>
			<?php echo $row->member_display?>
		<?php elseif($row->row_type == 'comment'):?>
			<?php echo $row->user_display?>
		<?php endif?>
	</td>
	<td class="kboard-widget-content-date" style="border:0">
		<?php
		if($row->date){
			echo $row->getDate();
		}
		else{
			echo $row->created;
		}
		?>
	</td>
</tr>

근데, 글을 작성한 경우에는 보여지지않는데, 어느부분을 수정하면 가능할까요?

게시판 URL입니다.

board.janmang2.com

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기