PDA

View Full Version : Sitemap Generator integration



vBET
14-11-09, 14:46
You can simply integrate vBET with vBSEO Sitemap Generator (http://www.vbulletin.org/forum/showthread.php?t=206169) (it is free) to include links to translated pages into generated sitemap.


Please note that instructions below will allow you to add into your sitemap links for threads translated pages. Because of performance reason those links will not be translated - there will be only added language code. Google will find real page anyway since you will get 301 redirect. Please note that it is not best approach - Google prefers to have final links in sitemap not redirecting one, but forcing translation of thousands links in all languages in the same time could kill your server or be threated by Google as attack (if links are not cached yet).

If you have any PHP programming skills you can modify instructions below to support also other parts of sitemap - not only threads URLs. Solution below will add translated links only for first pages of threads.

Integration instructions:
You just have to edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.

Find:


vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");

And place AFTER it...

For SEO links


//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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, 1, $archived);
$currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
$currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
$vbseo_stat['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.

For links with language= (do NOT use booth - only appropriate for your links type)


//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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) {
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived) . '&language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.


********************************************************************************
OPTIONAL:
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added in other place - BEFORE:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(


Also in this additional code you have to change "1" to "$p".

tavenger5
17-12-09, 16:33
Is there any way I can exclude translated member pages in the sitemaps?

StarBuG
20-12-09, 07:50
Hi

I noticed that translated forum pages in the sitemap are listed with the seo language code (/en/) in the url but the native language url title.
However if you visit the page the url is translated as well.

Example:

Sitemap URL:
http://www.patientenfragen.net/en/vorstellungen/alle-neuen-herzlich-willkommen-t1810.html
(url is completly german)

If visited the url gets translated:
http://www.patientenfragen.net/en/vorstellungen/to-all-the-new-welcome-t1810.html

If your sitemap shows not translated urls will the urls not be listed in german too at google even if the page is translated to english?

That could confuse searching users at google, don't you think?

And another question....

why is it that subforums are not translated in the url as well?

Example:

Current URL
http://www.patientenfragen.net/en/vorstellungen/ (german)

Translated URL
http://www.patientenfragen.net/en/introductions/ (currently this does not happen)

why is that?

StarBuG

vBET
20-12-09, 18:04
At this moment we provide very simple integration with sitemap generator. And be calm - Google will not index wrong URLs - there is 301 redirect so Google will index final page which has good URL. We are aware that it would be best to provide already translated URLs in sitemap, but it could be very resource consuming. So at this moment if you want to integrate this is the way and in the future we can work on this issue.

About categories translation:
http://www.vbenterprisetranslator.com/forum/feature-requests/62-translation-categorie-name-urls.html

vBET
08-04-10, 14:11
Integration code was optimized again - please see first post for optimized integration code

Taurus
07-05-10, 05:11
I am a noob when it comes to codes and stuff, so please forgive my questions here.

In my vbseo_sitemap_functions.php I find <?php three times, so should I then add that code after all three instances?

Also should I add the SEO links code + the links with language code after the "vbseo_log_entry" code. In other words, should they both be in there?

Thanks for the help!!

vBET
07-05-10, 10:26
I am a noob when it comes to codes and stuff, so please forgive my questions here.

In my vbseo_sitemap_functions.php I find <?php three times, so should I then add that code after all three instances?

Also should I add the SEO links code + the links with language code after the "vbseo_log_entry" code. In other words, should they both be in there?

Thanks for the help!!

There is nothing to apologize for - we are here for you :)

Please add out code after first <?php - I jut updated instruction so it will be clear in the future :)

No - put only one block of code for links which you are using. You cannot use booth kinds of links so you only apply for one block of code (each is described for which kind of links it is).

mario06
08-06-10, 16:26
You can simply integrate vBET with vBSEO Sitemap Generator (http://www.vbulletin.org/forum/showthread.php?t=206169) (it is free) to include links to translated pages into generated sitemap.

Please note that instructions below will allow you to add into your sitemap links for threads translated pages. Because of performance reason those links will not be translated - there will be only added language code. Google will find real page anyway since you will get 301 redirect. Please note that it is not best approach - Google prefers to have final links in sitemap not redirecting one, but forcing translation of thousands links in all languages in the same time could kill your server or be threated by Google as attack (if links are not cached yet).

If you have any PHP programming skills you can modify instructions below to support also other parts of sitemap - not only threads URLs. Solution below will add translated links only for first pages of threads.

Integration instructions:
You just have to edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.

Find:


vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");

And place AFTER it...

For SEO links


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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, 1, $archived);
$currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
$currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
$vbseo_stat['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.

For links with language= (do NOT use booth - only appropriate for your links type)


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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) {
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived) . '&amp;language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.


********************************************************************************
OPTIONAL:
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added BEFORE:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(


Also in this additional code you have to change 1 to $p.


Is it safe to do this then?
If google bans you?
Regards

vBET
09-06-10, 11:30
Is it safe to do this then?
If google bans you?
Regards

Yes it is safe.
No - Google will not ban you. You may get information about redirects in sitemap in your webmaster tools.

Also please note that we consider sitemap integration as not necessary. Google will find your translated pages anyway crawling your normal pages. Having links to translated pages in sitemap can just make it indexed faster, but it is NOT necessary to get it indexed.

basketmen
07-09-10, 11:18
You can simply integrate vBET with vBSEO Sitemap Generator (http://www.vbulletin.org/forum/showthread.php?t=206169) (it is free) to include links to translated pages into generated sitemap.

Please note that instructions below will allow you to add into your sitemap links for threads translated pages. Because of performance reason those links will not be translated - there will be only added language code. Google will find real page anyway since you will get 301 redirect. Please note that it is not best approach - Google prefers to have final links in sitemap not redirecting one, but forcing translation of thousands links in all languages in the same time could kill your server or be threated by Google as attack (if links are not cached yet).

If you have any PHP programming skills you can modify instructions below to support also other parts of sitemap - not only threads URLs. Solution below will add translated links only for first pages of threads.

Integration instructions:
You just have to edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.

Find:


vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");

And place AFTER it...

For SEO links


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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, 1, $archived);
$currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
$currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
$vbseo_stat['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.

For links with language= (do NOT use booth - only appropriate for your links type)


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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) {
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived) . '&amp;language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.


********************************************************************************
OPTIONAL:
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added BEFORE:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(


Also in this additional code you have to change 1 to $p.
hehe your instruction is bit confusing

so what is looks like the code need to add also links for other thread pages (if thread have several pages) For SEO links



where to add $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

and where to change 1 to $p.



is this correct


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
//end additional code

vBET
07-09-10, 19:26
hehe your instruction is bit confusing

so what is looks like the code need to add also links for other thread pages (if thread have several pages) For SEO links



where to add $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

and where to change 1 to $p.



is this correct


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
//end additional code

NO. You changed 1 to $p correctly - but why did you add:

$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
In our isntructions there is nothing to add such line. You should add our code before this line - it already exists in sitemap code.

basketmen
07-09-10, 21:56
(REMOVED, WRONG CODE, PLEASE SEE BELOW FOR CORRECT CODE)

vBET
08-09-10, 09:10
No. You add our code once. I just updated the description so now it describes clearly that additional code is added in other place (not 2nd time). If you have any suggestions how we can improve this description to be easier please write - we will gladly made it more user friendly :)

basketmen
08-09-10, 10:11
i think only need the second code, because all forum have more than 1 thread pages, and i believe 99% people want as much as possible they links in the sitemap so get more traffic



so we just only need do this, For SEO links?



Find:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

And place BEFORE it...

For SEO links


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.

vBET
08-09-10, 22:45
Please note that some of our clients have really huuge forums. So huge that generation of normal sitemap takes very long. So it takes longer when additional links are generted there. In such case most important is to generate it faster. That is why instructions tells how to do it for first thread pages. Also please note that Google will index other thread pages anyway - it will find links on your forum pages. So it is not necessary to put everything into sitemap.

basketmen
08-09-10, 23:14
Please note that some of our clients have really huuge forums. So huge that generation of normal sitemap takes very long. So it takes longer when additional links are generted there. In such case most important is to generate it faster. That is why instructions tells how to do it for first thread pages. Also please note that Google will index other thread pages anyway - it will find links on your forum pages. So it is not necessary to put everything into sitemap.
ok Michał, so above post (http://www.vbenterprisetranslator.com/forum/vbet-integration-other-plugins/98-sitemap-generator-integration-2.html#post4779) already correct For SEO links more than 1 thread pages?

vBET
09-09-10, 07:31
ok Michał, so above post (http://www.vbenterprisetranslator.com/forum/vbet-integration-other-plugins/98-sitemap-generator-integration-2.html#post4779) already correct For SEO links more than 1 thread pages?

Yes it is :)

basketmen
09-09-10, 11:37
Please note that instructions below will allow you to add into your sitemap links for threads translated pages. Because of performance reason those links will not be translated - there will be only added language code. Google will find real page anyway since you will get 301 redirect. Please note that it is not best approach - Google prefers to have final links in sitemap not redirecting one, but forcing translation of thousands links in all languages in the same time could kill your server or be threated by Google as attack (if links are not cached yet).



btw it is better the already translated links in the sitemap, not the original one link only with added language code

if the problem because can kill server resource, maybe it can be overcome by settings in admincp --> VBSEO --> vBSEO Sitemap Settings --> Delay Execution After Each Sitemap File, we can set it to like 30, 60 seconds or more so not the server can handle it. And we can set Max URLs in Sitemap Files to lower number like 5000 per sitemap



please consider it, i get many the original one link only with added language code indexed by google, only little with the already translated links

vBET
09-09-10, 13:53
btw it is better the already translated links in the sitemap, not the original one link only with added language code

if the problem because can kill server resource, maybe it can be overcome by settings in admincp --> VBSEO --> vBSEO Sitemap Settings --> Delay Execution After Each Sitemap File, we can set it to like 30, 60 seconds or more so not the server can handle it. And we can set Max URLs in Sitemap Files to lower number like 5000 per sitemap



please consider it, i get many the original one link only with added language code indexed by google, only little with the already translated links

We completely agree that it is better to have already translated URLs in sitemap. Still there is a reason why we didn't made it already - performance. At this moment generation of 52 times more links for threads can consume lot of time for large forums. Translation of all of those in same time could made it really, really time consuming and generate lot of queries to database. At this moment we have lot of plans how to improve vBET. This issue has low priority, because it is not urgent. Still we keep it in mind.

CThiessen
12-09-10, 10:11
Hello, I do not use the generator Sidemap for translated pages. I would want to have to focus on my own language. But in one of the RSS feed from several other languages in Webmaster Tools. There, the links are already compiled. Google has as always the latest links and to continue working well independently. Christian Greeting

vBET
12-09-10, 13:35
Hello, I do not use the generator Sidemap for translated pages. I would want to have to focus on my own language. But in one of the RSS feed from several other languages in Webmaster Tools. There, the links are already compiled. Google has as always the latest links and to continue working well independently. Christian Greeting

Thanks for your info. As I understand you just shared with your experience, or you need some support here?

basketmen
02-10-10, 22:43
i think only need the second code, because all forum have more than 1 thread pages, and i believe 99% people want as much as possible they links in the sitemap so get more traffic



so we just only need do this, For SEO links?



Find:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

And place BEFORE it...

For SEO links


//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code

NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.
Michał i am sorry, i realize this code only adding other languages for showthread pages in sitemap, do you know where (place after or before what) to add other pages too like forumdisplay, archives and others?

because those 2 pages are the most important to make google easier to indexing the thread lists, at least its should be including integration forumdisplay and archive pages too in sitemap

vBET
03-10-10, 01:16
Michał i am sorry, i realize this code only adding other languages for showthread pages in sitemap, do you know where (place after or before what) to add other pages too like forumdisplay, archives and others?

because those 2 pages are the most important to make google easier to indexing the thread lists, at least its should be including integration forumdisplay and archive pages too in sitemap

At this moment we have tested code only to integrate thread pages, which we considered as most important. Please note that Google will index all your pages anyway (even if you do not made sitemap integration at all), because robots crawls by all links on your pages and you have included flags with links to translated pages. Of course including links into sitemap can make indexing faster. That is why we published threads links integration - threads changes fast so faster crawling can be useful.

basketmen
03-10-10, 01:22
At this moment we have tested code only to integrate thread pages, which we considered as most important. Please note that Google will index all your pages anyway (even if you do not made sitemap integration at all), because robots crawls by all links on your pages and you have included flags with links to translated pages. Of course including links into sitemap can make indexing faster. That is why we published threads links integration - threads changes fast so faster crawling can be useful.
ok, let us know too if you know where to add the additional code for forumdisplay and archives pages

Lee G
06-10-10, 21:01
When I add the code from the first post in the sitemap file, I get the following error during sitemap generation


Fatal error: Call to undefined function vbet_vbseo_filter_replace_text() in /home/thespain/public_html/vbseo/includes/functions_vbseo_createurl.php on line 47


Running Vbet 3.3.6 and vbseo 3.5.2 on a 3.8.1 forum

vBET
06-10-10, 23:19
vBET includes required file in init_startup hook:


if ('VBSEO_URI' == $vbulletin->options['vbenterprisetranslator_linkstype']) {
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
}


It seems that it is not included in your case by some reason. In such case please put only the line with reqiure_once in changed file of sitemap generator. Put it before additional code of vBET. Please note that it was not tested - so it is wise to make copy of file before changes.

Lee G
07-10-10, 11:15
Cheers for hat Micheal, it was more human error on my part
I googled the error and found it was a bit I over looked on the settings

I never changed the link type to VBSEO_URI :o

If you made that a drop down options, idiots like me would not overlook it :o :D

Through past experience I know to set the generation time on the sitemap to have a nice delay between sitemap pages. Mines set to something 15 second delay.

But Im happy with the total pages on ten languages

Forum Display: 2904
Show Thread: 1817821

Total Indexed URLs: 1823149
Total Processing Time: 1,682.58 seconds

Snake
20-10-10, 12:06
Is this code working with sitemap 2.6 ? Thanks.

Simon Lloyd
21-10-10, 06:21
Snake where did you find sitemap generator 2.6?, i have 2.5 and it works with that.

Snake
27-10-10, 21:26
Since you changed the code, it doesnt work properly.

The numbers dont add up.

Forum Display: 327
Show Thread: 886054
Show Post:
Member Profiles:
Poll Results:
Blog Entries:
Blog Tags:
Album URLs:
Social Groups URLs:
Tag URLs:
Archive: 169

Total Indexed URLs: 837931

beaconsfield
29-10-10, 07:45
I have the same problem.

I use Vbseo 3.5.2 and Sitemap Generator 2.6 beta 2

Sitemap generator is not working. It starts and not complete.

vBET
29-10-10, 19:07
Does it generate any thread links? If you have lot of links and sitemap generation takes long it can have not enough time to complete. Please check does it continue when you trigger it again. If yes and will complete in 2 or more requests, then you should consider to give more time for evaluation.

If not - please make sure that code changes are appropriate.

furnivat
26-12-10, 15:10
I have the "VBSEO sitemap generator gold v3.0". There is no code like you mentioned on the front page in its vbseo_sitemap.php file.


vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");

There's some code like this:


$addons = preg_split('#[\r\n]+#', $vboptions['vbseo_sm_addons']);

vbseo_set_sitemap_type('addon');
foreach($addons as $addon)
if($addon && file_exists(VBSEO_DAT_FOLDER_ADDON . $addon))
{
vbseo_log_entry("[addon module] $addon", true);
include (VBSEO_DAT_FOLDER_ADDON . $addon);
}

vbseo_flush_index();

vbseo_clean_progress();

if($vboptions['vbseo_sm_ping'])
{
vbseo_sitemap_ping();
}

vbseo_log_entry('Sitemap has been created. <a href="index.php">Click here to return</a>', true);

Should I insert the code on the front page near that code, please?

furnivat
26-12-10, 15:26
I just sent an email to contact at vbent***slator.com about this. Thanks!

kamilkurczak
27-12-10, 15:05
hello,
the solution for 3.0 version of sitemap generator is ok, but gold edition - not tested.
I will check it

furnivat
11-02-11, 10:32
Any developments, please?

kamilkurczak
11-02-11, 13:12
ok I will check it for you :)

Juice
21-02-11, 15:12
I have the same problem.

I use Vbseo 3.5.2 and Sitemap Generator 2.6 beta 2

Sitemap generator is not working. It starts and not complete.


Same with me. The generator starts and comes up with


"[SECTION START] showthread [18,484.1Kb mem used] [372,670s (+372,670s)]"

in the very same moment I click the button (so I guess the echoed result with 372 seconds has to be definitly wrong)- and then it dies. No xml´s created, no pings, nothing. php_value max_execution_time is set to 540.

And by the way: I contacted the vbseo support for this. They responded with this:


Please note that we don't offer support to boards that have vBEnterprice translator installed. Please revert any changes you applied to vBSEO , vBSEO Sitemap Generator files , uninstall that modification and try again.

Sounds like vBET and vbSEO would have some disagreements..

Juice
07-04-11, 10:10
Same with me. The generator starts and comes up with



in the very same moment I click the button (so I guess the echoed result with 372 seconds has to be definitly wrong)- and then it dies. No xml´s created, no pings, nothing. php_value max_execution_time is set to 540.

And by the way: I contacted the vbseo support for this. They responded with this:



Sounds like vBET and vbSEO would have some disagreements..

@Michal,
can you please give me some support? I can´t get rid of this problem.

Regards,
Marv.

vBET
07-04-11, 14:17
@Michal,
can you please give me some support? I can´t get rid of this problem.

Regards,
Marv.

Hi :) I just returned from vacation. Please send me on PM access details to your Admin CP and FTP I will check your code and see what happens there.

wowglider.de
14-04-12, 12:00
Same problem as usually. You should start thinking easy, just provide FINISHED code for every need.

I try to edit it, but it doesnt work. Look how much ppl in this thread has problems, just make some samples like:

Sitemap without SEO links

Sitemap with SEO Links

Sitemap without SEO links, multiple pages

Sitemap with SEO Links, multiple pages

Would save you alot of time.

How i understand your tutorial i edited the .php this way:




vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('en','fr');
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['t'] += sizeof($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++)


But it isnt working...

What problems i found?

1.) FIND "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"

This string doesnt exist. Theres "only" "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"

If i would add it where you says it breaks the code.

2.) other steps are okay and understandable.

3.) OPTIONAL:
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added in other place - BEFORE:
PHP Code:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
Also in this additional code you have to change 1 to $p.

This is absolutly not understandable. I dont know what to do. I cant understand it simply. Just clarify what and where...

r.dziadusz
14-04-12, 16:13
Hi

I try to edit it, but it doesnt work. Look how much ppl in this thread has problems, just make some samples like:

We cannot do that becouse code is owned by plugin "Sitemap Generator"


How i understand your tutorial i edited the .php this way:
If you want to use "OPTIONAL" code from step 3:
first this line:

$currentthreadurl = vbseo_url_thread($threadrow, %p, $archived);

should look :

$currentthreadurl = vbseo_url_thread($threadrow, $p, $archived);


And secondly as it is said

You have to add code from step 3 before this line:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

And you put it in place where code supposed to be if you didn't do optional step 3, just please find line
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls( and move your code there with line I corrected

This is absolutly not understandable
If this helpful for you, please let as know how do you like it to be, we will try to make this work easier for you

wowglider.de
18-04-12, 12:44
You are not allowed to edit some of their codes? You should not post the WHOLE code here, just the snipped we need to change.

You should make it look like:

FIND

$currentthreadurl = vbseo_url_thread($threadrow, %p, $archived);

CHANGE TO

$currentthreadurl = vbseo_url_thread($threadrow, $p, $archived);

But there is no "$currentthreadurl = vbseo_url_thread($threadrow, %p, $archived); " I think you mean "$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived); ".

I tryd now:


$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('en','fr');
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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code


Not working.

You even put their code here servival times, so it should be no problem to put some samples like i listed up.

r.dziadusz
18-04-12, 21:22
As it is said in instruction

f you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added in other place - BEFORE:
PHP Code:

$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
Please put it before this line:)

wowglider.de
20-04-12, 02:38
This is, like i said in my problem description, the part i dont understand or able to translate.

I should put it (what?) before this line ( "$vbseo_sta.." ??)

r.dziadusz
20-04-12, 20:47
Put


//additional code
require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
$alanguages = array ('en','fr');
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['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code


before line



$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations supported by vBET 4.9.99