discuz论坛|插入|广告|广告代码|论坛|签名|discuz
几日前,一个朋友问我在discuz论坛中如何像动网一样在每楼帖子的末尾添加广告代码,因为在默认的帖子下方广告代码里添加高度稍高和宽度稍宽的代码都不美观。当时因为时间仓促,没有解决。刚刚有点时间,就顺便将这个代码实现了。
好了,不多说了,下面开始介绍添加的办法。
难易程度:极简单
修改文件:viewthread.htm
效果演示:http://bbs.dxszz.com/thread-1075-1-1.html
下面以添加1至3楼底部相同的广告代码为例:
首先,我们到论坛模板模板管理下的默认模板文件下找到viewthread这个模板文件(或直接FTP到/templates/default/viewthread.htm),查找
以下为引用的内容:
在其上面添加:
以下为引用的内容:
$post[count]帖子下方广告调用代码
这样就添加完成了。
如果您是想要直接在第多少楼添加代码,只需要将
以下为引用的内容:
改为
以下为引用的内容:
即可。
其实我只是做了简单的修改,在个性签名的签名加广告代码,就算是抛砖引玉吧。以后如果哪位朋友方便的话,鼓励开发这么个插件来方便修改设置每一楼的广告代码。以后记得告诉下我哟,(*^__^*) 嘻嘻……

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version
SublimeText3 Linux latest version