Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dede5.7 free list can not get multiple keywords how to solve

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces dede5.7 free list can not get multiple keywords how to solve, with a certain reference value, friends can refer to the need. I hope you all have a lot of success after reading this article. Let's take a look at it together.

Dede5.7 Free lists can't get multiple keywords?

Let's first take a look at DEDE 5.7 's interface for adding free lists.

In the figure we can see, under normal circumstances DEDE official written can use multiple keywords: Keyword 1, Keyword 2, Keyword 3......, but do not know is the official error or other reasons, after adding multiple keywords, and no effect, but can not retrieve any content, we according to everyone's reflection of the problem, for everyone to sort out a complete solution to this problem.

File involved: Replace include\arc.freelist.class.php

We can see that the code involved is shown in the figure above.

Let's hide two codes first!

Let's write a related sentence ourselves:

$orwhere .= "AND (".$ this->GetKeywordSql($keyword). " )";

Finally, we find the location below and add our own relevant search conditions and rules.

function GetKeywordSql($keyword) { $ks = explode(',',$keyword); $kwsql = ''; $kwsqls = array(); foreach($ks as $k) { $k = trim($k); if(strlen($k)0x80 && strlen($k)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report