destoon实现会员商铺中指定会员或会员组投放广告的方法,destoon投放广告
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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

1. How to buy WeChat reading membership cheaply? Share the best way to buy membership on WeChat Reading! 1. Open the WeChat Reading APP. There is a reading challenge in the reading welfare special session. Participate in the reading challenge. 2. Pay 1 yuan to participate, read for 7 days, duration >7 hours, and get a 4-day paid membership card with 4 book coins. You can participate for about 52 weeks in a year. If you participate every time, it will cost a total of 52 yuan, and you can get a total of 208 days. Paid membership card 208 book coins. 3. Pay 3 yuan to participate, read for 14 days, duration >14 hours, and get a 10-day paid membership card with 10 book coins. You can participate about 26 times a year. If you participate every time, it will cost a total of 78 yuan, and you can get a total of 260 days. Paid membership card costs 260 book coins. 4. Pay 4 yuan to participate and read for 21 days

QQ Music is a music-listening software used by many users. Some songs here require users to have membership before they can download and play them. So how to get QQ Music membership for free? Let this site give users a detailed introduction to the tutorial on how to obtain QQ Music membership for free. Tutorial on getting QQ Music membership for free 1. First, we open QQ Music. 2. Go to my homepage and click on the three horizontal lines in the upper right corner. 3. Click to open the free music listening mode here. 4. A 15-second advertisement will appear here. We only need to wait for the advertisement to end to get a thirty-minute membership experience. Experience time can be superimposed. 5. Obtain a membership after reading it. Receive 1 day of QQ music

How to cancel automatic membership renewal on Kugou Music APP? There are many users who have applied for Kugou Music’s VIP auto-renewal service. Later, they want to cancel this service, but they don’t know where to cancel it. Below, I will bring you a tutorial on how to cancel the auto-renewal of Kugou Music. I hope it will be helpful to everyone. . It is very simple to cancel automatic renewal in Kugou Music APP: just enter the member center, find the music package/luxury VIP option, select automatic renewal enabled, and then click to close renewal. 2. WeChat: As shown in the picture below, go to the payment page, click the three dots in the upper right corner, select the deduction service, click Kugou Music to close the service; 3. Alipay: Go to the settings page, select payment settings, and select password-free payment/ Automatically deduct fees, and finally choose Kugou Music to terminate the contract.

Bilibili is a video playback platform with rich resources, including a dance area, ghost animal area, food area, animal area, etc. But now many times you need to be a member to watch videos on site B. If you don’t want to spend money, can you get a member of site B? The editor here will bring you how to get the free membership of Bilibili. I hope it can help you. How to get free membership on Bilibili: Open Bilibili and click "My". Click the "Creation Home" icon in the "Creation Center" area. After entering the creation center, click "Task Center". After entering the task center, read the corresponding tasks and complete them to get points.

How to cancel the automatic renewal of Zhihu app membership? Zhihu app is a very practical mobile software. This software has many functions, and each function will bring a different feeling to the users. There are some contents on this software that require users to register as a member before they can read them. Membership on this software is not expensive, and continuous monthly membership will be cheaper. Some players want to know how to cancel automatic renewal. The editor below has compiled methods for canceling automatic renewal for your reference. How to cancel automatic renewal for Zhihu app members Zhihu members can choose four renewal methods, including Apple Pay, WeChat Pay, Alipay Pay and Baidu Pay. For users who choose Baidu Pay, renewal can be managed through WeChat or Alipay payment.

The "VIP membership" function in Xianyu APP is a value-added service provided to users. Users who become VIP members can enjoy a series of privileges and benefits, such as increased product exposure, more display opportunities, exclusive customer service, transaction guarantee upgrades, etc., which help improve users’ buying and selling experience and efficiency. How to become a member of Xianyu 1. First open the Xianyu software. After entering the homepage, you can switch to different pages. Here we click [My] in the lower right corner; 2. Then we can view many different pages in For information, we need to click [My Fish Value]; 3. After the final click, we can activate VIP membership on this page;

Ximalaya membership is a paid membership service that allows users to listen to audio content, download works of Ximalaya anchors, and enjoy more privileges and benefits. However, many users hope to receive free Himalaya membership to enjoy more audio resources. So, is there really a way to get a Himalayan membership for free? This article will share some methods and techniques to help readers better obtain Himalaya membership. First, we need to understand the basic situation of Himalaya members. Himalayan membership is divided into two types: ordinary members and professional members. general

Quark Network Disk is powerful and can store various types of files in various formats. Many users have recharged Quark Network Disk membership, but now they feel that they can no longer use it. How can they cancel the automatic membership renewal? The editor below will introduce to you how to turn off the automatic renewal function of Quark, come and take a look. Quark Network Disk Tutorial on Cancel Automatic Renewal 1. Open Alipay on your mobile phone and click [Settings] on my page. 2. Click [Payment Settings] and click [Password-free Payment/Automatic Deduction]. 3. Click on the Quark Network Disk Continuous Monthly Subscription Project and click [Close Service].
