随机颜色随机大小tags的修改方法-DedeCms

打开:inc_channel_unit_functions.php找到函数:function GetHotKeywords(…)替换为://zouql-hotwords-b://用法举例://调用热门tags{dede:hotwords num=’30’ subday=’30’ istag=’yes’ /}//热门搜索{dede:hotwords num=’30’ subday=’30’ istag=’no’ /}function GetHotKeywords($dsql,$num=8,$nday=365,$klen=16,$orderby=’count’,$istag=’no’){global $cfg_phpurl;$nowtime = mytime();$num = ereg_replace("[^0-9]","",$num);$nday = ereg_replace("[^0-9]","",$nday);$klen = ereg_replace("[^0-9]","",$klen);if(empty($nday)) $nday = 365;if(empty($num)) $num = 6;if(empty($klen)) $klen = 16;if(empty($istag)) $istag = ‘no’;$klen = $klen+1;$mintime = $nowtime – ($nday * 24 * 3600);if(empty($orderby)) $orderby = ‘count’;if($istag==’no’){$dsql->SetQuery("Select keyword From

//zouql-rcolorfunction rcolor() {srand((double)microtime()*10000000);$rand = (rand(15,235));return sprintf("%02X","$rand");}function rand_color() {$return = ‘color:#’.rcolor().rcolor().rcolor(); return $return;}//zouql-rcolor

—————————————————-打开:inc_arcpart_view.php找到GetHotKeywords($this->dsql,$ctag->GetAtt(‘num’),$ctag->GetAtt(‘subday’),$ctag->GetAtt(‘maxlength’),$ctag->GetAtt(‘orderby’)));改为GetHotKeywords($this->dsql,$ctag->GetAtt(‘num’),$ctag->GetAtt(‘subday’),$ctag->GetAtt(‘maxlength’),$ctag->GetAtt(‘orderby’),$ctag->GetAtt(‘istag’)));

正确的寒暄必须在短短一句话中明显地表露出你对他的关怀。

随机颜色随机大小tags的修改方法-DedeCms

相关文章:

你感兴趣的文章:

标签云: