Discuz Delete attachment upload from the system

Source: Internet
Author: User

Because dbank's Forum attachment is usedProgramSo if you want to remove the attachment upload program that comes with the system, you cannot set it in the background. After studying this, find the following method:

1. Delete the following template \ Default \ Forum \ editor_menu_forum.htm:Code

 
Switchattachbutton ('<! -- {If $ _ g ['setting'] ['swfupload']! = 0} --> swfupload <! -- {Else} --> upload <! -- {/If} --> ');
 
Or block it as follows
 
/*
Switchattachbutton ('<! -- {If $ _ g ['setting'] ['swfupload']! = 0} --> swfupload <! -- {Else} --> upload <! -- {/If} --> ');
*/

2. template \ Default \ Forum \ editor_menu_forum.htm Delete the following code

 <  Li  Class  = "Current" ID  = "{$ Editorid} _ btn_attachlist"  > <  A  Href  = "Javascript :;"  Hidefocus  = "True"  Onclick  = "Switchattachbutton ('attachlist ');"  > {Lang attachment_list} </  A  > </  Li > 

<! -- {If $ _ g ['setting'] ['swfupload']! = 1 & $ allowuploadtoday} --> < Li ID = "{$ Editorid} _ btn_upload" > < A Href = "Javascript :;" Hidefocus = "True" Onclick = "Switchattachbutton ('upload ');" > {Lang common_upload} </ A > </ Li > <! -- {/If} -->

<! -- {If $ _ g ['setting'] ['swfupload']! = 0 & $ allowuploadtoday} --> < Li ID = "{$ Editorid} _ btn_swfupload" > < A Href = "Javascript :;" Hidefocus = "True" Onclick = "Switchattachbutton ('swfupload ');" > {Lang batch_upload} </ A > </ Li > <! -- {/If} -->

The latter is added to the <li> tagsStyle= "Display: none"Hide

It seems okay. Check it carefully. You can upload a post and reply quickly.

3. In template \ Default \ Forum \ viewthread_fastpost.htmand forumdisplay_fastpost.htm

<! --{Eval $ seditor = array ('fastpost', array ('bold ', 'color', 'img', 'link', 'quote', 'code ', 'smilies '),! $ _ G ['uid']? 1: 0, $ allowpostattach? '<SPAN class = "pipe Z" >|</span> <span onclick = "fastuload () "Class =" cur1 Z ">{lang e_attach_title} </span> ':'');}-->

Change 

 
<! --{Eval $ seditor = array ('fastpost', array ('bold ', 'color', 'img', 'link', 'quote', 'code ', 'smilies '),! $ _ G ['uid']? 1: 0 ,'');}-->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.