Google Sitemap last 500 news

Download plugins, language packs and stuff.

Google Sitemap last 500 news

Postby RAMMSTEIN12 » Mon May 07, 2007 9:32 am

Note: This is not a 100% working code but is the first stage to have a google sitemap for your site.



To make a google sitemap fore your last 500 news.



1)make a template.

Code: Select all
<?PHP

$template_active = <<<HTML

<url>

<loc>{link=home/post}</loc>

<priority>0.7</priority>

<changefreq>weekly</changefreq>

</url>

HTML;

?>






2)sitemap.php

Code: Select all
<?php

include_once 'head.php';

add_filter('news-allow-commentform', 'comment_form');



function comment_form(){return false;}



header('Content-type: text/xml');

echo '<?xml version="1.0" encoding="UTF-8"?>';?>

<urlset>

<?

$number = 500;

$template = 'map';

include $cutepath.'/show_news.php';

?>

</urlset>




Run sitemap.php and you will see your news sitemap.
User avatar
RAMMSTEIN12
 
Posts: 29
Joined: Sun May 06, 2007 6:59 pm
Location: Greece

Postby scottdallas » Wed May 09, 2007 5:26 pm

Are you using this in your site? It sounds very good, I'm interested in your results with it. If this works well this is something that should definitely be developed further. I read your other post about why a sitemap would be so good and you're right. Half my traffic is from google as it is.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

How i solve the problem

Postby RAMMSTEIN12 » Wed May 09, 2007 10:01 pm

scottdallas wrote:Are you using this in your site? It sounds very good, I'm interested in your results with it. If this works well this is something that should definitely be developed further. I read your other post about why a sitemap would be so good and you're right. Half my traffic is from google as it is.






Hi I will tell you how I solved my problem with Google sitemap.



I am using 2 sitemaps.

1) The sitemap that shows the 500 latest news.

2)The sitemap that I have generated with this Micro-Sys A1 Sitemap Generator.v1.4.5 program and I update I this sitemap every month.



With this I achieve that all my links are included in Google search and other search sites.



Download Program Link:

http://rapidshare.com/files/30426481/Mi ... WinAll.zip
MAKE CUTENEWS BETTER



my cutenews site: http://www.Down66.com
User avatar
RAMMSTEIN12
 
Posts: 29
Joined: Sun May 06, 2007 6:59 pm
Location: Greece

Postby webbber » Wed Jun 04, 2008 6:56 pm

I cant get it working right cause of the xml headers
webbber
 
Posts: 155
Joined: Thu May 15, 2008 1:13 am

Postby scottdallas » Thu Jun 05, 2008 5:23 am

This sounds very cool.. So it's template driven and Google knows how to read the page with the corresponding xml webpage URL?

Can you provide a link other than http://rapidshare.com/files/30426481/Mi ... WinAll.zip cause I hate rapidshare?

And what does this micro-sys-a1-sitemap.generator.v14.5.zip do? I'm confused about it's relevancy. Can I read about this online somewhere?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US


Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron