\destoon\template\default\member\home.htm
这个htm文件就是我们要新添设置的展示页,这时我们搞清楚页面的逻辑关系就可以进行新添了。
<tr>//大概第4行
<td class="tab" id="Tab0"><a href="javascript:Tab(0);"><span>常用设置</span></a></td>
<td class="tab" id="Tab1"><a href="javascript:Tab(1);"><span>导航菜单</span></a></td>
<td class="tab" id="Tab2"><a href="javascript:Tab(2);"><span>侧边栏</span></a></td>
<td class="tab" id="Tab3"><a href="javascript:Tab(3);"><span>首页设置</span></a></td>
<td class="tab" id="Tab4"><a href="javascript:Tab(4);"><span>其他设置</span></a></td>
<td class="tab" id="Tab5"><a href="javascript:Tab(5);"><span>新添设置</span></a></td>//新添设置
//如果需要根据会员组在判断此会员组的会员能不能使用此功能,可添加以下判断
{if $_groupid == 11}
<td class="tab" id="Tab5"><a href="javascript:Tab(5);"><span>新添设置</span></a></td>
{/if}
</tr>
<div id="Tabs4" style="display: none;"></div>//大概在283行
<div id="Tabs5" style="display: none;"></div>//在Tabs4后面添加tabs5,里面为你想新添内容
\destoon\module\member\home.inc.php
\destoon\module\member\home.inc.php
//大概在21行,在此添加你需要用到的字段名称
delete_upload($setting['background'], $_userid);
delete_upload($setting['logo'], $_userid);
delete_upload($setting['video'], $_userid);
delete_upload($setting['banner'], $_userid);
delete_upload($setting['bannerf'], $_userid);
delete_upload($setting['banner1'], $_userid);
delete_upload($setting['banner2'], $_userid);
delete_upload($setting['banner3'], $_userid);
delete_upload($setting['banner4'], $_userid);
delete_upload($setting['banner5'], $_userid);
//大概在39行,在此添加你需要用到的字段名称
foreach(array('background', 'logo', 'video', 'banner', 'bannerf', 'banner1', 'banner2', 'banner3', 'banner4', 'banner5', 'bannerlink1', 'bannerlink2', 'bannerlink3', 'bannerlink4', 'bannerlink5') as $v) {
//大概在43行,在此添加你需要用到的字段名称
if($HOME['background'] != $setting['background']) delete_upload($HOME['background'], $_userid);
if($HOME['logo'] != $setting['logo']) delete_upload($HOME['logo'], $_userid);
if($HOME['video'] != $setting['video']) delete_upload($HOME['video'], $_userid);
if($HOME['banner'] != $setting['banner']) delete_upload($HOME['banner'], $_userid);
if($HOME['bannerf'] != $setting['bannerf']) delete_upload($HOME['bannerf'], $_userid);
if($HOME['banner1'] != $setting['banner1']) delete_upload($HOME['banner1'], $_userid);
if($HOME['banner2'] != $setting['banner2']) delete_upload($HOME['banner2'], $_userid);
if($HOME['banner3'] != $setting['banner3']) delete_upload($HOME['banner3'], $_userid);
if($HOME['banner4'] != $setting['banner4']) delete_upload($HOME['banner4'], $_userid);
if($HOME['banner5'] != $setting['banner5']) delete_upload($HOME['banner5'], $_userid);
clear_upload($setting['background'].$setting['logo'].$setting['video'].$setting['banner'].$setting['bannerf'].$setting['banner1'].$setting['banner2'].$setting['banner3'].$setting['banner4'].$setting['banner5'], $_userid, 'company_setting');
\destoon\module\company\init.inc.php
\destoon\module\company\init.inc.php
//大概在208行,在此根据以下书写方法添加你需要的字段
$bannert = isset($HOME['bannert']) ? $HOME['bannert'] : 0;
$banner = isset($HOME['banner']) ? $HOME['banner'] : '';
$bannerf = isset($HOME['bannerf']) ? $HOME['bannerf'] : '';
$banner1 = isset($HOME['banner1']) ? $HOME['banner1'] : '';
$banner2 = isset($HOME['banner2']) ? $HOME['banner2'] : '';
$banner3 = isset($HOME['banner3']) ? $HOME['banner3'] : '';
$banner4 = isset($HOME['banner4']) ? $HOME['banner4'] : '';
$banner5 = isset($HOME['banner5']) ? $HOME['banner5'] : '';
$bannerlink1 = isset($HOME['bannerlink1']) ? $HOME['bannerlink1'] : '';
$bannerlink2 = isset($HOME['bannerlink2']) ? $HOME['bannerlink2'] : '';
$bannerlink3 = isset($HOME['bannerlink3']) ? $HOME['bannerlink3'] : '';
$bannerlink4 = isset($HOME['bannerlink4']) ? $HOME['bannerlink4'] : '';
$bannerlink5 = isset($HOME['bannerlink5']) ? $HOME['bannerlink5'] : '';
//大概在240行,如果新添的内容中有banner图,可在此新添字段设置banner图默认大小
$bannerw = (isset($HOME['bannerw']) && $HOME['bannerw']) ? intval($HOME['bannerw']) : 960;
$bannerh = (isset($HOME['bannerh']) && $HOME['bannerh']) ? intval($HOME['bannerh']) : 200;