threadadmin_editthread
搜尋:
<div><label for="cb_sticky"><input type="checkbox" name="sticky" value="yes" id="cb_sticky" $stickychecked />$vbphrase[thread_is_sticky]</label></div>
在後面添加:
<if condition="$show['globalstickunstick']"><div><label for="cb_globalsticky"><input type="checkbox" name="globalsticky" value="yes" id="cb_globalsticky" $globalstickychecked />$vbphrase[thread_is_globalsticky]</label></div></if>
檔修改
posting.php
搜尋:
// get special data templates from the datastore
$specialtemplates = array();
替換為:
// get special data templates from the datastore
$specialtemplates = array('globalstickycache');
搜尋:
case 'stick':
在後面添加:
case 'globalstick':
搜尋:
unset($newthreadinfo['vote'], $newthreadinfo['threadid'], $newthreadinfo['sticky'], $newthreadinfo['votenum'], $newthreadinfo['votetotal'], $newthreadinfo['isdeleted'], $newthreadinfo['del_userid'], $newthreadinfo['del_username'], $newthreadinfo['del_reason'], $newthreadinfo['issubscribed'], $newthreadinfo['emailupdate'], $newthreadinfo['folderid']);
替換為:
unset($newthreadinfo['vote'], $newthreadinfo['threadid'], $newthreadinfo['sticky'], $newthreadinfo['globalsticky'], $newthreadinfo['votenum'], $newthreadinfo['votetotal'], $newthreadinfo['isdeleted'], $newthreadinfo['del_userid'], $newthreadinfo['del_username'], $newthreadinfo['del_reason'], $newthreadinfo['issubscribed'], $newthreadinfo['emailupdate'], $newthreadinfo['folderid']);
|