DEDECMS內容圖片在二級域名下調用的方法,織夢文章
導讀:織夢文章織夢文章DedeCmsSYSTEM_配置參數(shù)-其它選項中有兩個配置選項:[附件目錄是否綁定為指定的二級域名|附件目錄的二級域名]很明顯示官方早就注意到了在二級域名下的各織夢模板網(wǎng)織夢文章模板。
DedeCmsSYSTEM_配置參數(shù)->其它選項中有兩個配置選項:[附件目錄是否綁定為指定的二級域名|附件目錄的二級域名]很明顯示官方早就注意到了在二級域名下的各種子問題!
打開include/FCKeditor/editor/dialog/目錄下的文件:“dede_image.php”!
將這個
if($cfg_multi_site=='N')
{
$imgHtml.="<imgsrc=\"$imgsrcValue\"width=\"$imgwidthValue\"border=\"0\"height=\"$imgheightValue\"alt=\"$altname\"style=\"cursor:pointer\"onclick=\"window.open('$urlValue')\"/><br/>\r\n";
}
else
{
if(empty($cfg_basehost))$cfg_basehost='http://'.$_SERVER["HTTP_HOST"];
$imgHtml.="<imgsrc=\"$imgsrcValue\"width=\"$imgwidthValue\"border=\"0\"height=\"$imgheightValue\"alt=\"$altname\"style=\"cursor:pointer\"onclick=\"window.open('$urlValue')\"/><br/>\r\n";
}
改成下面
if($GLOBALS['cfg_addon_domainbind']){$addon_domain=$GLOBALS['cfg_addon_domain'];}
if($cfg_multi_site=='N')
{
$imgHtml.="<imgsrc=\"{$addon_domain}織夢的模板{$imgsrcValue}\"width=\"$imgwidthValue\"border=\"0\"height=\"$imgheightValue\"alt=\"$altname\"style=\"cursor:pointer\"onclick=\"window.open('{$addon_domain}{$urlValue}')\"/><br/>\r\n";
}
else
{
if(empty($cfg_basehost))$cfg_basehost='http://'.$_SERVER["HTTP_HOST"];
$imgHtml.="<imgsrc=\"{$addon_domain}{$imgsrcValue}\"width=\"$imgwidthValue\"border=\"0\"height=\"$imgheightValue\"alt=\"$altnam夢織模板e\"style=\"cursor:pointer\"onclick=\"window.open('{$addon_domain}{$urlValue}')\"/><br/>\r\n";
}
現(xiàn)在上傳的圖片正常了,接下來咱們要考慮的是下面不是有一個“瀏覽服務器_”的按紐嗎,[圖片/隨便/flash/多媒體]都有這個功能!
先打開include/dialog/目錄下的select_images.php|select_media.php|select_soft.php|select_templets.php
將下面的代碼:
聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-07-20 ,文章DEDECMS內容圖片在二級域名下調用的方法,織夢文章主要講述標簽,標題,域名網(wǎng)站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_31585.html
為你推薦與DEDECMS內容圖片在二級域名下調用的方法,織夢文章相關的文章
