destoon实现会员商铺中指定会员或会员组投放广告的方法,destoon投放广告
本文实例讲述了destoon实现会员商铺中指定会员或会员组投放广告的方法,对destoon开发来说有很好的实用价值。分享给大家供大家参考,具体方法如下:
一、指定会员属性来投放广告
如果想在同一个位置显示广告的,可以在模板文件夹template\default\homepage下的 side.htm 文件里增加:
{if $COM[vip]} {else} 显示的AD(可以调用网站广告管理里的调用方式) {/if}
详解:以上代码的意思是,VIP不显示广告,其他会员则显示,可以很好的体现出VIP的优势,值得应用。
二、指定会员组来投放广告
实现代码如下:
{if $COM[groupid]==x} {else} 显示的AD(可以调用网站广告管理里的调用方式) {/if}
希望本文所述方法对大家destoon开发有所帮助。
我的实现了不同会员组显示不同图标,演示站:江西南康网上家具城 在模板文件夹下的tag文件夹,找到list-company.htm和list-com.htm,修改相应的代码,代码如下:{if $t[groupid] == "7"}{/if}{if $t[groupid] == "8"}
{/if}{if $t[groupid] == "9"}
{/if}
如果这里固定是“参展商”这个名字的话 , 那你就直接写“参展商”算了。。。

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

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

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