search
HomeCMS TutorialEmpire CMSHow to implement tag tag Chinese url in Empire Cms

The following tutorial column from Empire cms secondary development will introduce to you the method of Imperial cms to improve the opening speed of website pages. I hope it will be helpful to friends in need!

How to implement tag tag Chinese url in Empire Cms

tag displays the Chinese path, modify the file /e/class/t_functions.php file:

This paragraph:

$str.=$jg.&#39;& lt;a href="&#39;.$public_r[newsurl].&#39;e/tags/?tagid=&#39;.$r[tagid].$cs.&#39;" target="_blank">&#39;.$font1.$r[tagname].$snum.$font2.&#39;</a>&#39;.$br;

Modify to :

$str.=$jg.&#39;<a href="&#39;.$public_r[newsurl].&#39;e/tags/?tagname=&#39;.$r[tagname].$cs.&#39;" target="_blank">&#39;.$font1.$r[tagname].$snum.$font2.&#39;</a>&#39;.$br;

Test after modification

This call [showtags]'',0,0,'',0,s,'',1,''[/showtags] (Calling all tags)

What is displayed is the normal Chinese address?tagname=Baidu Optimization

And the content page call [showtags]'selfinfo ','',0,'','','','',0,''[/showtags]

shows other codes ?tagname=ͼƬ

Why not display Chinese directly? I want the content page to also display this kind of address? tagname=Baidu optimization

Modify t_functions.php

##$str.=$jg.'< ;a href="'.$public_r[newsurl].'e/tags/?tagname='.urlencode($r[$i]).$cs.'" target="_blank">'.$r[ $i].''.$br;

is changed to:

$str.=$jg.''.$r[$i].' a>'.$br;

Hope the above method can help you solve the problem of cultural url in tag tag.

For more Empire cms technical articles, please visit the

Empire cms tutorial column!

The above is the detailed content of How to implement tag tag Chinese url in Empire Cms. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:cnblogs. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor