给近三天(或当天)发布的文章显示红色日期或加上new字或new小图片等。 
				都是围绕pubdate做文章,写扩展的。 
				第2、3要注意的问题是:如:"<img src='new.gif' />中不能用双引号,否则不行。 
				如果要给当天的加,把 3600 * 24 * 3 改为 3600 * 24  即可。 
				1、==========红色的日期======== 
				 
				
					
						
							
								
									
										- 
											[field:pubdate runphp='yes']
 
										- 
											$a="<font color=red>".strftime('%m-%d',@me)."</font>";
 
										- 
											$b=strftime('%m-%d',@me);
 
										- 
											$ntime = time();
 
										- 
											$day3 = 3600 * 24 * 3;
 
										- 
											if(($ntime - @me) < $day3) @me = $a;
 
										- 
											else @me =$b;
 
										- 
											[/field:pubdate]
 
									 
								 
							 | 
						 
					
				 
				 
				 
				2、==========红色的(new)======== 
				 
				
					
						
							
								
									
										- 
											[field:pubdate runphp='yes']
 
										- 
											$aa=strftime('%m-%d',@me);
 
										- 
											$ntime = time();
 
										- 
											$tagtime = @me;
 
										- 
											$day3 = 3600 * 24 * 3;
 
										- 
											if($tagtime > $ntime-$day3) @me = "<font color='red'>(new)</font>";
 
										- 
											else @me = $aa;
 
										- 
											[/field:pubdate]
 
									 
								 
							 | 
						 
					
				 
				 
				 
				3、==========加new.gif小图片======== 
				 
				
					
						
							
								
									
										- 
											[field:pubdate runphp='yes']
 
										- 
											$aa=strftime('%m-%d',@me);
 
										- 
											$ntime = time();
 
										- 
											$tagtime = @me;
 
										- 
											$day3 = 3600 * 24 * 3;
 
										- 
											if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa;
 
										- 
											else @me = $aa;
 
										- 
											[/field:pubdate]
 
										- 
											 
 
									 
								 
							 | 
						 
					
				 
				-------------------------------------------------------------------------------- 
				 
				一种很酷的时间效果 
				
					
						
							
								
									
										- 
											[field:pubdate runphp="yes"]
 
										- 
											if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%H:%M",@me).'</FONT>';}
 
										- 
											else {@me=strftime("%m-%d",@me);}
 
										- 
											[/field:pubdate]
 
									 
								 
							 | 
						 
					
				 
				 
				 
				-------------------------------------------------------------------------------- 
				 
				DEDE seo小技巧加个百度搜索本篇文章 
				【<a href="javascript:" onclick='window.open("http://www.baidu.com/s?q1={dede:field name="title" /}&q2=&q3=&q4=&rn=10&lm=0&ct=1&ft=&q5=& amp;q6=你的网址")' target="_top" title="在百度搜索“{dede:field name="title" /}”相关内容"><font color=red>在百度搜索更多繁体字</font></a>】 
				 
				把你的网址改一下 
				或者 
				 
				【<a href="javascript:" onclick='window.open("http://www.baidu.com/baidu?word={dede:field name="title" /}")' target="_top" title="在百度搜索“{dede:field name="title" /}”相关内容"><font color=red>搜索舞步</font></a>】 
				 
				-------------------------------------------------------------------------------- 
				 
				
					
						- 
							调用tag: {dede:field name='keywords' runphp='yes' }
 
						- 
							if(!empty(@me)){
 
						- 
							$kws = explode(' ',@me);
 
						- 
							@me = "";
 
						- 
							foreach($kws as $k){
 
						- 
							@me .= "<a href='/tag.php?/$k/'>$k</a> ";
 
						- 
							}
 
						- 
							@me= str_replace('+', ' ',trim(@me));
 
						- 
							}
 
						- 
							 
 
					 
				 
			 |