Dreamweaver dedecms TAG tag cannot find and implement color tag method
TAG page cannot find the solution to the problem of tags When we click on a tag on the tags.php page, sometimes it will prompt: "The system does not have this tag, it may have been removed!"
But we check the background of the program and the page displayed in the foreground. This label does exist, what if this problem is solved?Solution:
There is a tags.php file in the root directory of the Dedecms program
Open this file:
Find $tag = FilterSearch(urldecode($tag));
Change to $tag = urldecode($tag); to solve this problem.dedeTAG color label production method:
1. Add the following function to /include/common.func.php
function getTagStyle() { $minFontSize=8; //最小字体大小,可根据需要自行更改 $maxFontSize=18; //最大字体大小,可根据需要自行更改 return 'font-size:'.($minFontSize+lcg_value()*(abs($maxFontSize-$minFontSize))).'px; color:#'.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255)); }
2 .Use the following code in the template to call the tag
{dede:tag row='45' getall='1' sort='hot'} <a href='[field:link/]' title="[field:tag /]([field:total /])" style="[field:total runphp=yes]@me=getTa gStyle();[/field:total]">[field:tag /]</a> {/dede:tag}
The above is the detailed content of Dreamweaver dedecms TAG tag cannot find and implement color tag method. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

Atom editor mac version download
The most popular open source editor