phpwind提示“标签的长度请控制在3-15个字节之间”(v7.5sp3)

step 1、在require/postfunc.php找到

function check_tag($tags) {    
    $tags = array_unique(explode(" ",preg_replace('/\s+/is',' ',trim($tags))));    
    count($tags)>5 && Showmsg("tags_num_limit");    
    foreach ($tags as $key => $value) {    
        (strlen($value)>15 || strlen($value)<3) && Showmsg('tag_length_limit');    
    }    
    $tags = implode(" ",$tags);    
    return Char_cv($tags);    
}

上面加红的15和3自行修改

step 2、在require/postfunc.php找到

function setTags($tags) {    
     if (!$tags) {    
         return '';    
     }    
     $this->tags = array_unique(explode(" ",preg_replace('/\s+/is',' ',trim($tags))));    
     if (count($this->tags) > 5) {    
         return $this->post->showmsg("tags_num_limit");    
     }    
     foreach ($this->tags as $key => $value) {    
         if (strlen($value)>15 || strlen($value)<3) {    
             return $this->post->showmsg('tag_length_limit');    
         }    
     }    
     return implode(" ",$this->tags);    
 }

上面加红的15和3自行修改

step 3、修改提示信息:template/wind/lang_msg.php

'tag_length_limit'          => '标签的长度请控制在3-15个字节之间',
本文链接:https://www.moyan.net.cn/study/266.html
本文标题:phpwind提示“标签的长度请控制在3-15个字节之间”(v7.5sp3)
本文声明:如无特殊说明,您可以自由转载本文,但需标注转载自莫言斋(https://www.moyan.net.cn/)。本站部分文章信息来源于互联网及公开渠道,如侵犯到您的权益,请及时联系我们(94372#qq.com)处理!
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇