When using DEDECMS, found that the new download source files in the first page of the slide is not good, no matter what new articles updated, even if there is no picture, the slides will show, of course, the system is showing the default beauty Stefanie Sun.
Fix first hit the slide call code snippet in template index.html
Locate the following code
{dede:arcfulllist row= ' 5 ' att= ' 3 '}
Linkarr[[field:global name=autoindex/]] = "[field:arcurl/]";
Picarr[[field:global name=autoindex/]] = "[field:litpic/]";
Textarr[[field:global name=autoindex/]] = "[field:title/]";
{/dede:arcfulllist}
Modified into
{dede:arclist row= ' 5 ' type= ' image '}
Linkarr[[field:global name=autoindex/]] = "[field:arcurl/]";
Picarr[[field:global name=autoindex/]] = "[field:litpic/]";
Textarr[[field:global name=autoindex/]] = "[field:title/]";
{/dede:arclist}
It means that only articles with pictures are displayed.
There is a problem with this modification, that is, if the article images are not JPG format, they are displayed, but show the default Yan-pose picture
The solution is to delete the JPG image format judgment statement
Delete the following two sentences
var defjpeg = "{Dede:field name= ' templeturl '/}/images/jpg.jpg"; 83 Rows
if (picarr[i].indexof ("JPG") ==-1 && picarr[i].indexof ("jpg") ==-1) picarr[i] = defjpeg; 92 Rows
No matter what the format of the picture will be displayed
Dede Home slide show bug fix