The AD setup code base version of the dedecms system

  • 2020-03-31 20:31:23
  • OfStack

1. At the end of each article in the article, press on the advertising position above,

The size of this position is 658 times 60. 658 is the same length, 60 is the same height
The advertisement code is added here -- the background -- the copytemplate -- the default template management -- find the article_article.htm article content page template -- the modification -- the copylet sees a lot of code
Find the following code...
< Small> Time: < / small> {dede: field for its pubdate function = "MyDate (' Y -m - d H: I, @ me)" /} < Small> Source: < / small> {dede: field. The source /} < Small> Author: < / small> {dede: field. The writer /} < Small> Click: < / small> < Script SRC = "{dede: the field name = 'phpurl' /} / count. PHP? View =yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/} "type='text/javascript' language= 'javascript' > < / script> Time < / div> < ! Info / � � >
{dede: field. The description runphp = 'yes'}
If (@ me< >" ) @ me = '< Div class = "type" > '. @ me. '< / div> ';
{/ dede: field. The description}
< Div class = "content" >
{dede: field. The body /}
< / div> < ! � / content � >
{dede: myad name = 'wenzhang /}
< Div class = "dede_pages >"
< Ul class = "pagelist" >
{dede: pagebreak /}
Approximately after the time of the source - author. See < / div> < ! � / content � >
After that, put your AD code on the bottom line and click save. As in my example above: < / div> < ! � / content � >
{dede: myad name = 'wenzhang /}

2. The advertising position in the right sidebar of the homepage, below the sidebar and above the poll. This is 250 times 250

Put the AD code there -- background -- the copytemplate -- default template management -- go to the index.html home page template -- modify -- look at the following code, find the word poll, put your code on the poll line, the following example:
{dede: myad name = 'celan /}
< Dt> < Strong> Polling < / strong> < / dt>

3. Turn the membership section into an advertisement

First we get rid of the original members content find/templets/default/index. The HTM file locate this code < A href = "#" _for = "uc_member >" Members < / a> And < Dd id = "uc_member" >
< Div id = "_userlogin" >
< Div class = "userlogin" >
< The form name = "userlogin" action = "{dede: global cfg_memberurl /} / index_do. PHP" method = "POST" >
< Input type="hidden" name="fmdo" value="login" />
< Input type="hidden" name="dopost" value="login" />
< Input type="hidden" name="keeptime" value="604800" />
< Div class = "fb" > < Span> User name: < / span>
< Input type="text" name="userid" size="20" class="ipt-txt" />
< / div>
< Div class = "fb" > < Span> Password: < / span>
< Input type="password" name=" PWD "size="20" class="ipt-txt" />
< / div>
< Div class = "fb" > < Span> Verification code: < / span>
< Input type="text" name="vdcode" size="8" class="ipt-txt" />
< Img SRC = "{dede: global cfg_cmsurl /} / include/vdimgck. PHP" / >
< / div>
< Div class = "submit" >
< The button type = "submit" class = "BTN - 1" > Login < / button>
< A href = "{dede: global cfg_memberurl /} / index_do PHP? Fmdo = = user&dopost regnew "> Account registration < / a> < A href = "{dede: global cfg_memberurl /} / resetpassword. PHP" > Forget your password? < / a>
< / div>
< / form>
< / div>
< / div>
< ! - / userlogin - >
< Script language = "javascript" type = "text/javascript" > CheckLogin (); < / script>
< Div class = "latestlogin >" < Strong> Recently signed members < / strong>
< Ul class = "e7" >
{dede: memberlist row = 6 signlen = 30}
< Li> < A href = "/ field: spaceurl/" target =" _blank "> < Img SRC ="[field:face/]" Alt ='[field:spacename/]' width="52" height="52" /> [field: uname /] < / a> < / li>
{/ dede: memberlist}
< / ul>
< / div>
< ! - / latestlogin - >
< / dd>
< ! - / uc_member - >
Okay, so let's fix that. A href = "#" _for = "uc_member >" Members < / a> The "member" in "member" is changed to "sponsored links" or advertising

And then I'm gonna go ahead and create a new AD and I'm not going to go into too much of this and I'm going to get the AD code {dede:myad name='uccenter'/} and I'm going to replace the long red code with this one here < Dd id = "uc_member" "> >
< Div align = "center" "> > {dede: myad name = 'uccenter /} < / "> >
< / dd "> >
"> < ! - / uc_member - >
Save the update and OVER

4. At the bottom of the home page menu bar, add ads at the top of the search TAB.
This place is the best size for banner ads. Size of 950*90 is the best, the length of 950 do not change, the height of 90 size can be changed. I'm going to put text ads in here, so you can put pictures in the banner.
The AD code is placed here in the background -- the copytemplate -- the default template management -- go to the head.htm list page header template [modify] -- click modify -- see the page code -- find the following
< / div>
{dede: myad name = 'wenzi /}
< ! Nav / � � >
< Div class = "search" >
< Div class = "w960 center" >
Put your AD code in < ! Nav / � � >
< Div class = "search" > Above, as in my example.

5. Add the top logo to the right side of the top logo in the top advertisement on the homepage
The size at the top of the page is 480*60 so the size of the AD picture is also 480*60 is the best.
Go directly to the background module - - advertising management - - at this point you have an advertisement (this is the system's own advertising) - - click to change - - the normal display of the content of the display of their own advertising code into the normal display of the content - - click on the following ok.
The AD code can be seen here. Background -- copytemplate -- default template management -- go to head.htm list page header template [modify] -- click modify -- see page code --
The seventh line in the code
"{dede:myad name='topbanner'/} is the advertising code, which is the advertising code at the top of the home page.

6. Text ads on the home page and under the "picture info" channel
Advertising method:
Find the following code in the home page and each channel template:
< ! - / picnews - >
< Div class = "listbox >"
{dede: channelartlist}
After the text AD is adjusted, put it here
< Dl class = "tbox >"

PS: background "advertising management" can be the first to adjust the advertising space of the code.

7. The advertisement position of a square below the hot content in the sidebar of the article page:
The position size of this advertisement is 250*250. The advertisement cannot be larger than 250*250. If it is smaller, it can be displayed. If it is larger, it will be abnormal.
Advertising code:
The advertisement code is added here -- the background -- the copytemplate -- the default template management -- find the article_article.htm article content page template -- the modification -- the copylet sees a lot of code
Find the following code, about five and six lines from the bottom...
< / div>
{dede: myad name = 'celan1' /}
< / div> < ! Pright / � � >
< / div>
{dede: include filename = "footer. HTM /}"
< ! � / footer � >
In < / div> < ! Pright / � � > Just put your AD code on the top as in my example:
{dede: myad name = 'celan1' /}
< / div> < ! Pright / � � >

8. For each article in the surround advertisement, open the template of \templets\default\article_article.htm
find
< Div class = "content" >
I'll put the code here
{dede: field. The body /}

The code is:
< SPAN style = "FLOAT: left" >
{dede: myad name = 'huanraoguanggao /}
< / SPAN>

{dede:myad name='huanraoguanggao'/

9. Ads at the top of links

Link to the top of the AD add method. Long ads at the top of links.
First of all, the position size of this place is 658*60 and the length of 658 cannot change. You can go up to 60, you can go up to 70, you can go up to 80, you can go up to 90, you can go up to 100. Now go to the background - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Put this AD code here -- background -- the copytemplate -- default template management -- go to the index.html home page template -- modify -- see the following code
Find.............................. .
< ! Listbox / � � >
{dede: myad name = 'shouye1' /}
< / div>
< ! � / pleft � >
< Div class = "pright >"
< Div class = "usercenter >"
< Dl tbox "class =" >
< Dt> < Strong> Interactive center < / strong> < Span class = "label" > < A href = "#" _for = "uc_digg >" Other.............................. .
Type, put your copy of the AD code in < ! Listbox / � � >
The next line will do. The example above.

Related articles: