Home > CMS Tutorial > Empire CMS > body text

How Imperial CMS displays different content based on different member groups

silencement
Release: 2019-11-27 13:29:36
forward
2711 people have browsed it

How Imperial CMS displays different content based on different member groups

The example in this article describes the method of Empire CMS to display different content according to different member groups. Share it with everyone for your reference. The specific implementation method is as follows:

The code is as follows:

<?php
if(getcvar(&#39;mlgroupid&#39;)==1)
{
?>
//会员组id=1时显示内容
<?php
}
elseif(getcvar(&#39;mlgroupid&#39;)==2)
{
?>
//会员组id=2时显示内容
<?php
}
?>
Copy after login

It is recommended to study "Empire cms tutorial"

I hope that this article will help everyone build an Imperial CMS website Helps.

The above is the detailed content of How Imperial CMS displays different content based on different member groups. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:www.word666.com
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!