Unpublished k2 items showing up in xmap sitemap
4 posts
• Page 1 of 1
Unpublished k2 items showing up in xmap sitemap
Hello... Thank you for the FANTASTIC COMPONENT... I Have been using it for years... Anyway...
I am using xmap with the k2 xmap plugin for joomla 2.5 (which is where my problem lies I believe)... Xmap is showing all of my k2 items.... even though they are not all published... I am wondering how I can prevent unpublished k2 items from showing up in my sitemap?
Thanks in advance for helping!

I am using xmap with the k2 xmap plugin for joomla 2.5 (which is where my problem lies I believe)... Xmap is showing all of my k2 items.... even though they are not all published... I am wondering how I can prevent unpublished k2 items from showing up in my sitemap?
Thanks in advance for helping!
- DigitalMediaGuy
- Fresh Boarder

- Posts: 7
- Joined: Tue Sep 08, 2009 11:00 pm
Re: Unpublished k2 items showing up in xmap sitemap
Ideally it would be a setting I could add to the plugin it's self... But i'll take anything.... 
By the way... I know that you are not responsible for the k2 plugin for xmap... But it looks like the developer has stopped his updates :-/
I would take a hack... or anything that someone can think of?... Again... Just trying to stop unpublished k2 items from showing up in the xmap sitemap!
Thanks again
By the way... I know that you are not responsible for the k2 plugin for xmap... But it looks like the developer has stopped his updates :-/
I would take a hack... or anything that someone can think of?... Again... Just trying to stop unpublished k2 items from showing up in the xmap sitemap!
Thanks again
- DigitalMediaGuy
- Fresh Boarder

- Posts: 7
- Joined: Tue Sep 08, 2009 11:00 pm
Re: Unpublished k2 items showing up in xmap sitemap
Here is a pastebin of the code from the plugin:
http://pastebin.com/tYcd7Fby
I can see that they have a query a few places that does something with the current time... but I am not really sure what it does or how to modify it so that it won't display published items... I am thinking that something with k2 has changed so that this time calculation is incorrect?
I tried one thing... Which was to change the zeroed code from 0000-00-00 ---> 0000-00-00 00:00:00 but it didn't help :-/
Thanks again for helping!
http://pastebin.com/tYcd7Fby
I can see that they have a query a few places that does something with the current time... but I am not really sure what it does or how to modify it so that it won't display published items... I am thinking that something with k2 has changed so that this time calculation is incorrect?
- Code: Select all
$baseQuery = "select id,title,alias,UNIX_TIMESTAMP(created) as created, UNIX_TIMESTAMP(modified) as modified, metakey from #__k2_items where "
."published = 1 and trash = 0 and (publish_down = \"0000-00-00\" OR publish_down > NOW()) and "
."access in (".self::$maxAccess.") and ";
I tried one thing... Which was to change the zeroed code from 0000-00-00 ---> 0000-00-00 00:00:00 but it didn't help :-/
Thanks again for helping!
- DigitalMediaGuy
- Fresh Boarder

- Posts: 7
- Joined: Tue Sep 08, 2009 11:00 pm
Re: Unpublished k2 items showing up in xmap sitemap
Anybody home? 
- DigitalMediaGuy
- Fresh Boarder

- Posts: 7
- Joined: Tue Sep 08, 2009 11:00 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest