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('mlgroupid')==1) { ?> //会员组id=1时显示内容 <?php } elseif(getcvar('mlgroupid')==2) { ?> //会员组id=2时显示内容 <?php } ?>
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!