Welcome
We've been working hard

DeDeCMS dream list page articles without thumbnails automatically hide default thumbnails

The dream weaving template list page displays thumbnails and article titles by default, but some articles do not have thumbnails, so the built-in default thumbnails are displayed
When there is no thumbnail, we can automatically hide it so that it does not appear. Let's see the code below.
The default code for thumbnails on the official list page is
 [field:array runphp='yes']@me = (empty(@me['litpic']) ?  "" : "<a href=' http://www.henenseo.com/ {@me['arcurl']}' class='preview'> <img src=' https://www.hensenseo.com/ {@me['litpic']}'/></a>"); [/field:array]

 

Modify the above code to:

 [field:array runphp='yes']@me = (strpos(@me['litpic'],'defaultpic') ?  "" : "<a href=' https://www. Your domain name. com/{@ me ['arcurl ']}' class='preview '> <img src=' https://www. Your domain name is. com/{@ me ['litpic ']}'/></a>"); [/field: array]

 

Like( zero ) Reward
Do not reprint without permission: New Start Blog » DeDeCMS dream list page articles without thumbnails automatically hide default thumbnails


Follow the public account "New Start Software Steward"

Get the latest network resources and cracking software!
Play with all kinds of software

comment Grab the sofa

You must log in before commenting!

 

Reward the author of the article if you think it is useful

Thank you very much for your reward, we will continue to give more high-quality content, let's create a better online world together!

Scan Alipay and reward

Scan WeChat and reward