 |
 |
 |
 |
 |
| Author |
Message |
RAMMSTEIN12

Joined: 06 May 2007 Posts: 29 Location: Greece |
|
Google Sitemap last 500 news |
|
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.
 |  | <?PHP
$template_active = <<<HTML
<url>
<loc>{link=home/post}</loc>
<priority>0.7</priority>
<changefreq>weekly</changefreq>
</url>
HTML;
?> |
2)sitemap.php
 |  | <?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.
|
|
| Mon May 07, 2007 9:32 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
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.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed May 09, 2007 5:26 pm |
|
 |
RAMMSTEIN12

Joined: 06 May 2007 Posts: 29 Location: Greece |
|
How i solve the problem |
|
 |  | 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/Micro-Sys.A1.Sitemap.Generator.v1.4.5.WinAll.zip
_________________ MAKE CUTENEWS BETTER
my cutenews site: www.Down66.com |
|
| Wed May 09, 2007 10:01 pm |
|
 |
webbber
Joined: 15 May 2008 Posts: 72
|
|
|
|
I cant get it working right cause of the xml headers
|
|
| Wed Jun 04, 2008 6:56 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
| Thu Jun 05, 2008 5:23 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|