Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #31  
Old 06-05-2008, 08:29 AM
hessebub Offline
forum loafer
 
Join Date: Nov 2007
Location: Bonn, Germany
Posts: 2
Question Sitemap with clean URLs?

Any chance to modify the script so that it lists the rewritten URLs I otherwise obtain from the "Rewrite URLs" AddOn?

Thus, modify this somehow?
PHP Code:
<url>
        <
loc>".$cfgrow['siteurl']."index.php?showimage=$id</loc>
        <
lastmod>$datetime</lastmod>
        </
url
And maybe use the tag from the Rewrite AddOn?

HTML Code:
<IMAGE_PERMALINK_CLEAR>
But how?
__________________
photos.traumdieb.com - Life thru my lens
Reply With Quote
  #32  
Old 10-22-2008, 04:18 PM
Dr.Ozdi's Avatar
Dr.Ozdi Offline
pp regular
 
Join Date: Mar 2007
Location: Czech republic, Europe
Posts: 47
Hi all,
Iīm using this very importen addon, but my xml feed still has errors with spaces...can anybody help me where are those spaces? Not in calendar addon.
Thanks
Dr.
http://drozdi-foti.prodam-chalupu.cz....php?z=sitemap
__________________
Dr.Ozdi
Dr.Ozdi takes a photos, photoblog
Reply With Quote
  #33  
Old 10-27-2008, 06:26 PM
Dr.Ozdi's Avatar
Dr.Ozdi Offline
pp regular
 
Join Date: Mar 2007
Location: Czech republic, Europe
Posts: 47
Well, I deleted everything looks like "space", all donīt using addons. My xml feed has only 2 empty rows less.... :-(

Is this part of code right or not?
Code:
";
Thanks
Dr.
__________________
Dr.Ozdi
Dr.Ozdi takes a photos, photoblog
Reply With Quote
  #34  
Old 12-03-2008, 01:09 PM
mckeephoto Offline
forum loafer
 
Join Date: Oct 2008
Location: Boston
Posts: 12
Help! Sitemap.xml not showing up..

I have installed Google Sitemap Creator and can find my sitemap at http://blog.mckeephotography.com/index.php?z=sitemap

However, to use the ping plugin, I was trying to get to http://blog.mckeephotography.com/sitemap.xml and it doesn't exist.

My pixelpost install is at the root level.

What am I doing wrong?
__________________
My Pixelpost sites:
http://blog.mckeephotography.com
http://brandedstorytelling.net
Reply With Quote
  #35  
Old 12-06-2008, 02:46 AM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Quote:
Originally Posted by mckeephoto View Post
I have installed Google Sitemap Creator and can find my sitemap at http://blog.mckeephotography.com/index.php?z=sitemap

However, to use the ping plugin, I was trying to get to http://blog.mckeephotography.com/sitemap.xml and it doesn't exist.

My pixelpost install is at the root level.

What am I doing wrong?

If you haven't created the .htaccess file as lazlo mentions above, then you won't be able to access the site map using /sitemap.xml

You will need to either use the address /index.php?z=sitemap or create the .htaccess file.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #36  
Old 12-23-2008, 12:29 PM
gheatza Offline
forum loafer
 
Join Date: Jun 2008
Posts: 9
Hello,

Thanks for your addon, it works perfectly for me. I modified it a bit, to integrate it with the SEO 1.7 addon ( http://www.pixelpost.org/extend/modi...-pixelpost-17/ ), so it's kind of perfect at the moment

You guys can check it at http://www.stargazer.eu/sitemap.xml .
The links look like this :

<loc>http://www.stargazer.eu/26/your-taste</loc>
<lastmod>2008-09-07</lastmod>
</url>

<url>
<loc>http://www.stargazer.eu/25/ephemeral</loc>
<lastmod>2008-08-29</lastmod>

Regards,
Cezar.
Reply With Quote
  #37  
Old 01-02-2009, 12:27 AM
bergonzzi's Avatar
bergonzzi Offline
forum loafer
 
Join Date: Jan 2009
Location: Lisbon
Posts: 1
Hey there all,

Just like hessebub was asking I was also looking to generate a sitemap with clean URLs and I managed to modify the script to make it work. I'm also using the paged_archive addon with the mod_rewrite option ON. Here's the modified script:

PHP Code:
    $query mysql_query("SELECT id,datetime,headline FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc ");

    while(list(
$id,$datetime,$headline) = mysql_fetch_row($query))
    {
        
$image_title pullout($headline);
        
$seo_title '/'.converturl($image_title);
        
$datetime strtotime($datetime);
        
$datetime =date("Y-m-d",$datetime);
        
$output .= "
        <url>
        <loc>"
.$cfgrow['siteurl']."$id$seo_title</loc>
        <lastmod>$datetime</lastmod>
        </url>
        "
;
    }
     
$output .= "<url>
        <loc>"
.$cfgrow['siteurl']."about/</loc>
        </url>    
    </urlset>"
;
    
header("Content-type:application/xml");
    echo 
$mapheader.$output;
    exit;

So basically you ad the title field to the query (headline), add it to the while cycle as well ($headline) and then convert it to SEO friendly using the same functions used in paged_archive addon:
$image_title = pullout($headline);
$seo_title = '/'.converturl($image_title);
Finally, modify the generated output to make it clean:
<loc>".$cfgrow['siteurl']."$id$seo_title</loc>
You see it working o my blog: http://www.bergspot.com/sitemap.xml
__________________
My photoblog: http://www.bergspot.com/
Reply With Quote
  #38  
Old 04-10-2009, 11:26 AM
sepp Offline
forum loafer
 
Join Date: May 2006
Posts: 9
Thank you bergonzzi this is working fine. Also thanks to se.nsuo.us for this great addon.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:39 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs