进入话题查看页面,点击“移动贴子”,选择移动到某个群组的TAGID,确定就OK了。
操作界面截图:
请按步骤完成修改:
一、打开cp_thread.htm文件:
查找:
<!--{elseif $_GET['op'] == 'reply'}-->
上面加:
<!--{elseif $_GET['op'] == 'move'}--> <h1>移动贴子</h1> <a href="javascript:hideMenu();" title="关闭">关闭</a> <div> <form method="post" action="cp.php?ac=thread&op=move&tid=$tid&tagid=$tagid"> <p> 话题ID:<input type="text" name="tid" value="$tid" size="5" readonly="readonly" /> 移动到群组Tagid: <select name="totagid" id="totagid"> <!--{loop $mtaglist $fieldid $values}--> <!--{loop $values $value}--> <option value="$value[tagid]">{$value[tagid]} $value[tagname]</option>> <!--{/loop}--> <!--{/loop}--> </select> <input type="hidden" name="tagid" value="$tagid" /> <input type="hidden" name="movesubmit" value="true" /> <input type="submit" name="movesubmit" value="确定" /> <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" /> </p> </form> </div>
二、打开space_thread_view.htm文件:
查找第一个:
<div class="r_option"></div>
后面加:
<!--{if checkperm('managethread')}--> <a href="cp.php?ac=thread&tid=$thread[tid]&tagid=$thread[tagid]&op=move" id="a_move_$thread[tid]" onclick="ajaxmenu(event, this.id,1)">移动贴子</a><span>|</span> <!--{/if}-->
三、打开cp_thread.php文件:
查找:
} elseif($_GET['op'] == 'edithot') {
上面加:
//移动贴子 } elseif($_GET['op'] == 'move') { //权限检测 if(!checkperm('managethread')) { showmessage('no_privilege'); } //移动更新 if(submitcheck('movesubmit')) { showmessage('do_success','space.php?do=mtag&tagid='.$totagid); }
如果对你有帮助就用吧。
相关文章:
转载请注明出处:https://www.onexin.net/discuz/ucenter_home/uch-group-method-within-the-topic-of-mobile-freshly/
我使用后Tagid的下来菜单是空的,怎么回事?
我弄完之後,在你這個圖裡面,「移到到群組Tagid xxx」,xxx跑不出來!請問是哪裡錯了!?
看这个图:http://www.discuz.net/attachments/month_1004/100408210003c4392a74e47110.jpg
群组列表没有读取出来,是不是在cp_thread.php页面的查询语句忘记贴出来了
同问啊 移动群组tagid没有读取 是哪儿的原因呢?
盼博主给予答复