| 
			    | 
			  
			
    
        
            Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username. 
             | 
         
    
 
 
 |  
   Home > FlexCMS Support Forum > User Help > General Support Requests > Update on web site 
  
 FlexCMS Support Forum 
   
							
				
				 
    		Update on web site  Started December 7, 2005 @ 4:25pm by andynotton
   | 
			Post Message  | 
			 
 
						
				 | 
				 | 
				| Update on web site  | December 7, 2005 @ 4:25pm |  is it possible to add a block with the site was last updated on or something like that automativly so we don't have to change it every day or time we change things
  Andy Notton   |  
  | 
												
				 
						
				 | 
				 | 
				 | 
								
				 
  |  
  |  
  |   |  
						
				DCSun Administrator
 
  
  Posts: 625 |  
  | 
				 | 
				 | December 7, 2005 @ 10:35pm |  Andy,
  FlexCMS doesn't currently track the date and time pages or blocks were created or last edited.
  One option would be to display the last time you (or any of the administrators, if there's more than one) logged in, as that would give some indication of the last round of updates.  I can give you a few lines of code to display that if you would like.
 
  David
  
   FlexCMS v3.2 Has Been Released! |  
  | 
												
				 
						
				 | 
				 | 
				 | 
								
				 
  |  
  |  
  |   |  
						
				 | 
				 | 
				| Update on web site  | December 8, 2005 @ 3:10am |  yes if you give me few lines of code  i will see what i can do 
  thanks 
  Andy Notton   |  
  | 
												
				 
						
				 | 
				 | 
				 | 
								
				 
  |  
  |  
  |   |  
						
				DCSun Administrator
 
  
  Posts: 625 |  
  | 
				 | 
				 | December 8, 2005 @ 9:14am |  Andy,
  This should do the trick:
  
 Code
  $query = "select LastAction from `".$Settings['DBPrefix']."core-Users` where RecordNumber='1' limit 1"; $result = mysql_query($query); $row = mysql_fetch_array($result);
  print 'Last Updated<br>' . date("M jS, Y @ g:ia", $row['LastAction']); |  
  |  
 
  That will display something like this:
  
 Quote
  Last Updated Dec 7th, 2005 @ 10:50am |  
  |  
 
  David
  
   FlexCMS v3.2 Has Been Released! |  
  | 
												
				 
						
				 | 
				 | 
				 | 
								
				 
  |  
  |  
  |  
  
 
 
 
 
   
	  		 |  
  | 
	  		  | MEMBERS  
  |  
  
  |  
  |