织梦会员空间更换模板

数据库member表spacename后增加字段spacetemplets字段

在member/templets/space/目录增加几个自选模板文件夹

例如:

member/templets/space/1/

member/templets/space/2/

member/templets/space/3/

修改/member/index.php

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_info.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_guestbook_form.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_index.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_group.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_threads.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_asks.htm");

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_infos.htm");

增加".$spacetemplets."/路径

$spaceInfos = $dsql->GetOne("Select

ID,uname,spacename,spacetemplets,spaceimage,news,sex,c1,c2,spaceshow,logintime,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

$spaceInfos = $dsql->GetOne("Select ID, userid, `type`,

uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

$spaceInfos = $dsql->GetOne("Select ID, userid, `type`,

uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

$spaceInfos = $dsql->GetOne("Select ID, userid, `type`,

uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

$spaceInfos = $dsql->GetOne("Select ID, userid, `type`,

uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

$spaceInfos = $dsql->GetOne("Select ID, userid, `type`,

uname,c1,c2,spaceshow,logintime,spacename,spacetemplets,spaceimage,news,scores From

dede_member where `$fieldname`='{$fieldvalue}'; ");

增加spacetemplets字段

打开/member/space_info.php

require_once(dirname

(__FILE__)."/templets/space/".$spacetemplets."/member_infos.htm");

增加spacetemplets字段

打开/member/templets/space_info.htm

58行后增加

<tr>

<td height="24" colspan="2" bgcolor="#FBFEEF" > 选择模板:</td>

</tr>

<tr>

<td height="35" colspan="2" >  

<input name="spacetemplets" type="text" id="spacetemplets" size="35"

value="<?php echo $spacetemplets?>" class="company_manage_form_label" />

</td>

</tr>

效果:

打开/member/index_do.php

$upquery = "Update dede_member set spacename='$spacename',spacetemplets='$spacetemplets',spaceimage='$spaceimage',news='$news',mybb='$mybb'

where ID='".$cfg_ml->M_ID."';

";

增加spacetemplets字段

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfwpg.html