Add announcement for discuz fresh Edition

Source: Internet
Author: User

The fresh version of 2.5 has a very good effect.

The homepage does not contain announcements.

In discuz.htm under the Forum directory

<!--{if empty($gid)}--><div class="wp"><!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]--></div><!--{/if}-->

Start adding the following code to display the announcement

<! -- Start website announcement --> <Div id = "PT" class = "BM Cl"> <! -- {If empty ($ GID) & $ announcements} --> <Div class = "Y"> <Div id = "an"> <DL class = "Cl"> <DT class = "Z xw1"> {Lang announcements }: </DT> <DD> <Div id = "ANC"> <ul id = "ancl"> $ announcements </ul> </div> </DD> </dl> </div> <SCRIPT type = "text/JavaScript"> announcement (); </SCRIPT> </div> <! -- {/If} --> <Div class = "Z"> <a href = ". /"class =" nvhm "Title =" {Lang homepage} ">$ _ g [setting] [bbname] </a> <em>» </em> <a href = "forum. PHP "> {$ _ g [setting] [navs] [2] [navname]} </a> $ navigation </div> <Div class =" Z "> <! -- {Hook/index_status_extra} --> </div> <! -- Website announcement added -->

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.