-
Open IDE tools, such as VScode or Sublime. -
Use "When there is no thumbnail" as the keyword to search the entire project, and you can find two files with three codes. -
Open the searched code location and modify it in the following code section: //When there is no thumbnail, automatically extract the first image of the article as a thumbnail if (! ico && preg_match('/<img\s+.*? src=\s? [\'|\"](.*?(\.gif|\.jpg|\.png|\.jpeg))[\'|\"].*? [\/]?>/ i', decode_string(content), srcs) && isset(srcs[1])) { $ico = $srcs[1]; } -
Comment out the three lines of code beginning with if in the above code, that is, add a double slash (//) at the beginning of the three lines. -
After all three comments are made, save the modified file. -
In this way, the function of PbootCms to automatically extract pictures from articles as thumbnails is successfully disabled.