discuz 手机触屏收费附件不显示的bug修复
登录后可见有些站长反馈说在PC端购买过这个附件的,在手机端才能显示附件。
6 S1 S$ E9 b- }: X+ ~(www.m oqu8.c om)
( U" k0 Y2 Z8 N(w ww.m oqu8.c om)
, v: j, g& W0 C% D1 j+ |(w w w.m oqu 8.c om)
这样导致手机端的附件平白无故的消失了~ 应该算是一个比较大的功能上的bug,由于不影响安全,所以官方并未急于修复。
修复起来倒是不很复杂,过程如下():
打开:/upload/source/language/lang_message.php
找到
改为
打开:/upload/source/module/forum/forum_misc.php
找到
改为:
打开:/upload/template/default/touch/forum/discuzcode.htm' N0 w9 ?# R- U. N(ww w.m oqu 8.c om)
找到
改为
然后将下列attachpay.htm 复制到 template/default/touch/forum/ 即可
懒人包(简体GBK版本,其他版本请自行转换)
6 S1 S$ E9 b- }: X+ ~(www.m oqu8.c om)
( U" k0 Y2 Z8 N(w ww.m oqu8.c om)
, v: j, g& W0 C% D1 j+ |(w w w.m oqu 8.c om)
这样导致手机端的附件平白无故的消失了~ 应该算是一个比较大的功能上的bug,由于不影响安全,所以官方并未急于修复。
修复起来倒是不很复杂,过程如下():
打开:/upload/source/language/lang_message.php
找到
- 'attachment_buyall' => '本帖所有附件购买成功 ',
- 'attachment_mobile_buy' => '附件购买成功',
找到
- 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)); } }
找到
- <!--{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']}--><p>{lang attachcredits}: $_G[getattachcredits]</p><!--{/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>
懒人包(简体GBK版本,其他版本请自行转换)