Viernes, 29 Agosto 2014 05:33
beggarly

Unpublished k2 items showing up in xmap sitemap

Suggest/Comment/Post new extensions for Xmap!

Unpublished k2 items showing up in xmap sitemap

Postby DigitalMediaGuy » Fri Nov 30, 2012 11:13 pm

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!

:)
DigitalMediaGuy
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Tue Sep 08, 2009 11:00 pm

Re: Unpublished k2 items showing up in xmap sitemap

Postby DigitalMediaGuy » Sat Dec 01, 2012 10:19 pm

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
DigitalMediaGuy
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Tue Sep 08, 2009 11:00 pm

Re: Unpublished k2 items showing up in xmap sitemap

Postby DigitalMediaGuy » Mon Dec 03, 2012 4:25 pm

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?

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
Fresh Boarder
 
Posts: 7
Joined: Tue Sep 08, 2009 11:00 pm

Re: Unpublished k2 items showing up in xmap sitemap

Postby DigitalMediaGuy » Sun Dec 09, 2012 9:41 pm

Anybody home? :roll:
DigitalMediaGuy
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: Tue Sep 08, 2009 11:00 pm


Return to Plugins



Who is online

Users browsing this forum: No registered users and 3 guests