Home Backend Development PHP Tutorial Advertising setting code of dedecms system basic version_PHP tutorial

Advertising setting code of dedecms system basic version_PHP tutorial

Jul 21, 2016 pm 03:39 PM
dedecms one time code Location Inside Base advertise article Version of system set up this

1.文章内每篇文章的结尾处,顶一下 踩一下的上方的广告位置,

这个位置的大小是658*60 658长度不要变,60高度可以任意改
广告代码添加在这—-后台—–模板—-默认模板管理—-找到article_article.htm 文章内容页模板—–修改—–看到很多代码
找到以下代码………
时间:{dede:field.pubdate function=”MyDate('Y-m-d H:i',@me)”/}来源:{dede:field.source/} 作者:{dede:field.writer/} 点击:


{dede:field.description runphp='yes'}
if(@me<>” )@me = ‘
'.@me.'
';
{/dede:field.description}

  {dede:field.body/}

{dede:myad name='wenzhang'/}


    {dede:pagebreak/}
    大概在时间– 来源— 作者之后。看到

这个字样后,把你的广告代码放在下方一行,点击保存就可以了。如上面我的例子:

{dede:myad name='wenzhang'/}

2.首页右边边栏的广告位置 ,侧栏下方,投票调查的上方。这个位置大小是250*250

把广告代码放在那里——后台—–模板—-默认模板管理—进入index.html主页模板—-修改—看以下代码,找到投票调查字样,把你的代码放到投票调查上一行就可以了,如下面的例子:
{dede:myad name='celan'/}
投票调查


3.把会员部分改成广告

首先我们把原来的会员内容处理掉 找到 /templets/default/index.htm 文件 定位这个代码 会员







用户名:


密码:


验证码:









最近登陆的会员

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

  • {/dede:memberlist}





好进行修改 首先把 会员里的"会员"修改成"赞助商链接"或者广告一类的

然后新建一个广告 这里我就不罗嗦了 得到广告代码 {dede:myad name='uccenter'/} 用下面这个代码代替前面了红色的长长的代码
>
> {dede:myad name='uccenter'/} >
>
">
保存 更新就OVER了

4.首页菜单栏下方,搜索 标签上方的广告添加 。
这个地方的大小最好放通栏广告。尺寸是950*90的最好,长度950不要变,90高度的尺寸可以变。 我在这个地方放的是文字广告,大家可以放通栏的图片。
广告代码放在这里后台—–模板—-默认模板管理—进入head.htm 列表页头部模板 [修改] —-点击修改—-看到页面代码—找到以下

{dede:myad name='wenzi'/}



把你的广告代码放在
的上方,如我的例子,就可以了。

5.首页顶部广告添加 最上方logo右边
首页顶部的大小是480*60 所以的广告图片大小也是480*60最好。
直接进入后台模块—-广告管理—-此时已经有了一个广告(这个是系统自带的广告)—–点击更改—–正常显示内容–把自己的广告代码放入正常显示内容—–点击下面的确定就可以了。
这个广告代码在这里可以看到。后台—–模板—-默认模板管理—进入head.htm 列表页头部模板 [修改] —-点击修改—-看到页面代码—
代码中的其中的第七行
“{dede:myad name='topbanner'/}就是广告代码,就是首页顶部的广告代码。

6.主页和频道"图片资讯"下面的文字广告
放广告方法:
在主页和各频道模板找到下面的代码:


{dede:channelartlist}
文字广告调好后放在这里


PS:后台"广告管理"可以先调好广告位的代码.

7.文章页侧栏热点内容下方广告位置 侧栏热点内容的下方一个正方形的广告位置:
这个广告位置尺寸是250*250 所放的广告不能比250*250大,小了可以显示,大了就不正常了。
广告代码以下位置:
广告代码添加在这—-后台—–模板—-默认模板管理—-找到article_article.htm 文章内容页模板—–修改—–看到很多代码
找到以下代码,大约在倒数第五行和第六行………

{dede:myad name='celan1′/}


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

上方放上你的广告代码就可以了如我的例子:
{dede:myad name='celan1′/}


8.每篇文章中的环绕广告, 打开\templets\default\article_article.htm这个模板
找到

代码放在这里
{dede:field.body/}

其中代码是:

{dede:myad name='huanraoguanggao'/}


说明:{dede:myad name='huanraoguanggao'/}这一段是DEDE代码,就是在后台里添加的广告代码,可以是文字,图片等等

9.友情链接上方的广告

友情链接上方的广告添加方法。 友情链接上方长长的广告。
首先这个地方的位置大小是658*60 长度658不能变,比658小可以,高了就不能全部显示了。高度60可以任意,70高80高90高100高都可以。 现在进入后台—–模块—-广告管理—增加一个新广告—–然按照有求填写相关数据— 填完后点击确定—-在回到广告管理——复制新增加的代码(就是{dede:myad name=*****/}
把这段广告代码放在这里—后台—–模板—-默认模板管理—进入index.html主页模板—-修改—看以下代码
找到…………………..

{dede:myad name='shouye1′/}


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Jul 30, 2024 pm 02:17 PM

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

750,000 rounds of one-on-one battle between large models, GPT-4 won the championship, and Llama 3 ranked fifth 750,000 rounds of one-on-one battle between large models, GPT-4 won the championship, and Llama 3 ranked fifth Apr 23, 2024 pm 03:28 PM

Regarding Llama3, new test results have been released - the large model evaluation community LMSYS released a large model ranking list. Llama3 ranked fifth, and tied for first place with GPT-4 in the English category. The picture is different from other benchmarks. This list is based on one-on-one battles between models, and the evaluators from all over the network make their own propositions and scores. In the end, Llama3 ranked fifth on the list, followed by three different versions of GPT-4 and Claude3 Super Cup Opus. In the English single list, Llama3 overtook Claude and tied with GPT-4. Regarding this result, Meta’s chief scientist LeCun was very happy and forwarded the tweet and

How to set up scheduled publishing on Weibo_Tutorial on how to set up scheduled publishing on Weibo How to set up scheduled publishing on Weibo_Tutorial on how to set up scheduled publishing on Weibo Mar 29, 2024 pm 03:51 PM

1. Open the Weibo client, click the three little dots on the editing page, and then click Scheduled Post. 2. After clicking on scheduled posting, there will be a time option on the right side of the publishing time. Set the time, edit the article, and click on the yellow words in the lower right corner to schedule posting. 3. The mobile version of Weibo does not currently support scheduled publishing. This function can only be used on the PC client!

Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Jun 02, 2024 pm 02:58 PM

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Do Not Disturb Mode Not Working in iPhone: Fix Do Not Disturb Mode Not Working in iPhone: Fix Apr 24, 2024 pm 04:50 PM

Even answering calls in Do Not Disturb mode can be a very annoying experience. As the name suggests, Do Not Disturb mode turns off all incoming call notifications and alerts from emails, messages, etc. You can follow these solution sets to fix it. Fix 1 – Enable Focus Mode Enable focus mode on your phone. Step 1 – Swipe down from the top to access Control Center. Step 2 – Next, enable “Focus Mode” on your phone. Focus Mode enables Do Not Disturb mode on your phone. It won't cause any incoming call alerts to appear on your phone. Fix 2 – Change Focus Mode Settings If there are some issues in the focus mode settings, you should fix them. Step 1 – Open your iPhone settings window. Step 2 – Next, turn on the Focus mode settings

How to set the watermark in the middle on Weibo_How to set the watermark in the middle on Weibo How to set the watermark in the middle on Weibo_How to set the watermark in the middle on Weibo Mar 29, 2024 pm 03:31 PM

1. First enter Weibo, then click on me in the lower right corner and select [Customer Service]. 2. Then enter [Watermark] in the search box and select [Set Weibo Image Watermark]. 3. Then click [Link] in the interface. 4. Then click [Image Watermark Settings] in the newly opened window. 5. Finally, check [Picture Center] and click [Save].

How to set the countdown to grab tickets in Damai How to set the countdown to grab tickets in Damai Apr 01, 2024 pm 07:01 PM

When buying tickets on Damai.com, in order to ensure that the ticket purchase time can be accurately grasped, users can set a floating clock to grab tickets. The detailed setting method is below, let us learn together. How to bind the floating clock to Damai 1. Click to open the floating clock app on your phone to enter the interface, and click on the location where the flash sale check is set, as shown in the figure below: 2. After coming to the page of adding new records, click on Damai.com Copy the ticket purchase link page copied in. 3. Next, set the flash sale time and notification time below, turn on the switch button behind [Save to Calendar], and click [Save] below. 4. Click to turn on [Countdown], as shown in the figure below: 5. When the reminder time comes, click the [Start Picture-in-Picture] button below. 6. When the ticket purchase time comes

How to check the version of Douyin How to check the version of Douyin Apr 15, 2024 pm 12:06 PM

1. Open the Douyin app and click [Me] in the lower right corner to enter the personal page. 2. Click the [Three Stripes] icon in the upper right corner and select the [Settings] option in the pop-up menu bar. 3. In the settings page, scroll to the bottom to view the current version number information of Douyin.

See all articles