-
Website
http://patchlog.com -
Original page
http://patchlog.com/php/xml-sitemaps-pligg-module-v09/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Michael Lankton
1 comment · 1 points
-
daddyjason
1 comment · 36 points
-
anraiki
1 comment · 1 points
-
Ross McKillop
1 comment · 5 points
-
Chris Thomson
1 comment · 2 points
-
-
Popular Threads
When I set up the plugin on link:
http://www.chevauxduweb.com/admin_config.php?pa...
I've on page only:
nothing found :(
Some Idea ?
On pligg 9.9... Thanks
For me don t work, i install the module, i insert the cod in htaccess, and when i run the sitemap i riceve this message:
...
http://www.pligg.ro/module.php?modul...ow_sitem...
2008-05-18T18:10:28+03:00
...
also make sure you delete the cache is you use it.
Google returned the following Warning message:
All the URLs in your Sitemap are set to the same priority (not the default priority). Priority indicates the importance of a particular URL relative to other URLs on your site, and doesn't impact your site's performance in search results. If all URLs have the same priority, Google can't tell which are more important.
Does anyone know how to correct this?
Any guidance will be appreciated!! :-)
This is the exact formula at xml_sitemaps_main.php line 154:
$v=(time()-$link->date)/60;
$pri=max(0.0001,(( $link->comments /$v ) * 30 + ( $link->votes * 10 / $v ) + ( 100 / max(100,time()-$link->modified) ) * 60 )/ 100 );
my idea was that the number of comments it got since it was created should account for 30% of the priority, the number of votes for 10% and the time when it was last updated ( commented, voted, modified ) for 60%
I guess this isn't perfect for all sites, so just change it till you get it right for your site.
I can definitely tinker with the formula you pointed out.
I am using the RSS Import module and it randomizes the votes. Everything else will probably be close to constant values. It worked perfectly for a long time until recently.
Maybe I should shift the weight of your formula toward the number of votes since the update or # of comments is typically constant.
Thank you for your guidance!
as you can see from the formula, the number of votes and comments are divided by the link age ( in minutes ) . So for really old links that were not updated recently, with few comments and few votes the priority is very likely to be under 0.0001
And the fact that you are using the RSS import module makes it worse because it assigns votes randomly but all at the same time. So the link is only updated once when it it posted but then not updated unless someone comments on it.
Also if you are caching the sitemap you will almost never have ( depending on how long you decide to cache it ) an updated sitemap right after a link was posted ( when it should have the highest priority because it was updated very recently, and has a lot of votes)
Do you suggest that I completele re-arrange the formula to ensure that it is divided by the # of votes? Also, what do you suggest in terms of an appropriate cache time?
I have cache set to one day for a site that also uses the RSS import module. I don't think less then a day would make much sense cause I doubt google or other search engines would try to download your sitemap more then once a day and even if they do they would not start fetching your new links so soon...but it's just a guess..I may be wrong...
Here is the warning I receive according to Google Sitemaps:
"All the URLs in your Sitemap are set to the same priority (not the default priority). Priority indicates the importance of a particular URL relative to other URLs on your site, and doesn't impact your site's performance in search results. If all URLs have the same priority, Google can't tell which are more important."
In result, if i divide by the # of votes, then i will have a better chance of receiving a unique priority. Is that correct? Am I overlooking something?
It looks like G now is very strict in using a sitemap. I haven't had no errors before, the erroors just appeared recently. Any idea to fix it. It is not actually errors but WARNINGS.
on line 154:
instead of $v=(time()-$link->date)/60;
use $v=(time()-$link->date)/3600;
you should clear the cache if you use it and resubmit the sitemap to google after this modification.
IF you still get warnings just increase the divisor ( 3600 ) until it's ok
I'm guessing that if you use a cache set for 1 day 3600 should be ok, if not you could go higher
http://patchlog.com/php/xml-sitemaps-pligg-modu...
If you want the number of votes to take a higher value in the priority you could
replace $link->votes * 10 with something like $link->votes * 35 and ( $link->comments /$v ) * 30 with ( $link->comments /$v ) * 5 . this makes votes account for 35% and comments for only 5%
You should also take a look at this :
http://patchlog.com/php/xml-sitemaps-pligg-modu...
Thx.
http://patchlog.com/php/wheres-the-xml-sitemap/
" Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. "
I have 6 sitemap sitemap-0.xml - sitemap-6.xml
This error only for sitemap-6.xml
Before I have other error and I fix it by you siad
" $v=(time()-$link->date)/60;
$pri=max(0.0001,(( $link->comments /$v ) * 30 + ( $link->votes * 10 / $v ) + ( 100 / max(100,time()-$link->modified) ) * 60 )/ 100 ); "
" on line 154:
instead of $v=(time()-$link->date)/60;
use $v=(time()-$link->date)/3600; "
and error disappear but yesturday I upgrade pligg to 9.5.5 so I see this new error (before I use 9.8.2)
79 Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. Help Help Parent tag:
Tag:
Value:
Found: url
priority
1.21323383742
Aug 8, 2008
Details 31 Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. Help Help
Parent tag:
Tag:
Value:
Found: url
priority
1.36334286505
Aug 8, 2008
Details 19 Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. Help Help
Parent tag:
Tag:
Value:
Found: url
priority
1.19110785838
Aug 8, 2008
Details 13 Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. Help Help
Parent tag:
Tag:
Value:
Found: url
priority
3.67763278809
Aug 8, 2008
Details 7 Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. Help Help
Parent tag:
Tag:
Value:
Found: url
priority
6.76048565121
Aug 8, 2008
"Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit. ”
http://www.getofftheinternet.net/sitemapindex.xml
How can I fix this? Thanks for any info.
use : $v=round((time()-$link->date)/3600,3);
instead of what you used before and let me know if you still have a problem
You should also read google help that says that a waring is just that ... it's not an error and it doesn't mean they will not process your sitemap if you have those warnings. The only problem is they don't know which is more important to you.
$v=round((time()-$link->date)/3600,3);some priority go high 2.0 or 3.0 like that and error agian
so now I change back to the original
$v=(time()-$link->date)/60;$pri=max(0.0001,(( $link->comments /$v ) * 5 + ( $link->votes * 35 / $v ) + ( 100 / max(100,time()-$link->modified) ) * 60 )/ 100 );
and no error now, the highest priority are around 0.4 or 0.5 in new story on sitemap but sometime I got warning "All the URLs in your Sitemap have the same priority. " in some sitemap again in sitemap-1.xml (I have 6 sitemap) but sometime no warings
sitemap-1 to sitemap-5 all priority same 0.0001 but only sitemap-6 (the latest) have 0.1 0.2 0.3 like that
I like you plugin because this is only one sitemap plugin for pligg no more out there so I love it but I don't like to always go to check in Webmaster Tools that my pligg sitemap will okay or not? Sometime ok sometime not. sometime priority go higher that 1.0 sometime all same 0.0001
I understand your formula a bit but it very hard for me or other people to understand and fix it, Can you make it easier.
I have some example very good sitemap plugin for wordpress
"XML Sitemap Generator for WordPress 3.1.0.1 "
Very easy to config and nothing to do after that, no error
I like the option that let people set priority (see picture below)
Can you make Xml Sitemaps pligg module has option like that, If you can do that I think no more problem about Google Webmaster Tools and priority issues again
Xml Sitemaps pligg module is the Best, Cheers
Thank
... who know how to set and priorities still stay between 0-1.0
Thank
http://www.santabarbara.net/sitemap-pages.xml
thank you for your help
like this one: http://www.santabarbara.net/sitemap-0.xml
You will have to send a sitemap index to google ( http://www.santabarbara.net/sitemapindex.xml ) . The sitemap index will contain links to all those sitemaps.
My other question is do we have to submit both the /sitempaindex.xml and sitemap-XXXX.xml?
When XML Sitemap Version 1.0 release?
I'm waitting for that, so many problem here everytime when I get warning in google webmaster tools, I feel google temporaly stop index my pligg site
I find fomula that suit my site but no one suit my site, some over (1+), some less (0.0001) and I dont know much about math or this formula so I just random change the number and variable to see sitemap are okay or not
Now I get my own formula and remove $time variable because $time is the main variable that make priority change
$v=(time()-$link->date)/60;
$pri=max(0.0001,(( $link->comments /20 ) * 38 + ( $link->votes * 2 / 2 ) + ( 100 / max(100,$link->modified) ) * 60 )/ 100 );
I dont know what the meaning of number i put in there,I just put and see sitemap okay or not?
I dont care which story submit first or submit later I only want the sitemap that work proprely with google webmaster tools and let google index faster and faster, no time to wait, no time to check sitemap first before index.
Ex. If new sitemap error, Google won't index a new story that have priority problem, Google will wait until prioty or sitemap okay.
This can't wait. In real world we can't wait , who can index faster is the winner
Before my pligg site get index after submit around 15-60 minute but now after oftenly have problem with sitemap I have to wait for about 5-12 hours so people(other pligg site) go indexd first and when people searching my story will drop lower that other site in SERPs
And the last I still want XML Sitemap Version 1.0 and still want features something like this (see picture below)
http://img223.imageshack.us/img223/795/image030...
replace those two lines with this one:
$pri=rand(1,1000)/1000;
Having an interface where you could have better control would be nice but I don't have the time to do that right now.
... So how about V1.0 features?
When version 1.0 release could you notify me by email (see email in comment)
And your new comment system look very nice!!
٩(-̮̮̃•̃)۶ ٩(̾●̮̮̃̾•̃̾)۶. .. Cheers: Xml Sitemaps v1.0 ٩(-̮̮̃•̃)۶ ٩(̾●̮̮̃̾•̃̾)۶.