当前位置:首页 > 未分类 > 正文内容

添加手机版淘帖插件按钮

someone2年前 (2024-06-24)未分类157

mz

./template/rtj1009_app/touch/forum/viewthread.php


搜索

<!--{if $rtj1009_m_config['ren_view_topxx'] ==2 && !$post['anonymous']}-->
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0) && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->


其上添加

{if $post['first']}

        <a href="#" class="open-popup ren_lc_gl" id="k_collect" style="width:auto">{lang pn_mobile_collection:collection}</a>
        <script>

        $('#k_collect').on('click', function() {
                var obj = $(this);
                $.ajax({
                        type:'GET',
                        url:'forum.php?mod=collection&action=edit&op=addthread&tid=$_G[tid]&mobile=2&handlekey=favbtn&inajax=1',
                        data:'',
                        dataType:'xml',
                })
                .success(function(s) {
                        popup.open(s.lastChild.firstChild.nodeValue);
                })
                .error(function(s) {
                       
                return false;
                });
                return false;
        });
</script>
        {/if}




gy


viewthread_node.php里,找到

<span class="comiis_ordertype y">


其下添加

{if $post['first']}
        <a href="#" class="popup blue" id="k_collect" style="width:auto;padding:0 10px;">{lang pn_mobile_collection:collection}</a>
        <script>
$('#k_collect').on('click', function() {
var obj = $(this);
$.ajax({
type:'GET',
url:'forum.php?mod=collection&action=edit&op=addthread&tid=$_G[tid]&mobile=2&handlekey=favbtn&inajax=1',
data:'',
dataType:'xml',
})
.success(function(s) {
popup.open(s.lastChild.firstChild.nodeValue);
})
.error(function(s) {
return false;
});
return false;
});
</script>
        {/if}


扫描二维码推送至手机访问。

版权声明:本文由一个存档发布,如需转载请注明出处。

本文链接:https://blog.allhp.fun/?id=11

标签: mzgy
分享给朋友:

“添加手机版淘帖插件按钮” 的相关文章

Discuz! 清理短消息举报

最好不要开,3.4这个举报有bug,短消息举报收到后删不掉,后台被邪教短消息刷屏真的受够。全局—站点功能—其他接收短消息举报人一栏留空即可关闭该举报。已收到的短消息举报可以进数据库,找pre_home_notification表,在type字段搜pmreport...

Discuz!修改禁用会员提示

source→language→lang_message.php修改以下'user_banned' => '抱歉,您的账号因违规被限制使用,无法访问本站点','user_banned_has_expiry' => '抱歉,您的账号因...

Discuz! X版本地附件与远程附件的转换语言

一、本地转移到远程附件update pre_forum_attachment_0 set remote=1 where remote=0; update pre_forum_attachment_1 set remot...

Discuz!售价贴未购买前展示分类信息栏

找到模版目录的viewthread_pay.htm在其头部添加以下代码:<div class="typeoption"> <!--{if $threadsortshow['optionlist'] == ...

Discuz!批量替换帖子中的内容

Discuz!批量替换帖子中的内容使用sql语句的方法来处理:论坛全部帖子内容中的“A内容”替换成“B内容”的sql语句UPDATE pre_forum_post SET message=REPLACE(message,’要替换的字符串’,’替换后的字符串’);说明:p...

SSH常用命令

SSH常用命令

ssh软件Xshell4.rar下载文件:wget https://allhp.fun/name.tar.gz/*下载远程服务器上的文件 */wget -c https://allhp.fun/name.tar.gz/* 继续下载上次未下载完的文件 */解压缩文件:tar xvf...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。