[插件交流] 評分&主題管理時設置發短消息通知作者為默認勾選狀態

評分&主題管理時
設置發短消息通知作者為默認勾選狀態

開啟 misc.php 和 topicadmin.php

$reasonpmcheck = $reasonpm == 2 || $reasonpm == 3 ? 'checked="checked" disabled' : '';[/php]
改為
[php]$reasonpmcheck = $reasonpm == 2 || $reasonpm == 3 ? 'checked="checked" disabled' : 'checked="checked"';
完成
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-7833-1.html#pid10950

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

套一句黃小琥說過的話:「你可以點歌,但是我可以選歌」

主題管理時設置發短消息通知作者為默認狀態 plus

修改後 當管理的主題 完全都是自己的主題 時
發短消息通知作者 這個會默認為 不勾選
不然連管理自己的主題 都還要收到PM通知 有點麻煩
要手動去 取消 也很累


開啟 topicadmin.php

$postcredits = $forum['postcredits'] ? $forum['postcredits'] : $creditspolicy['post'];[/php]
上面加上
[php]if (!empty($tid) && $thread && $thread['authorid'] == $discuz_uid) {
	$reasonpmcheck = '';
}[/php]

開啟 moderation.inc.php

找
[php]while($thread = $db->fetch_array($query)) {
		$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
		$thread['dblastpost'] = $thread['lastpost'];
		$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
		$threadlist[$thread['tid']] = $thread;
		$tid = empty($tid) ? $thread['tid'] : $tid;
	}[/php]
改為
[php]$reasonpmcheck2 = 0;
	
	while($thread = $db->fetch_array($query)) {
		
		if ($reasonpmcheck && $thread['authorid'] != $discuz_uid) {
			$reasonpmcheck2 = 1;
		}
		
		$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
		$thread['dblastpost'] = $thread['lastpost'];
		$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
		$threadlist[$thread['tid']] = $thread;
		$tid = empty($tid) ? $thread['tid'] : $tid;
	}
	
	$reasonpmcheck = $reasonpmcheck2 ? $reasonpmcheck : '';
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-7833-1.html#pid12298

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 評分&主題管理時設置發短消息通知作者為默認勾選狀態

2樓的帖子, 顯示的代碼有點小問題
比如 empty($tid) 會變成 emptyempty($tid)

要安裝者請按view plain看原來的版本最保險@@
1

評價次數

+2

Points

  • admin

2007-12-25 12:13:58 admin 聲望 + 2 點 發表有意義資料

複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-7833-1.html#pid15268

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 評分&主題管理時設置發短消息通知作者為默認勾選狀態

恩 的確是如此
這是 高亮語法的BUG之一
的確是按 view plain 可以看到最原始的文字
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-7833-1.html#pid15284

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP