http://www.dogdrip.net/?mid=dogdrip&sort_index=popular
게시물 이동이나 복사도 아닌 거 같은데 어떤 방식으로 구현한 걸 까요?
http://www.dogdrip.net/?mid=dogdrip&sort_index=popular
게시물 이동이나 복사도 아닌 거 같은데 어떤 방식으로 구현한 걸 까요?
ctrl + F로
// setup the sort index and order index
$args->sort_index = Context::get('sort_index');
$args->order_type = Context::get('order_type');
있는부분 찾아서 바로 아래에다 넣으면 됩니다
추가하는 부분은 // !!!S 과 // !!!E 사이 값입니다
// if the category is enabled, then get the category
if($this->module_info->use_category=='Y')
{
$args->category_srl = Context::get('category');
}
// setup the sort index and order index
$args->sort_index = Context::get('sort_index');
$args->order_type = Context::get('order_type');
// !!!S
if ($args->sort_index == 'best')
{
// 추천수 3이상
$args->search_target = 'voted_count';
$args->search_keyword = 3;
}
// !!!E
if(!in_array($args->sort_index, $this->order_target))
{
$args->sort_index = $this->module_info->order_target?$this->module_info->order_target:'list_order';
}