Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Dec 2016, 19:06
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Question Sitemap Syntax Help Please

Currently the sitemap pulls "updated dates" for the CMS from the cms_node field.

I'd like to remove the current line from the sitemap:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it with code that forces the <lastmod> date to be the CURRENT Date (as of the moment of sitemap generation)

Would this one work?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Could someone help me out with the correct syntax please??
Reply With Quote
  #2  
Old 10 Dec 2016, 19:22
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
http://php.net/manual/en/function.gmdate.php
Originally Posted by PHP.net
timestamp
The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. In other words, it defaults to the value of time().
So if the second parameter is left out, it will default to the current time. Simply use this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 10 Dec 2016, 19:25
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Originally Posted by Dave View Post
http://php.net/manual/en/function.gmdate.php


So if the second parameter is left out, it will default to the current time. Simply use this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thank you Sir!

Any idea what I should change this one to?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

would it be this???


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #4  
Old 10 Dec 2016, 19:37
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Exactly.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 10 Dec 2016, 19:43
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Originally Posted by Dave View Post
Exactly.
Thank you again Dave, you Rock!
Reply With Quote
  #6  
Old 11 Dec 2016, 13:32
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Dave definitely rocks.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:48.

Layout Options | Width: Wide Color: