精品国产免费观看久久久_久久天天躁狠狠躁夜夜爽_无码人妻少妇久久中文字幕_狠狠做深爱婷婷久久综合一区

互聯(lián)網(wǎng)知識

精準(zhǔn)傳達 ? 價值共享

洞悉互聯(lián)網(wǎng)前沿資訊,探尋網(wǎng)站營銷規(guī)律

網(wǎng)站欄目大圖 欄目小圖 英文名稱 手動添加的方法

作者:狐靈科技 | 2020-04-15 21:37 |點擊:


以下是網(wǎng)站欄目大圖 欄目小圖 英文名稱 手動添加的方法

1、添加2個文件到后臺目錄

  • /dede/catalog_up.php
  • /dede/js/catalog.js

文件下載

鏈接: https://pan.baidu.com/s/1fkzxldVho6JeFznNMWjLpQ 提取碼: yjqs

 

2、添加代碼

8.1、/dede/templets/catalog_add.htm 找到

onSubmit="return checkSubmit();"

改成

onSubmit="return checkSubmit();" enctype="multipart/form-data"

繼續(xù)找到

name="typename"

在它下面的</tr>另起一行插入代碼

 

  1. <script language='javascript' src='js/catalog.js'></script>
    <tr>
    <td class='bline' height="26" style="padding-left:10px;"> 英文名稱: </td>
    <td class='bline'>
    <input name="enname" id="enname" type="text" size="30" class="iptxt" />
    </td>
    </tr>
    <tr>
    <td height="24" colspan="5" class="bline">
    <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="26" style="padding-left:10px;"> 欄目大圖: </td>
    <td width="482">
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
    <td height="30">
    <input name="litpic" id="litpic" type="text" style="width:220px;opacity:1;margin-left:0;cursor:auto;" value="" />
    <input type="button"  value="本地上傳" style="width:70px;cursor:pointer;" />
    <iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
    <span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'catalog_add.php','save','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>
    <input type="button" name="Submit2" value="站內(nèi)選擇" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>
    <input type='checkbox' class='np' name='ddisremote' value='1'>遠程 
    </td>
    </tr>
    </table>
    </td>
    <td width="160" align="center">
    <div id='divpicview' class='divpre'><img height="50" src="images/pview.gif"></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="24" colspan="5" class="bline">
    <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="26" style="padding-left:10px;"> 欄目小圖: </td>
    <td width="482">
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
    <td height="30">
    <input name="litimg" id="litimg" type="text" style="width:220px" value="" />
    <input type="button"  value="本地上傳" style="width:70px;cursor:pointer;" />
    <iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>
    <span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'divsmallpicview', 'upsmallpicfra', 165, 'catalog_add.php', 'save', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>
    <input type="button" name="Submit2" value="站內(nèi)選擇" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>
    <input type='checkbox' class='np' name='ddisremote2' value='1'>遠程 
    </td>
    </tr>
    </table>
    </td>
    <td width="160" align="center">
    <div id='divsmallpicview' class='divpre'><img height="50" src="images/pview.gif"></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>

 

/dede/templets/catalog_edit.htm 找到

onSubmit="return checkSubmit();"

改成

onSubmit="return checkSubmit();" enctype="multipart/form-data"

繼續(xù)找到

name="typename"

在它下面的</tr>另起一行插入代碼

 

  1. <script language='javascript' src='js/catalog.js'></script>
    <tr>
    <td class='bline' height="26" style="padding-left:10px;"> 英文名稱: </td>
    <td class='bline'>
    <input name="enname" id="enname" type="text" size="30" class="iptxt" value="<?php echo $myrow['enname']?>" />
    </td>
    </tr>
    <tr>
    <td height="24" colspan="5" class="bline">
    <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="26" style="padding-left:10px;"> 欄目大圖: </td>
    <td width="482">
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
    <td height="30">
    <input name="litpic" id="litpic" type="text" style="width:220px;opacity:1;margin-left:0;cursor:auto;" value="<?php echo $myrow['litpic']?>" />
    <input type="button"  value="本地上傳" style="width:70px;cursor:pointer;" />
    <iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
    <span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'catalog_edit.php','save','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>
    <input type="button" name="Submit2" value="站內(nèi)選擇" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>
    <input type='checkbox' class='np' name='ddisremote' value='1'>遠程 
    </td>
    </tr>
    </table>
    </td>
    <td width="160" align="center">
    <div id='divpicview' class='divpre'><img height="50" src="<?php if($myrow['litpic']!="") echo $myrow['litpic']; else echo "images/pview.gif";?>"></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="24" colspan="5" class="bline">
    <table width="800" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="26" style="padding-left:10px;"> 欄目小圖: </td>
    <td width="482">
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
    <td height="30">
    <input name="litimg" id="litimg" type="text" style="width:220px" value="<?php echo $myrow['litimg']?>" />
    <input type="button"  value="本地上傳" style="width:70px;cursor:pointer;" />
    <iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>
    <span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'divsmallpicview', 'upsmallpicfra', 165, 'catalog_edit.php', 'save', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>
    <input type="button" name="Submit2" value="站內(nèi)選擇" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>
    <input type='checkbox' class='np' name='ddisremote2' value='1'>遠程 
    </td>
    </tr>
    </table>
    </td>
    <td width="160" align="center">
    <div id='divsmallpicview' class='divpre'><img height="50" src="<?php if($myrow['litimg']!="") echo $myrow['litimg']; else echo "images/pview.gif";?>"></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>


/dede/catalog_add.php 找到 大概在239行

UpDateCatCache();

在它上面加入
 

  1. //添加英文名稱欄目大圖欄目小圖
    require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
    if(!empty($ddisremote))
    {
    $litpic = UploadOneImage('imgfile', $litpic, $ddisremote, 1);
    }
    if(!empty($ddisremote2))
    {
    $litimg = UploadOneImage('imgfile', $litimg, $ddisremote2, 1);
    }
    $id = $dsql->GetLastID();
    $upquery = "UPDATE `#@__arctype` SET `enname`='$enname',`litpic`='$litpic',`litimg`='$litimg' WHERE id='$id' ";
    $dsql->ExecuteNoneQuery($upquery);
    //添加英文名稱欄目大圖欄目小圖

/dede/catalog_edit.php 找到 大概在106行

UpDateCatCache();

在它上面加入

  1. //添加英文名稱欄目大圖欄目小圖
    require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
    if(!empty($ddisremote))
    {
    $litpic = UploadOneImage('imgfile', $litpic, $ddisremote, 1);
    }
    if(!empty($ddisremote2))
    {
    $litimg = UploadOneImage('imgfile', $litimg, $ddisremote2, 1);
    }
    $upquery = "UPDATE `#@__arctype` SET `enname`='$enname',`litpic`='$litpic',`litimg`='$litimg' WHERE id='$id' ";
    $dsql->ExecuteNoneQuery($upquery);
    //添加英文名稱欄目大圖欄目小圖


標(biāo)簽庫輸出修改

/include/taglib/channel.lib.php 找到

id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath

有4處這樣的多個字段,4處都改成

*

/include/taglib/channelartlist.lib.php 找到

id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath

這樣的多個字段,改成

*

 

/include/taglib/type.lib.php 找到

id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath

這樣的多個字段,改成

*

 

這樣就完成了網(wǎng)站欄目大圖 欄目小圖 英文名稱 手動添加的方法


如沒特殊注明,文章均為狐靈科技原創(chuàng),轉(zhuǎn)載請注明?? "網(wǎng)站欄目大圖 欄目小圖 英文名稱 手動添加的方法
多一份免費策劃方案,總有益處。

請直接添加技術(shù)總監(jiān)微信聯(lián)系咨詢

網(wǎng)站設(shè)計 品牌營銷

多一份參考,總有益處

聯(lián)系狐靈科技,免費獲得專屬《策劃方案》及報價

咨詢相關(guān)問題或預(yù)約面談,可以通過以下方式與我們聯(lián)系

業(yè)務(wù)熱線:15082661954 / 大客戶專線:15523356218