织梦dedecms怎么让企业和个人注册使用不同模板

92建站   织梦CMS   2021-08-04   收藏本文

本文介绍了织梦dedecms怎么让企业和个人注册使用不同模板,默认情况下,dedecms注册企业账户和个人账户使用注册模板,但有时我们需要使用两个不同的模板来注册企业账户和个人账户。我们做什么呢?以下92建站将教你如何实现它。

旺铺招租1 旺铺招租2 旺铺招租3

以前92建站小编和大伙儿介绍过搜索结果不同模型不同模板的方法,今天再来说说企业和个人注册使用不同模板的方法。

首先复制reg-new.htm和reg_new.php到对应的文件夹里

重命名为:reg-new_q.htm和reg_new_q.php (企业注册)

然后修改代码

reg-new.htm: //////替换(方法来自论坛)

<li><span>帐号类型:</span>

<input type="radio" name="mtype" id="type3" value="个人" checked="checked"/><labelfor="type1">个人</label>

</li>

reg_new_q.htm://////替换(方法来自论坛)

<li><span>帐号类型:</span>

<input type="radio" name="mtype" id="type3" value="企业" checked="checked"  /><label for="type2">企业</label>

</li>

reg_new_q.php://////替换

require_once(DEDEMEMBER."/templets/reg-new_q.htm");

index_do.php://////添加

else if($dopost=="regnew_q")

{

require_once(dirname(__FILE__)."/reg_new_q.php");

exit();

}

个人用户注册地址:http://www.92jzh.com   /member/index_do.php?fmdo=user&dopost=regnew

企业用户注册地址:http://www.92jzh.com    /member/index_do.php?fmdo=user&dopost=regnew_q

在通过模板修改一些东西就可以了

旺铺招租4
旺铺招租5 旺铺招租5
展开