When DedeCMS releases an atlas, it remotely calls the modification of the picture for dede5.7SP1.
this article, based on the copy of the dream CMS online copy, directly calls the remote image non downloadable method
http://www.51dedecms.com/news/dedecms/2... /2193.html
1, use Notepad to open the album_add.htm file under the dede\templets directory
search
[code] online copy the picture [/code]
add
[code].lt after it. Ot; showHtmlField (this,'htmlfield','zipff');.Quot; /.gt; call the picture [/code]
and then save the
2. T; class=.quot; np.quot; type=.quot; checkbox.quot; id=.quot; formhtml.quot; value=.quot; 2.quot; onClick=.quot; showHtmlField. / / / / to process and save
/*---------------------
function _getformhtml ()
------------------*/
if ($formhtml==1)
{
$imagebody = stripslashes. Picname);
if ($ddisfirst==1.Amp;.Amp; $litpic==''.Amp;.Amp; empty ($litpicname))
> = > / > / / handles and saves the picture copied from the net / > /*---------------------
function _getformhtml ()
------------------*/
if ($formhtml==1)
{
$imagebody = stripslashes ($imagebody); P; $litpic==''.Amp;.Amp; empty ($litpicname))
{
$litpic = $litpicname;
$hasone = =; Ysource, $litpicname);
if ($ddisfirst==1.Amp;.Amp; $litpic==''.Amp;.Amp;! Empty ($litpicname)).
4, use Notepad to open the album_edit.php file under the Dede directory,
search for
[code] //----------------------------
/ / / / HTML for a new picture
//----------------------------
= > > > > > = > = Stripslashes ($imagebody);
$imgurls. = GetCurContentAlbum ($imagebody, $copysource, $litpicname);
if ($ddisfirst==1.Amp). }
}[/code]
replace
[code] //----------------------------
/ / / / / HTML from a new picture
//----------------------------
if ($formhtml==1.Amp;! $imgurls. = GetCurContentAlbum ($imagebody, $copysource, $litpicname);
if ($ddisfirst==1.Amp;.Amp; $litpic==.quot;.Quot; > > > > > > > > > > > = > > > > > > > > > > > ($formhtml==2.Amp;.Amp;! Empty ($imagebody))
{
$imagebody = stripslashes ($imagebody);
$imgurls. Ame;
$hasone = true;
}
}[/code]
and then save.
5, use Notepad to open the inc_archives_functions.php file under the dede\inc directory,
search
[code]/**
* to obtain the external resources in the article body [/code]
I_site, $cfg_basehost, $cfg_ddimg_width;
Global $cfg_basedir, $pagestyle, $cuserLogin, $cfg_addon_savetype;
require_once (DEDEINC.'/dedecollection.func.php'); ^.gt;.#93; *) / (gif|jpg|png)) /isU.quot; $body, $img_array);
$img_array = array_unique ($img_array.#91; 2.#93;); > return $rsimg;
}[/code]
and then save.
please debug on your computer first, then
finally upload the 5 files to cover the corresponding files.