Home > Backend Development > PHP Tutorial > destoon implements the method of placing advertisements for designated members or member groups in member stores, destoon places advertisements_PHP tutorial

destoon implements the method of placing advertisements for designated members or member groups in member stores, destoon places advertisements_PHP tutorial

WBOY
Release: 2016-07-13 10:20:28
Original
945 people have browsed it

destoon implements the method of placing advertisements for designated members or member groups in member stores, and destoon places advertisements

The example in this article describes destoon’s method of implementing advertisements for designated members or member groups in member stores, which is of great practical value for destoon development. Share it with everyone for your reference. The specific method is as follows:

1. Specify member attributes to place ads

If you want to display ads in the same location, you can add:

to the side.htm file under the template folder templatedefaulthomepage.
{if $COM[vip]}
{else}
显示的AD(可以调用网站广告管理里的调用方式)
{/if}

Copy after login

Detailed explanation: The meaning of the above code is that VIP does not display ads, but other members do. It can well reflect the advantages of VIP and is worth applying.

2. Designate member groups to place ads

The implementation code is as follows:

{if $COM[groupid]==x}
{else}
显示的AD(可以调用网站广告管理里的调用方式)
{/if}

Copy after login

I hope the method described in this article will be helpful to everyone in destoon development.

destoon How to set the member group icon corresponding to the member group?

I have implemented different member groups to display different icons. Demo site: Jiangxi Nankang Online Furniture City. In the tag folder under the template folder, find list-company.htm and list-com.htm, and modify the corresponding code. The code is as follows :{if $t[groupid] == "7"}Diamond Member{/if}{if $t[groupid] = = "8"}Crown Member{/if}{if $t[groupid] == "9"}Golden Crown Member{/if}

How to call the member group name in destoon

If the name "Exhibitor" is fixed here, then you can just write "Exhibitor" directly. . .

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/867230.htmlTechArticledestoon implements the method of specifying members or member groups to place advertisements in member stores. Destoon places advertisements. This article describes the implementation of destoon. Specify members or member groups in member stores to place advertisements...
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template