DEDECMS System AD Setup Code basic version _php tutorial

Source: Internet
Author: User
1. At the end of each article in the article, top the ad position above the step,

The size of this position is 658*60 658 length do not change, 60 height can be arbitrarily changed
Ad code added here--backstage--template--Default template management--Find article_article.htm article content page template--Modify--see a lot of code
Find the following code ...
Time:{dede:field.pubdate function= "mydate (' y-m-d h:i ', @me)"/} Source:{dede:field.source/} Author:{dede:field.writer/} Click:Times
{dede:field.description runphp= ' yes '}
if (@me <> ") @me = '. @me. ';
{/dede:field.description}

{dede:field.body/}

{Dede:myad name= ' Wenzhang '/}


    {dede:pagebreak/}
    Probably after the time – source-author. See
    After this word, put your ad code on the bottom line, click Save on it. As in my example above:
    {Dede:myad name= ' Wenzhang '/}

    2. On the right side of the home page, under the sidebar, poll the top of the ads. The size of this position is 250*250

    Put the ad code there--backstage--template--Default template management--Go to index.html homepage template--Modify--look at the following code, find the word poll, put your code in the poll on a line, such as the following example:
    {Dede:myad name= ' Celan '/}
    Poll poll


    3. Change the member part to an advertisement

    First we have to dispose of the original membership content to locate the/templets/default/index.htm file locate this code member and








    Recently logged in member

      {dede:memberlist row=6 signlen=30}
    • [field:uname/]

    • {/dede:memberlist}





    To make changes to the first member of the "member" to modify the "sponsor link" or a category of advertising

    And then create a new ad here, I'm not going to be chatty. Get the ad code {Dede:myad name= ' uccenter '/} replace the long red code with the following code
    >
    > {dede:myad name= ' uccenter '/} >
    >
    ">
    Save the update on the over

    4. Under the Home menu bar, search for ads above the tag to add.
    The size of this place is best placed on the banner ad. Size is the best 950*90, length 950 do not change, 90 height of the size can be changed. I put in this place is the text advertisement, everybody may put the banner the picture.
    The ad code is here. Background--template--Default template management-Go to Head.htm List Page header template [modify]--Click Edit--See page code-find the following

    {Dede:myad name= ' Wenzi '/}



    Put your ad code in
    Above, as I have an example, on it.

    5. Top of homepage ads add the top logo to the right
    The size of the top of the homepage is 480*60 so the advertising picture size is also 480*60 best.
    Direct access to the backend module-AD management-there is an ad (this is a system-brought AD)-click Change-Normal display content-Put your ad code in the normal display-click OK below.
    This ad code can be seen here. Background--template--Default template management-Go to Head.htm List Page header template [modify]--Click Edit--see page code-
    The seventh line in the code
    "{Dede:myad name= ' Topbanner '/} is the ad code, which is the ad code at the top of the homepage.

    6. Text ads under "Picture info" on the homepage and channels
    How to put your ads:
    Find the following code on the home page and the channel templates:


    {Dede:channelartlist}
    Text ads, put them in here.


    PS: Backstage "ad management" can first adjust the ad bit code.

    7. Article page sidebar hotspot content below the ad location sidebar hotspot content below a square ad location:
    This ad location size is 250*250 ads can not be larger than 250*250, small can be displayed, big is not normal.
    Ad code in the following location:
    Ad code added here--backstage--template--Default template management--Find article_article.htm article content page template--Modify--see a lot of code
    Find the following code, approximately in line fifth and line sixth ...

    {Dede:myad name= ' celan1′/}


    {dede:include filename= "footer.htm"/}

    In Put your ad code on top of it, like my example:
    {Dede:myad name= ' celan1′/}


    8. Surround ad in each post, open \templets\default\article_article.htm this template
    Found it

    Put the code here.
    {dede:field.body/}

    Where the code is:

    {Dede:myad name= ' Huanraoguanggao '/}


    Description: {Dede:myad name= ' Huanraoguanggao '/} This paragraph is Dede code, is to add in the background ad code, can be text, pictures and so on

    9. Ads above the links

    Links above the ads Add method. Long ads above the links.
    First of all, the location size of this place is 658*60 length 658 can not be changed, than 658 small, high can't all show. Height 60 can be arbitrary, 70 high 80 high 90 high 100 high can be. Now into the background--module--AD management-Add a new ad--and then follow the fill-in data--click OK--in return to AD management--to copy the new added code ({Dede:myad name=*****/}
    Put this ad code here-backstage-template--Default template management-Go to index.html homepage template--Modify-see the following code
    Found it.......................

    {Dede:myad name= ' shouye1′/}





    Interactive Center Step on ...........
    , put your copy of your ad code under the line below!--–/listbox–-->
    . As the above example.

    http://www.bkjia.com/phpjc/321590.html www.bkjia.com true http://www.bkjia.com/phpjc/321590.html techarticle 1. At the end of each article in the article, the top of the ad position, the size of the position is 658*60 658 length do not change, 60 height can be arbitrarily changed Ad code added in this ...

Related Article

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.