Results 1 to 9 of 9

Thread: About "lastmod" in sitemap .xml

  1. #1
    Join Date
    Jan 2007
    Posts
    17

    Default About "lastmod" in sitemap .xml

    I found that after we generate sitemap file, "lastmod" will track for "date" in idx_link table so it's the recode of the date listing added.

    So I just wonder that should it be "last_updated" instead or not?
    I try check in sitemap.php file and found that it's really call from "date" colum in "idx_link".

    I mean on line 455 of sitemap.php file should be:
    Code:
    "  <lastmod>$last_updated</lastmod>\n".
    or not?

    So the detail of date in sitemap file will be the latest date that each listing is edit or update not the date they are added.

    If this is really correct and "lastmod" in sitemap .xml file or "lastmod" in Google meaning is really be the date of listing or each page created, that's ok and please skip this thread.

  2. #2
    Join Date
    Nov 2007
    Posts
    227

    Default

    The line is correct in it's original form. It should be:

    Code:
    "  <lastmod>$last_mod</lastmod>\n".
    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  3. #3
    Join Date
    Jan 2007
    Posts
    17

    Default

    Hi Wayne,

    I'm not sure we understand the same point or not but let me explain what I mean.
    I already try download indexudx1.3 from client area again.
    I still found that sitemap.php file, line 455 is

    " <lastmod>$date</lastmod>\n".

    not

    " <lastmod>$last_mod</lastmod>\n".

    After I try generate sitemap via admin section then update sitemap via browser /sitemap.php, I found that Last Modify detail in sitemap.xml [.gz] take data from idx_link.date not idex_link.last_update.

    So all detail in Last Modify in .xml [.gz] file will be date that listing is added not last modify.


    If I do miss something or misunderstand anything, I do sorry and please advice me to clear about that.
    Or the reply you post above is just a note to tell me that, "Yes, it's incorrect, just change that line to......" thanks OK and thanks for your advice.

    My main point is, how I can make detail in .xml file recode last update date of each listing not the date they are added.

    so please confirm or explain me some more. ^^
    Last edited by misingshot; 02-23-2009 at 08:50 PM.

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If this is a bug please post it on the project tools. The $last_updated time should be the date/time when the listing was last updated by yourself (as admin) or by a user)

  5. #5
    Join Date
    Jan 2007
    Posts
    17

    Default

    Thanks Bruceper,

    But the point is I'm not sure is this a bug or it's correct as it should and I just misunderstand by myself, so i post here to ask for other user if they get the same like me ^^

    If you confirm that in sitemap .xml file have to record the date that listing is latest edit.
    May be you can test the sitemap.php file again and see.
    What I get right now is it record the date listing are added.

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It looks like it is a bug.

  7. #7
    Join Date
    Aug 2008
    Posts
    49

    Default

    that is not bug, the line of 455 on sitemap is $date not $last_mod, that is mean the date when sitemap was generated.

    The $last_mod is for link's last date.

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It shouldn't be $date though, because then the sitemap will always appear stale and old. It should use the date when the listing was last modified.

  9. #9
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by Bruceper View Post
    It shouldn't be $date though, because then the sitemap will always appear stale and old. It should use the date when the listing was last modified.
    Agreed
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. Replies: 5
    Last Post: 11-05-2007, 10:29 AM
  2. Replies: 9
    Last Post: 10-29-2007, 05:49 PM
  3. Replies: 1
    Last Post: 01-22-2007, 08:18 PM
  4. Put "-" instead of "," between subcategories names
    By Mickey in forum Blocks and Modification
    Replies: 2
    Last Post: 09-17-2006, 08:27 PM
  5. Replies: 1
    Last Post: 07-18-2002, 07:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •