웹마스터 팁

저는 완전 초보입니다.

 

커뮤니티 사이트를 만들었는데, 게시판별로 포인트가 어떻게 적용됐는지 관리자는

 

'대시보드 > 회원 > 포인트 > 모듈별 설정' 이나

 

각 모듈별 '추가 설정'에서 변경이나 열람을 하면 되는데,

 

회원들에게도 모듈별로 포인트가 어떻게 적용되는지 보여줘야 되겠더라고요...

 

(그래야 포인트를 많이 주는 곳에 활동을 할까해서...)

 

<h2>{$module_info->browser_title}</h2>
{@
	$oModuleModel = &getModel('module');
	$columnList = array('module_srl', 'module', 'browser_title', 'mid');
	$mid_list = $oModuleModel->getMidList(null, $columnList);
}

<table cellpadding="0" cellspacing="0" border="0" class="PointList">
	<thead>
		<tr>
			<th>게시판</th>
			<th>글 작성</th>
			<th>댓글 작성</th>
			<th>파일 업로드</th>
			<th>파일 다운로드<br /><span style="color:#777;">(이미지 제외)</span></th>
			<th>게시글 조회</th>
			<th>추천 받음</th>
			<th>비추천 받음</th>
		</tr>
	</thead>
	<tbody>
		<tr loop="$mid_list => $val" cond="$val->module == 'board'" >
			{@
				$oModuleModel = &getModel('module');
				$config = $oModuleModel->getModuleConfig('point');
				$module_config = $oModuleModel->getModulePartConfig('point', $val->module_srl);

				if($module_config['insert_document']) $insert_document = $module_config['insert_document'];
				else $insert_document = $config->insert_document;

				if($module_config['insert_comment']) $insert_comment = $module_config['insert_comment'];
				else $insert_comment = $config->insert_comment;

				if($module_config['upload_file']) $upload_file = $module_config['upload_file'];
				else $upload_file = $config->upload_file;

				if($module_config['download_file']) $download_file = $module_config['download_file'];
				else $download_file = $config->download_file;

				if($module_config['read_document']) $read_document = $module_config['read_document'];
				else $read_document = $config->read_document;

				if($module_config['voted']) $voted = $module_config['voted'];
				else $voted = $config->voted;

				if($module_config['blamed']) $blamed = $module_config['blamed'];
				else $blamed = $config->blamed;
			}
			<td class="Title"><a href="{getUrl('mid',$val->mid)}">{$val->browser_title}</a></td>
			<td><span>{$insert_document}</span></td>
			<td><span>{$insert_comment}</span></td>
			<td><span>{$upload_file}</span></td>
			<td><span>{$download_file}</span></td>
			<td><span>{$read_document}</span></td>
			<td><span>{$voted}</span></td>
			<td><span>{$blamed}</span></td>
		</tr>
	</tbody>   
</table>


저는 파일로 만들어서 대쉬보드에서 '페이지 > 외부페이지'로 등록해서 사용했습니다.

 

별거 아닌데, 혹시라도 필요하신분 있으실까 올려요~

 

혹시 더 좋은 방법 아시는 분 있으면 알려주세요~  :)

 

아, 그리고 저는 '게시판'모듈에만 적용을 해서 22번째 줄에 [cond="$val->module == 'board'"]를 넣었는데,

 

이 부분 삭제하면 모든 모듈이 다 출력됩니다.

 

예)

http://petsislet.com/index.php?mid=PointByModules

 

 

태그 연관 글
  1. [2016/12/30] 묻고답하기 회원 포인트를 엑셀로 받을 수 있나요? by 권만주 *2
  2. [2014/06/11] 묻고답하기 회원들 포인트 적립 목록은? by 곰탕lol왕자 *2
  3. [2014/06/09] 묻고답하기 포인트 부족시 업로드 금지 by 에엘 *3
  4. [2014/06/09] 묻고답하기 포인트로 상품구매 가능한가요? by 곰탕lol왕자 *5
  5. [2014/06/08] 묻고답하기 포인트에 따라 글쓰기 버튼 안보이고 보이게 하기 by 에엘 *3