includes/init.php
搜尋:
'caneditprofilepic' => 2097152,
在後面添加:
'canglobalstick' => 8388608,
showthread.php
搜尋:
$show['unstick'] = iif($threadinfo['sticky'], true, false);
在後面添加:
$show['globalstickshow'] = iif(can_moderate($threadinfo['forumid'], 'canglobalstick'), true, false);
$show['globalunstick'] = iif($threadinfo['globalsticky'], true, false);
forumdisplay.php
搜尋:
// get special data templates from the datastore
$specialtemplates = array(
'iconcache',
'mailqueue'
);
替換為:
// get special data templates from the datastore
$specialtemplates = array(
'iconcache',
'mailqueue',
'globalstickyids'
);
搜尋:
$stickies = $DB_site->query("
SELECT threadid
FROM " . TABLE_PREFIX . "thread AS thread
$deljoin
WHERE forumid = $foruminfo[forumid]
AND visible = 1
AND sticky = 1
$limitothers
$globalignore
$delthreadlimit
$viewgoodnees
");
替換為:
$stickies = $DB_site->query("
SELECT threadid
FROM " . TABLE_PREFIX . "thread AS thread
$deljoin
WHERE forumid = $foruminfo[forumid]
AND visible = 1
AND sticky = 1 OR (globalsticky = 1)
$limitothers
$globalignore
$delthreadlimit
$viewgoodnees
");
搜尋:
// look at thread limiting options
$stickyids = '';
在後面添加:
$globalstickyids = '';
搜尋:
$DB_site->free_result($stickies);
unset($thissticky, $stickies);
在後面添加:
$globalstickyids = $datastore['globalstickyids'];
|