欢迎光临
我们一直在努力

帝国CMS评论时如何自动判断会员是否登陆

如果没有在后台 栏目——管理评论——评论参数设置——关闭评论验证码。需要将 评论表单([!–temp.pl–]) 中的验证码保留。

在 e\pl 的文件夹下建立一个 test.php(名称可以自定义)文件:

<?php
require("../class/connect.php");
if(!defined('InEmpireCMS'))
{
exit();
}
$myuserid=(int)getcvar('mluserid');
$myusername=getcvar('mlusername');
if($myuserid)
{
?>
document.writeln("<label>用户名:<a href=\"<?=$public_r[newsurl]?>e/space/?userid=<?=$myuserid?>\"><?=$myusername?></a><\/label>");
<?
}
else
{
?>
document.writeln("<label>用户名:<input size=\"10\" name=\"username\" type=\"text\" \/><\/label><label>密码:<input size=\"10\" type=\"password\" name=\"password\" \/><\/label><label><input type=\"checkbox\" name=\"nomember\" id=\"nomember\" value=\"1\" checked=\"checked\" \/>匿名(无需注册)<\/label><a href=\"<?=$public_r[newsurl]?>e\/member\/register\/\">立即注册<\/a>");
<?
}
?>

然后在后台 模板——公共变量模板——管理模板变量中找到 评论表单([!–temp.pl–])点击修改,在调用的地方使用即可:

<script src="[!--news.url--]e/pl/test.php"></script>

 

赞(0) 打赏
未经允许不得转载:新起点博客 » 帝国CMS评论时如何自动判断会员是否登陆
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

pune porn erodrunks.info hindi sex video mp3 xnxx. con ganstababes.info telugusexvideoscom xnxx page 3 tubeporncity.info www.xvideos.com indean prone سكس18 alteporno.com اروع سكس 天咲めい javidol.org うっかり入っちゃった!? 従姉妹と密着ゲーム中 bangla bf sexy beegporn.mobi desigirl blog.com indian village sex videos free download dudano.mobi deshi sex vedios افلام سكس محجبات arabsexflesh.com سكس طياز كبير x.videos.in pornview.org onlyindianporn.com سكساخوات yousexeporno.com نيك سارة free sex prone videos bullporn.mobi todaypk.ag فيديو سكس عربي جديد arabporna.net نيك في الحمام agrias oaks hentai hentaiweb.net naruto hnetai porn bideo pornframe.net is udta punjab leaked xxx indin move movstars.com english bf film