Discuz取帖子图片,Discuz论坛显示帖子图片

分类:建站教程 Discuz教程 时间:2025-10-23 10:00 浏览:0 评论:0
0

当前目录列表:

  • 1、DiscuzX2.5如何在一个模块调用一个帖子的多张图片
  • 2、Discuz x3 可以在帖子列表中显示帖子图片吗?如何调用到图片
  • 3、Discuz!论坛帖子图片直接复制到自己论坛里面要自己主机内存吗?
  • 4、Discuz帖子图片问题
  • DiscuzX2.5如何在一个模块调用一个帖子的多张图片

    关于这个问题,不可以,不过你可以通过修改源代码实现:如帖子数据,修改:sourceclasslockorumlock_thread.php在functionfields,返回的数组中增加返回数据的数据类型配置,在getdata函数中查询出帖子的所有图片,并存储在$list['fields']中,键要与fields中你指定的键匹配,确认代码无误后到后台更新,工具---更新缓存【选上最后一个,叫什么忘了】,然后添加数据调用,即可通过{fields中新增的键名调用相应的图片}

    用这个可以衍生很多种方法,你自己思考咯

    Discuz x3 可以在帖子列表中显示帖子图片吗?如何调用到图片

    你好

    可以的,在后台,论坛,板块,里面有设置,我好久没搞了,具体接下来操作忘了,就在板块设置里有,傻瓜式操作,好好找一下

    Discuz!论坛帖子图片直接复制到自己论坛里面要自己主机内存吗?

    不会占用自己的空间,唯一的缺点是对方

    没了你

    也就没了,如果对方比较慢,加载速度也比较慢。。。

    Discuz帖子图片问题

    打开路径:template/default/forum/Discuzcode.htm

    img{if $attach['price']  $_G['forum_attachmentdown']  $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}aid=$aidencodenoupdate=yesnothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}aid=$aidencodenoupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1"{if $_GET['from'] != 'preview'} onmouseover="showMenu,{'ctrlid':this.id,'pos':'12'}"{/if} /

    改成:

    img{if $attach['price']  $_G['forum_attachmentdown']  $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}aid=$aidencodenoupdate=yesnothumb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}aid=$aidencodenoupdate=yes{else}{$attach[url]}$attach[attachment]{/if}" $widthcode id="aimg_$attach[aid]" inpost="1"{if $_GET['from'] != 'preview'} {/if} /

    也就是去掉了这一段中的 onmouseover="showMenu,{'ctrlid':this.id,'pos':'12'}" 事件触发

    discuz取帖子图片,discuz论坛显示帖子图片

    1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
    2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
    3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
    4. 建站教程 > Discuz取帖子图片,Discuz论坛显示帖子图片

    用户评论