discuz7.0 Forum per floor Post custom ads

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

In the DISCUZ6.0 version of the time, I released: "In the Discuz forum post before and after the personalized signature plus advertising Code" modification method, discuz7.0 before the forum to modify the reference: Http://www.dxszz.com/thread-1075-1-1.html. To set the Discuz forum post personalized signature before and after the ad, now upgraded to the discuz7.0, the set up method needs to be updated.
Advertisement between tag and post content of top floor post


Ease of degree: simpler
Modify File: viewthread_node.htm
Effect Demo: http://www.dxszz.com/thread-20191-1-1.html top floor Post's tag and post content advertising
Here's an example of adding the same ad code at the bottom of the 1 floor:
First, we go to the Forum template template management under the default template file to find viewthread_node.htm this template file (or direct FTP to/templates/default/viewthread_node.htm) or in the background to modify Viewthread under Viewthread_node.htm, find

the following references:


<div class= "{if! $thread [special]}t_msgfontfix{else}specialmsg{/if}" >

Add it above:

the following references:


<!--custom ads start-->


<!--{if $post [number]==1}-->{


<!--Place your ad code here, you can add it directly; for future modifications, you can add new references to the background--tools--data references--and then store the reference code in this-->


<!--{/if}--><!--custom ad End-->

This is done, the update cache can go to the page to see ads.

If you want to add code directly to the first number of floors, just

the following references:


<!--{if $post [number]==1}-->

changed to the following:


<!--{if $post number]== (number of floors)}-->.





If you want to add more than one floor display, you only need to modify the

the following references:


<!--{if $post [number]==1}-->

Logic on the line, I believe it is difficult to pour everyone.

If you want to display different ads on different floors, you just need to repeat the number of revisions and the ad code.

In fact, I just made a simple change in the personality signature of the front or behind the advertising code, even if it is a draw. In the future, if a friend is convenient, encourage the development of such a plug-in to facilitate the modification of the setting of the advertising code for each floor. Later remember to tell me Yo, (*^__^*) Xi hee ...

Original works, reprinted please link annotated from: Student Webmaster Forum http://www.dxszz.com Welcome and I qq:545696559 exchange.

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.