無管理者權限時,smartsection類別表中,子類別的圖示subcat.gif仍會出現「編輯類別」的文字說明
解決辦法:修改smartsection\templates\smartsection_categories_table.html
將第51-55行紅字的部分(如下)
<{if $isAdmin == 1}>
<a href="<{$xoops_url}>/modules/smartsection/admin/category.php?op=mod&categoryid=<{$subcat.categoryid}>"><img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" "<{$lang_editcategory}>" "<{$lang_editcategory}>" "<{$lang_editcategory}>"/></a> <{$subcat.categorylink}>
<{else}>
<img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" "<{$lang_editcategory}>" "<{$lang_editcategory}>"/> <{$subcat.categorylink}>
<{/if}>
改為
<{if $isAdmin == 1}>
<a href="<{$xoops_url}>/modules/smartsection/admin/category.php?op=mod&categoryid=<{$subcat.categoryid}>"><img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" "<{$lang_editcategory}>" "<{$lang_editcategory}>" "<{$lang_editcategory}>"/></a> <{$subcat.categorylink}>
<{else}>
<img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" "*"/> <{$subcat.categorylink}>
<{/if}>
- Aug 27 Wed 2008 17:03
smartsection hack 備忘錄
close
全站熱搜
留言列表