修改 source/admincp/admincp_portalcategory.php 的 751-767 行代码,把
- if($level == 2) {
- $class = $last ? 'lastchildboard' : 'childboard';
- $return = '<tr
id="cat'.$value['catid'].'"><td> </td><td
><input type="text"
name="neworder['.$value['catid'].']" value="'.$value['displayorder'].'"
/></td><td><div ">'. - '<input type="text" name="name['.$value['catid'].']" value="'.$value['catname'].'" />'.
- '</div>'.
- '</td><td>'.$value['articles'].'</td>'.
- '<td>'.(empty($value['disallowpublish']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(!empty($value['allowcomment']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(empty($value['closed']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td><input type="radio"
name="newsetindex" value="'.$value['catid'].'" '.($value['caturl'] ==
$_G['setting']['defaultindex'] ? 'checked="checked"':'').'
/></td>'. - '<td><a href="'.$value['caturl'].'" target="_blank">'.cplang('view').'</a>
- <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=edit&catid='.$value['catid'].'">'.cplang('edit').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=move&catid='.$value['catid'].'">'.cplang('portalcategory_move').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=delete&catid='.$value['catid'].'">'.cplang('delete').'</a> - <a
href="'.ADMINSCRIPT.'?action=diytemplate&operation=perm&targettplname=portal/list_'.$value['catid'].'&tpldirectory='.getdiydirectory($value['primaltplname']).'">'.cplang('portalcategory_blockperm').'</a></td> - <td><a
href="'.ADMINSCRIPT.'?action=article&operation=list&&catid='.$value['catid'].'">'.cplang('portalcategory_articlemanagement').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=perm&catid='.$value['catid'].'">'.cplang('portalcategory_articleperm').'</a>'.$publish.'</td></tr>';
替换为
- if ($level == 3) {
- $class = $last ? 'lastthirdboard' : 'thirdboard';
- $return = '<tr
id="cat'.$value['catid'].'"><td> </td><td
><input type="text"
name="neworder['.$value['catid'].']" value="'.$value['displayorder'].'"
/></td><td><div ">'. - '<input type="text" name="name['.$value['catid'].']" value="'.$value['catname'].'" />'.
- '</div>'.
- '</td><td>'.$value['articles'].'</td>'.
- '<td>'.(empty($value['disallowpublish']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(!empty($value['allowcomment']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(empty($value['closed']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td><input type="radio"
name="newsetindex" value="'.$value['catid'].'" '.($value['caturl'] ==
$_G['setting']['defaultindex'] ? 'checked="checked"':'').'
/></td>'. - '<td><a href="'.$value['caturl'].'" target="_blank">'.cplang('view').'</a>
- <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=edit&catid='.$value['catid'].'">'.cplang('edit').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=move&catid='.$value['catid'].'">'.cplang('portalcategory_move').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=delete&catid='.$value['catid'].'">'.cplang('delete').'</a> - <a
href="'.ADMINSCRIPT.'?action=diytemplate&operation=perm&targettplname=portal/list_'.$value['catid'].'&tpldirectory='.getdiydirectory($value['primaltplname']).'">'.cplang('portalcategory_blockperm').'</a></td> - <td><a
href="'.ADMINSCRIPT.'?action=article&operation=list&&catid='.$value['catid'].'">'.cplang('portalcategory_articlemanagement').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=perm&catid='.$value['catid'].'">'.cplang('portalcategory_articleperm').'</a>'.$publish.'</td></tr>'; - }elseif($level == 2) {
- $class = $last ? 'lastchildboard' : 'childboard';
- $return = '<tr
id="cat'.$value['catid'].'"><td> </td><td
><input type="text"
name="neworder['.$value['catid'].']" value="'.$value['displayorder'].'"
/></td><td><div ">'. - '<input type="text" name="name['.$value['catid'].']" value="'.$value['catname'].'" />'.
- '<a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=add&upid='.$value['catid'].'">'.cplang('portalcategory_addfourthcategory').'</a></div>'. - '</td><td>'.$value['articles'].'</td>'.
- '<td>'.(empty($value['disallowpublish']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(!empty($value['allowcomment']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td>'.(empty($value['closed']) ? cplang('yes') : cplang('no')).'</td>'.
- '<td><input type="radio"
name="newsetindex" value="'.$value['catid'].'" '.($value['caturl'] ==
$_G['setting']['defaultindex'] ? 'checked="checked"':'').'
/></td>'. - '<td><a href="'.$value['caturl'].'" target="_blank">'.cplang('view').'</a>
- <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=edit&catid='.$value['catid'].'">'.cplang('edit').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=move&catid='.$value['catid'].'">'.cplang('portalcategory_move').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=delete&catid='.$value['catid'].'">'.cplang('delete').'</a> - <a
href="'.ADMINSCRIPT.'?action=diytemplate&operation=perm&targettplname=portal/list_'.$value['catid'].'&tpldirectory='.getdiydirectory($value['primaltplname']).'">'.cplang('portalcategory_blockperm').'</a></td> - <td><a
href="'.ADMINSCRIPT.'?action=article&operation=list&&catid='.$value['catid'].'">'.cplang('portalcategory_articlemanagement').'</a> - <a
href="'.ADMINSCRIPT.'?action=portalcategory&operation=perm&catid='.$value['catid'].'">'.cplang('portalcategory_articleperm').'</a>'.$publish.'</td></tr>'; - for($i=0,$L=count($value['children']); $i<$L; $i++) {
- $return .= showcategoryrow($value['children'][$i], 3, $i==$L-1);
- }
然后再在 staticimageadmincpadmincp.css 的 317 行后添加
- .thirdboard{ padding-left:165px; background:url(bg_repno.gif) no-repeat -130px -550px; }
- .lastthirdboard{ padding-left:165px; background:url(bg_repno.gif) no-repeat -130px -600px; }
在 sourcelanguagelang_admincp.php 的 6590 下添加
- 'portalcategory_addfourthcategory' => '添加四级频道栏目',
这样就可以在频道栏目中就可以看到第四级的栏目设置了