本帖最后由 小笼包 于 2023-6-16 14:35 编辑
\source\plugin\comiis_app\cache\data\94_touch_r9Xkk1kGITxR0X1tKv_mobile.tpls.php
在
<ul id="imglist" class="comiis_post_imglist cl">
和
</div>
<?php } if($comiis_postautotitle_notit) { ?>
之间,替换如下内容:
<li class="up_btn"><a href="javascript:;" class="bg_e b_ok f_d"><i class="comiis_font"></i><input type="file" name="Filedata" id="filedata" class="kmshow" <?php if($_G['comiis_isAndroid'] != 1) { ?> multiple="multiple"<?php } ?> accept="image/*" /></a></li><?php if(is_array($imgattachs['used'])) foreach($imgattachs['used'] as $temp) { ?><li><span aid="<?php echo $temp['aid'];?>" up="1" class="del"><a href="javascript:;"><i class="comiis_font f_g"></i></a></span><span class="p_img"><a href="javascript:;"><span class="charu f_f"><?php echo $comiis_lang['tip220'];?></span><img style="height:54px;width:54px;" id="aimg_<?php echo $temp['aid'];?>" title="<?php echo $temp['filename'];?>" src="<?php echo getforumimg($temp['aid'], 1, 300, 300, 'fixnone').'&ramdom='.random(5);?>/<?php echo $temp['attachment'];?>" class="vm b_ok"></a></span>
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][description]" value="<?php echo $attach['description'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][readperm]" value="<?php echo $attach['readperm'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][price]" value="<?php echo $attach['price'];?>">
</li>
<?php } ?>
<?php if(is_array($imgattachs['unused'])) foreach($imgattachs['unused'] as $temp) { ?><li><span aid="<?php echo $temp['aid'];?>" up="1" class="del"><a href="javascript:;"><i class="comiis_font f_g"></i></a></span><span class="p_img"><a href="javascript:;"><span class="charu f_f"><?php echo '有未使用';?></span><img style="height:54px;width:54px;" id="aimg_<?php echo $temp['aid'];?>" title="<?php echo $temp['filename'];?>" src="<?php echo getforumimg($temp['aid'], 1, 300, 300, 'fixnone').'&ramdom='.random(5);?>/<?php echo $temp['attachment'];?>" class="vm b_no"></a></span>
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][description]" value="<?php echo $attach['description'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][readperm]" value="<?php echo $attach['readperm'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][price]" value="<?php echo $attach['price'];?>">
</li>
<?php } ?>
<?php if(is_array($attachs['unused'])) foreach($attachs['unused'] as $temp) { ?><li><span aid="<?php echo $temp['aid'];?>" up="1" class="del"><a href="javascript:;"><i class="comiis_font f_g"></i></a></span><span class="p_img"><a href="javascript:;"><span class="charu f_f fj_no"><?php echo '附件<br>有未使用';?></span><img style="height:54px;width:54px;" id="aimg_<?php echo $temp['aid'];?>" title="<?php echo $temp['filename'];?>" src="<?php echo getforumimg($temp['aid'], 1, 300, 300, 'fixnone').'&ramdom='.random(5); ?>/<?php echo $temp['attachment'];?>" class="vm b_no"></a></span>
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][description]" value="<?php echo $attach['description'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][readperm]" value="<?php echo $attach['readperm'];?>">
<input type="hidden" name="attachnew[<?php echo $temp['aid'];?>][price]" value="<?php echo $attach['price'];?>">
</li>
<?php } ?>
<style>.comiis_post_imglist li .charu{bottom:9px;left:2px;width:54px;height:18px;background:rgba(0,0,0,0.4);border-radius: 0 0 4px 4px;}.comiis_post_imglist li span.fj_no{height: 26px;line-height: 13px;}.comiis_post_imglist li .p_img img.b_no{box-shadow:0 0 5px 0px red;border-radius:3px;}</style>
</ul>
<?php if((is_array($imgattachs['unused']) && count($imgattachs['unused'])) || (is_array($attachs['unused'])&& count($attachs['unused']))){ ?>
<div>有未使用:在上一次发帖时没有使用的附件,如果附件已不再使用,请点击左上角移除该附件!</div>
<?php } ?>
同时,在:\template\comiis_app\touch\forum\post.php 中,找到 comiis_load('r9Xkk1kGITxR0X1tKv' , 后面参数加入: attachs
|