xiuno教程:发贴时【添加附件】链接改为按钮样式 xiuno

明天星期八 (UID:2) 2025-4-7 25

本教程需要修改2处文件,容易程度:非常容易。
1:打开模板下的【plugin/模板名称/overwrite/view/htm/post.htm】文件
如果上述文件不存在,则打开根目录下的【view/htm/post.htm】
找到<!--{hook post_message_after.htm}-->和<!--{hook post_submit_after.htm}-->之间的内容,修改为保存

    <div class="d-flex justify-content-between">
    	<div>
    		<label class="addattach btn btn-secondary mb-0" id="addattach">
    			<i class="icon-folder-open-o"></i> 
    				<?php echo lang('add_attach');?>
    				<input type="file"  multiple="multiple" class="d-none" />
    		</label>
    				<!--{hook post_bottom_right.htm}-->
    	</div>
    	<div class="text-right">
    		<button type="submit" class="btn btn-primary" id="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo $form_submit_txt;?> </button>
    				<!--{hook post_bottom_left.htm}-->
    	</div>
    </div>
    <div class="attachlist_parent">
    	<?php echo post_file_list_html($filelist, TRUE);?>							
    </div>​

2:打开模板下的【plugin/模板名称/overwrite/css/bootstrap-bbs.css】文件
有些模板可能自己重新定义了CSS文件名称,请自己查找一下
如果上述文件均不存在,则打开根目录下的【view/css/bootstrap-bbs.css】
找到下面内容并删除。

    .addattach:hover {
      font-weight: 800;
    }
最新回复 (0)

你可以在 登录 or 注册 后,对此帖发表评论!

返回
发新帖
赞助商家我要入驻