dedecms会员空间更换模板教程_dedecms_CMS教程_迪尔课堂

关键字描述:模板 教程 更换 空间 会员 " spacetemplets < spacetemple6FV迪尔课堂自学网-|第二课堂|--(官网)
6FV迪尔课堂自学网-|第二课堂|--(官网)

dedecms会员空间更换模板教程:6FV迪尔课堂自学网-|第二课堂|--(官网)

1、数据库member表spacename后增加字段spacetemplets字段6FV迪尔课堂自学网-|第二课堂|--(官网)
6FV迪尔课堂自学网-|第二课堂|--(官网)

6FV迪尔课堂自学网-|第二课堂|--(官网)

2、在member/templets/space/目录增加几个自选模板文件夹6FV迪尔课堂自学网-|第二课堂|--(官网)
如:6FV迪尔课堂自学网-|第二课堂|--(官网)
member/templets/space/1/6FV迪尔课堂自学网-|第二课堂|--(官网)
member/templets/space/2/6FV迪尔课堂自学网-|第二课堂|--(官网)
member/templets/space/3/6FV迪尔课堂自学网-|第二课堂|--(官网)
6FV迪尔课堂自学网-|第二课堂|--(官网)

6FV迪尔课堂自学网-|第二课堂|--(官网)

3、修改member/index.php6FV迪尔课堂自学网-|第二课堂|--(官网)

104行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_info.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
132行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_guestbook_form.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
167行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_index.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
213行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_group.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
253行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_threads.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
287行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_asks.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)
321行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_infos.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)

增加".$spacetemplets."/路径6FV迪尔课堂自学网-|第二课堂|--(官网)

115行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select 6FV迪尔课堂自学网-|第二课堂|--(官网)
ID,uname,spacename,spacetemplets,spaceimage,news,sex,c1,c2,spaceshow,logintime,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)
143行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select ID, userid, `type`, 6FV迪尔课堂自学网-|第二课堂|--(官网)
uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)
184行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select ID, userid, `type`, 6FV迪尔课堂自学网-|第二课堂|--(官网)
uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)
224行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select ID, userid, `type`, 6FV迪尔课堂自学网-|第二课堂|--(官网)
uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)
258行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select ID, userid, `type`, 6FV迪尔课堂自学网-|第二课堂|--(官网)
uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)
292行6FV迪尔课堂自学网-|第二课堂|--(官网)
$spaceInfos = $dsql->GetOne("Select ID, userid, `type`, 6FV迪尔课堂自学网-|第二课堂|--(官网)
uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From 6FV迪尔课堂自学网-|第二课堂|--(官网)
dede_member where `$fieldname`='{$fieldvalue}'; ");6FV迪尔课堂自学网-|第二课堂|--(官网)

增加spacetemplets字段6FV迪尔课堂自学网-|第二课堂|--(官网)

4、member/space_info.php6FV迪尔课堂自学网-|第二课堂|--(官网)

7行6FV迪尔课堂自学网-|第二课堂|--(官网)
require_once(dirname6FV迪尔课堂自学网-|第二课堂|--(官网)
(__FILE__)."/templets/space/".$spacetemplets."/member_infos.htm");6FV迪尔课堂自学网-|第二课堂|--(官网)

增加spacetemplets字段6FV迪尔课堂自学网-|第二课堂|--(官网)

5、member/templets/space_info.htm6FV迪尔课堂自学网-|第二课堂|--(官网)

58行后增加6FV迪尔课堂自学网-|第二课堂|--(官网)
<tr> 6FV迪尔课堂自学网-|第二课堂|--(官网)
<td height="24" colspan="2" bgcolor="#FBFEEF" > 选择模板:</td>6FV迪尔课堂自学网-|第二课堂|--(官网)
</tr>6FV迪尔课堂自学网-|第二课堂|--(官网)
<tr> 6FV迪尔课堂自学网-|第二课堂|--(官网)
<td height="35" colspan="2" >   6FV迪尔课堂自学网-|第二课堂|--(官网)
<input name="spacetemplets" type="text" id="spacetemplets" size="35" 6FV迪尔课堂自学网-|第二课堂|--(官网)
value="<?php echo $spacetemplets?>" class="company_manage_form_label" /> 6FV迪尔课堂自学网-|第二课堂|--(官网)
</td>6FV迪尔课堂自学网-|第二课堂|--(官网)
</tr>6FV迪尔课堂自学网-|第二课堂|--(官网)
6FV迪尔课堂自学网-|第二课堂|--(官网)

6FV迪尔课堂自学网-|第二课堂|--(官网)

效果:6FV迪尔课堂自学网-|第二课堂|--(官网)
6FV迪尔课堂自学网-|第二课堂|--(官网)

6FV迪尔课堂自学网-|第二课堂|--(官网)

6、member/index_do.php6FV迪尔课堂自学网-|第二课堂|--(官网)

327行6FV迪尔课堂自学网-|第二课堂|--(官网)
$upquery = "Update dede_member set spacename='$spacename',spacetemplets='$spacetemplets',spaceimage='$spaceimage',news='$news',mybb='$mybb'6FV迪尔课堂自学网-|第二课堂|--(官网)
where ID='".$cfg_ml->M_ID."';6FV迪尔课堂自学网-|第二课堂|--(官网)
";6FV迪尔课堂自学网-|第二课堂|--(官网)

增加spacetemplets字段6FV迪尔课堂自学网-|第二课堂|--(官网)

此行数为修改过后的行数,所给出的代码为修改后的代码,只作参考。6FV迪尔课堂自学网-|第二课堂|--(官网)
由于时间不多,所以没有太多的图片,只是比较简单容易实现个人会员自选空间模板。此次改动,并没有做后台管理员设置的选项,也没有做企业会员的自选模板,等有时间,我可能会写出相关的教程,由于我也没有用过DEDECMS,只看着代码去修改,难免有错漏的,如果错误,请指出,别丢骂就OK了。6FV迪尔课堂自学网-|第二课堂|--(官网)

6FV迪尔课堂自学网-|第二课堂|--(官网)

扫一扫手机访问