|
 
- 帖子
- 1169
- 积分
- 1879
- 威望
- 76
- 金币
- 109 个
- 体力
- 1192
- 注册时间
- 2006-1-10
|

如果你需要 DZ5.5 的 可以这样修改
1.在 viewthread.php 找- include template($iscircle ? 'supesite_viewthread' : 'viewthread');
复制代码 上加- //===========管辖区5.5=========
- $query = $db->query("SELECT f.fid, f.name, f.type, ff.fid, ff.moderators FROM {$tablepre}forums f
- LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid WHERE f.type = 'group'");
- while($admintemp = $db->fetch_array($query)) {
- $temp = split("\t", $admintemp['moderators']);
- foreach($temp as $tempname) {
- $tempname = trim($tempname);
- if($tempname != "") {
- $adminarray[$tempname] .= "<tr><td class=\"popupmenu_option\"><a href=\"index.php?gid=".$admintemp['fid']."\" target=\"_blank\">".$admintemp['name']."</a></td></tr>";
- }
- }
- }
- $query = $db->query("SELECT f.fid, f.name, f.type, ff.fid, ff.moderators FROM {$tablepre}forums f
- LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid WHERE f.type = 'forum' OR type ='sub'");
- while($admintemp = $db->fetch_array($query)) {
- $temp = split("\t", $admintemp['moderators']);
- foreach($temp as $tempname) {
- $tempname = trim($tempname);
- if($tempname != "") {
- $adminarray[$tempname] .= "<tr><td class=\"popupmenu_option\"><a href=\"forumdisplay.php?fid=".$admintemp['fid']."\" target=\"_blank\">".$admintemp['name']."</a></td></tr>";
- }
- }
- }
- //===========管辖区 5.5=========
复制代码 2.在 viewthread 模板 找(自己觉得加那好随便)后加- <!------管辖区 5.5------->
- <!--{if !empty($adminarray[$post[username]])}-->
- <span id="mod_{$post[pid]}" onmouseover="showMenu(this.id)"><b>管辖区</b></span>
- <div class="headermenu_popup" id="mod_{$post[pid]}_menu" style="display: none">
- <table cellpadding="4" cellspacing="0" border="0">
- $adminarray[$post[username]]
- </table></div>
- <!--{/if}-->
- <!------管辖区 5.5------->
复制代码 |
-
2
评分次数
-
|