The Arcive of vBulletin Modifications Site. | 
    |
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Is there any way to use the php date function to print out the current year in a template? 
		
		
		
		
		
		
		
		
	
	I would like to always show what the current year is in a template (footer) on my board and am wondering the best way to do this. Thank you!  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			This is cheating a bit, but it works. Use this code in the footer template: 
		
		
		
		
		
		
		
		
	
	Code: 
	<vb:if condition="$now = TIMENOW"></vb:if>
The year is {vb:date $now, "Y"}<br />
 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Kevin, thank you so much. 
		
		
		
		
		
		
		
		
	
	You're always so willing to help out -- really do appreciate it!  
		 | 
![]()  | 
	
	
		
  | 
	
		
  | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
						
  | 
				|
  More Information | 
				|
| 
						 Template Usage: 
						
 Phrase Groups Available: 
						
  | 
					
						 Included Files: 
						
 Hooks Called: 
						
  |