how we can generate sitemap urls for blogs and cms ?
how we can generate sitemap urls for blogs and cms ?
sitemap 2.6 Beta 2
support blogs and cms can you take a look ?
OK - we will take a look. We have right now some more things because of employee looking. Our team will grow soon (probably in last week of this month). Because of that we will take care about this integration issue not immediatelly - hope that it is ok for you It is, already on TODO list
Hey vbet i created a shell script and i'm running 100% on my box
you just need remove what languages you don't want and change under-linux.org to your website address. in this case i'm running in my forum root.Code:#!/bin/bash for i in af sq ar be bg ca zh-CN hr cs da nl en pl pt et tl fi fr gl de el iw hi hu is id ga it ja ko lv lt mk ms mt no fa ro ru sr sk sl es sw sv zh-TW th tr uk vi cy yi do zcat sitemap_index.xml.gz |sed "s/<loc>http:\/\/under-linux.org\/sitemap/<loc>http:\/\/under-linux.org\/sitemap$i/" > sitemap"$i"_index.xml dos2unix sitemap"$i"_index.xml gzip -f sitemap"$i"_index.xml count=1 for k in `ls -la sitemap_*.xml.gz | grep -v index | awk {'print $8'}` do zcat sitemap_"$count".xml.gz | sed "s/<loc>http:\/\/under-linux.org\//<loc>http:\/\/under-linux.org\/$i\//" > sitemap"$i"_"$count".xml dos2unix sitemap"$i"_"$count".xml gzip -f sitemap"$i"_"$count".xml count=`expr $count + 1` done done
This will make the process faster and will not use generate php memory issues
save this script at vbseo_sitemap/data directory as convert.sh
chmod +x convert.sh
to run use
./convert.sh
and than you will be able to use sitemaplanguage_index.xml.gz as your sitemap change "language" for en, es or another language
let me know if you need any other explanation.
Also you need add this script on system crontab after the time vbseo sitemap crontab runs.
Thanks,
Code:if($vboptions['vbseo_sm_freq_tsmart']) { $dpassed = (time() - $threadrow['lastpost'])/86400; if($dpassed<3)$freq = 'daily'; else if($dpassed<10)$freq = 'weekly'; else if($dpassed<100)$freq = 'monthly'; else $freq = 'yearly'; }else $freq = $vboptions['vbseo_sm_freq_t']; vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior"); //additional code $alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','el','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','vi','cy','yi'); if(!$archived) { $strlenhost = strlen($vbseo_vars['bburl']."/"); $currentthreadurl = vbseo_url_thread($threadrow, $p, $archived); $currentthreadurl_before = substr($currentthreadurl,0,$strlenhost); $currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost); $lastpost =& $threadrow['lastpost']; $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls($alanguages); foreach($alanguages as $language) { vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq); } } //end additional code for($p=1; $p<=$totalpages; $p++) { $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls( vbseo_url_thread($threadrow, $p, $archived), vbseo_url_thread($threadrow, $p, $archived, true), $prior, $threadrow['lastpost'], $freq ); } if($showpost) { ...
Last edited by wowglider.de; 19-06-10 at 14:32.
Please note that in readme.html there is no Sitemap Generator description included. Integration instructions for Sitemap Generator are here: http://www.vbenterprisetranslator.co...tegration.html
As I see you have code described there but you have it wrong. Please undo those changes and copy our code first. Then check is it working. And after that if you want do optional modification described at the end of first post. And please make sure you do it right. Now it is wrong. According to optional modification step - you have to put our code in other place (before described line) and after that do small modification. Now you just changed one of our code line not as it was described.
Also - if Google cannot retrieve your sitemaps at all then make sure that you have appropriately set your .htaccess file. Please check integration instructions again - sitemap rule must be placed before vBET rules. If you are not sure about it - please just post here whole your .htaccess file and we will verify it
Please note that I do not know what do you mean by your last comment from last post here. Please describe it more if it is relevant
PS.
After we solve your issues this thread will be merged with Sitemap Generator integration thread. It stays here now only to make you easier to find it in place where you expect it, but we already have thread for Sitemap Generator integration issues.