帝国cms会员中心根据会员组显示不同内容

admin 2024年1月19日13:06:42帝国cms技巧评论1,039 次浏览阅读模式

内容摘要

帝国cms会员中心根据会员组显示不同内容

文章正文

会员组ID获取用:$tmgetgroupid=(int)getcvar('mlgroupid');

例子:

<?php

$tmgetgroupid=(int)getcvar('mlgroupid');

if($tmgetgroupid==1)

{

?>

会员组ID=1时显示

<?php

}

elseif($tmgetgroupid==2)

{

?>

会员组ID=2时显示

<?php

}

?>

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日13:06:42
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17792.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: