Results 1 to 10 of 10

Deleted Posts In Sitemap...

This is a discussion on Deleted Posts In Sitemap... within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I've noticed that there are posts which have been soft deleted that are showing up in our sitemap... These posts ...

  1. #1
    Junior Member
    Real Name
    David
    Join Date
    Aug 2006
    Posts
    9
    Liked
    0 times

    Deleted Posts In Sitemap...

    I've noticed that there are posts which have been soft deleted that are showing up in our sitemap... These posts are in public forums and in open threads...

    I did a search on the forums, but was unable to turn anything up, does anyone have any ideas?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Try to modify vbseo_sitemap_functions.php file:
    FIND:
    PHP Code:
                $getthreads $db->query("
                    SELECT *
                    FROM " 
    TABLE_PREFIX "thread AS thread 
    ADD BELOW:
    PHP Code:
                    LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid thread.threadid AND type 'thread'
    FIND:
    PHP Code:
                    WHERE forumid $forumid
                        
    AND visible 
    ADD BELOW:
    PHP Code:
                        AND deletionlog.primaryid IS NULL 

  3. #3
    Junior Member
    Real Name
    David
    Join Date
    Aug 2006
    Posts
    9
    Liked
    0 times
    I now have this (starting at line 253):
    PHP Code:
                $getthreads $db->query("
                    SELECT *
                    FROM " 
    TABLE_PREFIX "thread AS thread
                    LEFT JOIN " 
    TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = thread.threadid AND type = 'thread')  
                    WHERE forumid = 
    $forumid
                        AND visible = 1
                        AND deletionlog.primaryid IS NULL
                    LIMIT "
    .intval($vbseo_progress['step3']).",".$st['cnt']."
                "
    ); 
    However, It does not seam to have helped. I can still find soft deleted posts in my site maps...

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Did you regenerate sitemap?

  5. #5
    Junior Member
    Real Name
    David
    Join Date
    Aug 2006
    Posts
    9
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Did you regenerate sitemap?
    Yes, I even tried deleting the old sitemap & then regenerating...

  6. #6
    Ky!
    Ky! is offline
    Senior Member Ky!'s Avatar
    Real Name
    KK
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    161
    Liked
    0 times
    The same for me!

    The easieast way would be to delete them, but how?

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Do you mean showpost URLs (not showthread)? Please also find this in vbseo_sitemap_functions.php file:
    PHP Code:
    WHERE p.threadid $threadrow[threadid
    add below:
    PHP Code:
    AND visible 

  8. #8
    Junior Member
    Real Name
    David
    Join Date
    Aug 2006
    Posts
    9
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Do you mean showpost URLs (not showthread)? Please also find this in vbseo_sitemap_functions.php file:
    PHP Code:
    WHERE p.threadid $threadrow[threadid
    add below:
    PHP Code:
    AND visible 
    That appears to have worked!

    Thank you!

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Great!

  10. #10
    Ky!
    Ky! is offline
    Senior Member Ky!'s Avatar
    Real Name
    KK
    Join Date
    Nov 2007
    Location
    Germany
    Posts
    161
    Liked
    0 times
    I did it.

    Thank you for your help.

Similar Threads

  1. vbseo sitemap: should I index posts?
    By archimedes in forum General Discussion
    Replies: 6
    Last Post: 11-06-2010, 01:02 AM
  2. Is there a disadvantage with including posts in sitemap?
    By zatzy in forum General Discussion
    Replies: 1
    Last Post: 05-23-2008, 10:26 AM
  3. Single Posts in sitemap or not? etc
    By vissa in forum General Discussion
    Replies: 1
    Last Post: 02-09-2006, 06:49 PM
  4. Deleted Posts
    By Blaminator in forum Bug Reporting
    Replies: 11
    Last Post: 10-12-2005, 10:49 AM

Posting Permissions

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