When DedeCMS releases an atlas, it remotely calls the modification of the picture for dede5.7SP1.

time:12-02-10 forum:DedeCMS building program
  Note: this function only supports the use of IE browser when publishing articles.
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.

prev:American 97 year old comedian begged alo... next:Shandong crosstalk on the road to reviva...
post comment
Notice



approved   "Tang Ye Da Ma" on Chuang Cheng Road   2 teachers and 7 children were both ...   PHP cURL to achieve simulation login...   The 78 year old academician sits on ...   1978 Henan arts champion Liu Zhenyun...
rand   Running the PHP program code in the ...   Dedecms set up and remove all backdo...   DEDE solution to relative path probl...   When DedeCMS releases an atlas, it r...   DedeCMS downloads remote images and ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com