设为首页
收藏本站
开启辅助访问
切换到宽版
登录
立即注册
快捷导航
发布信息
搜索
搜索
网站首页
自丢网
社区论坛
自丢网论坛
附件中心
源码下载
邀请码
丢币充值
帖子
搜索附件
搜索附件
自丢网
›
附件中心
›
建站程序/IT教程
›
Discuz教程
›
attachpay.zip
板块导航
+
模板下载
+
建站程序/IT教程
·
源码下载
·
修罗xiuno教程
·
Discuz教程
·
zzz资源/教程
·
织梦教程
·
服务器教程
·
数据库教程
·
Html/Html5教程
·
JavaScript教程
·
Css/Css3教程
·
建站/web前端教程
·
PHP教程
·
其他编程教程
·
小程序app教程
·
PPT模板/素材
·
Word简历模板/素材
·
Excel模板/素材
·
素材中心
·
百科知识
+
综合教程资源
热门下载
左侧广告
版权所有:自丢网
For 2020-2050 ©
zidiu.com
attachpay.zip
打开方式: winrar
资料大小: 1.5 KB
下载次数: 0
上传会员:
admin
上传时间: 2020-02-15
本站网址:
www.zidiu.com
查看附件所在的主题
下载附件 售价 10
复制链接推荐给好友
点击附件下载:下载附件 售价 10
discuz手机触屏版显示付费附件,并支持手机端支付购买:
机端默认不显示收费附件,除非你在PC端购买过这个附件,之所以这样,是因为手机端不支持附件购买,所以官方干脆就不显示付费附件。
修改教程如下,增加手机触屏版显示付费附件,并支持手机端支付购买:
打开/upload/source/language/lang_message.php,找到:
'attachment_buyall' => '本帖所有附件购买成功 ',
复制代码
底下加:
'attachment_mobile_buy' => '附件购买成功',
复制代码
打开/upload/source/module/forum/forum_misc.php,找到:
if(count($aids) > 1) {
showmessage('attachment_buyall', 'forum.php?mod=redirect&goto=findpost&ptid='.$attach['tid'].'&pid='.$attach['pid']);
} else {
$_G['forum_attach_filename'] = $attach['filename'];
showmessage('attachment_buy', "forum.php?mod=attachment&aid=$aidencode", array('filename' => $_G['forum_attach_filename']), array('redirectmsg' => 1));
}
复制代码
改为:
if(defined('IN_MOBILE')) {
showmessage('attachment_mobile_buy', 'forum.php?mod=redirect&goto=findpost&ptid='.$attach['tid'].'&pid='.$attach['pid']);
} else {
if(count($aids) > 1) {
showmessage('attachment_buyall', 'forum.php?mod=redirect&goto=findpost&ptid='.$attach['tid'].'&pid='.$attach['pid']);
} else {
$_G['forum_attach_filename'] = $attach['filename'];
showmessage('attachment_buy', "forum.php?mod=attachment&aid=$aidencode", array('filename' => $_G['forum_attach_filename']), array('redirectmsg' => 1));
}
}
复制代码
打开/upload/template/default/touch/forum/discuzcode.htm,找到:
<!--{if !$attach['price'] || $attach['payed']}-->
<div id="attach_$attach[aid]" class="box attach mbn" >
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
$attach[attachicon]
<!--{/if}-->
<!--{if !$attach['price'] || $attach['payed']}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">$attach[filename]</a>
<!--{/if}-->
<em class="xg1">($attach[attachsize])</em>
<em class="xg1"><br />({lang downloads}: $attach[downloads], $attach[dateline] {lang upload})
</em>
<!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
</div>
<!--{/if}-->
复制代码
改为:
<div id="attach_$attach[aid]" class="box attach mbn" >
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
$attach[attachicon]
<!--{/if}-->
<!--{if !$attach['price'] || $attach['payed']}-->
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">$attach[filename]</a>
<!--{/if}-->
<em class="xg1">($attach[attachsize])</em>
<em class="xg1"><br />({lang downloads}: $attach[downloads], $attach[dateline] {lang upload})
</em>
<!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits}: $_G[getattachcredits]<!--{/if}-->
</div>
复制代码
下面附件上传到/upload/template/default/touch/forum/attachpay.htm(Discuz默认没有这个文件)