dismao 發表於 2019-8-9 17:05:57

解决同一上传图片插入多次但发布后只显示一次

<br /><br />在编辑器中上传一张图片,插入多次后编辑器里会显示多次,但发布后帖子里只显示一次<br /><br />修改文件<font color="#0000ff">source/function/function_attachment.php</font><br /><br />查找<br /><br /><ol><li>foreach($findattach[$pid] as $aid =&gt; $find) {<br /><li>&nbsp; &nbsp;&nbsp; &nbsp; $postlist[$pid]['message'] = preg_replace($find, attachinpost($postlist[$pid]['attachments'][$aid], $postlist[$pid]), $postlist[$pid]['message'], 1);<br /><li>&nbsp; &nbsp;&nbsp; &nbsp; $postlist[$pid]['message'] = preg_replace($find, '', $postlist[$pid]['message']);<br /><li>}<br /><li></ol><br /><br /><br />替换为<br /><br /><br />多次<em>, </em>显示<em>, </em>编辑器<em>, </em>上传<em>, </em>图片

allthebest 發表於 2019-8-9 17:16:58

好奇问一问<br /><br />同一图片 为什么要容许显示多张?<br /><br />若是发广告图片,或灌水图片,会相当高兴的。

chinaV 發表於 2019-12-14 17:28:14

这个可以有<br />比如文章里面的分割线

zhsyn 發表於 2020-1-9 14:55:54

感谢分享

bpxc 發表於 2020-2-19 21:37:05

必须支持啊

zy4416503 發表於 2020-3-23 00:47:23

很给力很给力很给力很给力,楼主最好能分享一下解决的心路历程,怎么找到最后的答案的,帮助更多的二开者同时发展社区

azl 發表於 2020-4-13 19:55:13

SAD SA DFS

qingsong710 發表於 2020-6-25 03:27:10

来学习了&nbsp;&nbsp;

qingsong710 發表於 2020-6-25 04:09:16

老哥&nbsp;&nbsp;有问题啊,不能用啊
頁: [1]
查看完整版本: 解决同一上传图片插入多次但发布后只显示一次