UCH群组内话题移动方法新鲜出炉

进入话题查看页面,点击“移动贴子”,选择移动到某个群组的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);
  }

如果对你有帮助就用吧。

相关文章:

1、UCH远程图片本地化添加水印
https://www.onexin.net/discuz/ucenter_home/localization-of-uch-remote-image-watermark/

2、UCH日志增加系统分类技巧
https://www.onexin.net/discuz/ucenter_home/increase-in-uch-log-taxonomy-coup/

3、日志推送到群组方法For UCH2.0
https://www.onexin.net/discuz/ucenter_home/log-pushed-to-group-method-for-uch2/

4、给你的UCH插件文章加上TAG(通用方法)
https://www.onexin.net/discuz/ucenter_home/uch-plug-ins-to-your-article-with-tag-general-method/

5、UCH会员动态Google Maps API幻灯切换效果
https://www.onexin.net/latest/uch-member-dynamic-google-maps-api-slide-transition-effects/

转载请注明出处:https://www.onexin.net/discuz/ucenter_home/uch-group-method-within-the-topic-of-mobile-freshly/

5 Replies to “UCH群组内话题移动方法新鲜出炉”

  1. 我弄完之後,在你這個圖裡面,「移到到群組Tagid xxx」,xxx跑不出來!請問是哪裡錯了!?

Leave a Reply

Your email address will not be published. Required fields are marked *