PDA

View Full Version : Forum Display Enhancements - vB Enterprise Translator


Pages : 1 [2] 3 4 5 6

NLP-er
08-19-2009, 07:23 PM
Yeah that sounds good.

Alright I have fixed it now for the main page:

https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181

If you are having any issues now, check your htaccess for any kind of rewrite rules on your main page.

Ill start working on making it compatiable with the www.website.com/forums/lang format

Still have redirect on main page

NLP-er
08-19-2009, 07:25 PM
Hey NLP-er,

When you include this in a release, I recommend the following:

(1) Put the code T2x is working on in it's own file, for example "./includes/t2x_vbseo.php"

(2) Then, simply add one line in vbseo.php, something like:

include_once('includes/t2x_vbseo.php');

This will be much easier for folks to install and maintain, and easier for you as well.

Plus, if anyone has a problem, they can simply comment out one line.

Or, even better, you can add a configuration flag and make it so users can turn it on and off in the configuration CP. :D

if (T2X_VBSEO_ENABLED) include_once('includes/t2x_vbseo.php');

.... something like that

Thanks for advice :) I was already thinking about this and have in mind solution without any editing of vbseo.php (made not finishing rule in .htaccess) hope it will work :)

Will start working on this when new link format will work also for forums in sub directory :)

imported_silkroad
08-20-2009, 05:11 AM
Still have redirect on main page

We installed the latest t2x_vbseo.php code.

It seems to be OK now (great job!), except on the main page, same as NLP-er.

Cheers and Thanks!

imported_silkroad
08-20-2009, 06:46 AM
FYI, for those of you who install the t2x_vbseo.php code, note that you can easily 301 your original language back to the original site (to avoid possible duplicate content issues).

For example, for English create a directory in your forum root called 'en'.... then you can create a .htaccess file as follows, in that directory:

RewriteEngine on
RewriteRule (.*) http://www.YOURSITE.com/$1 [L,R=301]

Make sure you change YOURSITE to your site :D

imported_silkroad
08-20-2009, 09:15 AM
Dear NLP-er and T2x,

This rewrite rule:

RewriteCond %{QUERY_STRING} (hl=|language=)(..|zh-TW|zh-CN)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]

Needs to be changed to:

RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]

If you don't put the ".." match on the end, it will match zh before zh-TW and zh-CN.

T2x
08-20-2009, 09:33 AM
Okay I have updated my code on page 13 to the latest after all of the fixes for the various bugs :D

Still a few to sort out but its looking very nice

imported_silkroad
08-20-2009, 09:36 AM
Okay I have updated my code on page 13 to the latest after all of the fixes for the various bugs :D

Still a few to sort out but its looking very nice

Request: Can you put some version numbers on your code on page 13 when you make changes? Thanks!

Konstantinos
08-20-2009, 10:18 AM
how can we make this to work for addons like photopost gallery ?

Megatr0n
08-20-2009, 12:06 PM
NLP-er, you said this will translate in 42 different languages but I do not see 42 flags?

Do you if Urdu will ever be available?

imported_silkroad
08-20-2009, 12:14 PM
NLP-er, you said this will translate in 42 different languages but I do not see 42 flags?

Do you if Urdu will ever be available?

Here you can see the languages supported by Google Translate:

http://translate.google.com/translate_tools?hl=en

Note: Urdu is not in the list.

Here is another view of the same list:

http://translate.google.com/?hl=en#

Languages available for translation (Google's List)

Albanian
Arabic
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
German
Greek
Hebrew
Hindi
Hungarian
Indonesian
Italian
Japanese
Korean
Latvian
Lithuanian
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swedish
Thai
Turkish
Ukrainian
Vietnamese

imported_silkroad
08-20-2009, 12:21 PM
OBTW,

If you want to see a pretty good "the lay of the land" regarding Machine Translation Applications:

Visit this link:

http://en.wikipedia.org/wiki/Comparison_of_Machine_translation_applications

imported_silkroad
08-20-2009, 12:57 PM
OBTW, I just wanted to say (it again)......

This mod is really making great strides toward a first class mod, especially considering it was released on Aug 14th.

The features that have been added insure that the mod is fully configurable in compliance with the Google Terms of Service (TOS).

Also, the new code under development by T2x that gets rid of the language attribute parameter and rewrites it to a very SEO friendly structure, is a leap ahead for this mod.

We installed the new t2x_vbseo.php code and it is running live quite well.

More interesting, is that I have noticed a difference in how GoogleBot crawls the site, and the crawling seems better with the new t2x_vbseo code.

For those of you who don't know. T2x also created the original code to use the Google AJAX Search API key, which is an included option in NLP-ers version.

So, if anyone has any spare change or bucks, you might also consider sending a PM to T2x and getting his PayPal account details. We certainly plan to PP some "cheese" over to him when this is all tested and running in the maze.

Thanks to NLP-er and T2x for all the very hard work.

When the dust settles and much of the current debugging and testing efforts cool down, we also need to look into adding at least one more optional translation service API, so the mod is not 100% dependent on one service provider.

imported_silkroad
08-20-2009, 01:13 PM
Also, I wanted to add that if anyone has any ideas how to improve the issues that this mod seems to perform (2) a lot of joins without indexes and (2) write a lot of tmp tables to disk (see screen shots), that would be great :-)

NLP-er
08-20-2009, 02:59 PM
FYI, for those of you who install the t2x_vbseo.php code, note that you can easily 301 your original language back to the original site (to avoid possible duplicate content issues).

For example, for English create a directory in your forum root called 'en'.... then you can create a .htaccess file as follows, in that directory:

RewriteEngine on
RewriteRule (.*) http://www.YOURSITE.com/$1 [L,R=301]

Make sure you change YOURSITE to your site :D

I think it is not necessary - for default language this mod creates flag with no language, so there is on any different link pointing at same content :)

NLP-er
08-20-2009, 03:05 PM
how can we make this to work for addons like photopost gallery ?

Give me link to this gallery and tell which version of mod you are using? :)

NLP-er
08-20-2009, 03:09 PM
NLP-er, you said this will translate in 42 different languages but I do not see 42 flags?

Do you if Urdu will ever be available?

Yeap - 42 languages supported and will be 43 in next release (Persian added). If you see less flags - go to configuration and turn on other flags :)

About Urdu - ask Google :) Whatever they will support I will support :)

NLP-er
08-20-2009, 03:11 PM
OBTW,

If you want to see a pretty good "the lay of the land" regarding Machine Translation Applications:

Visit this link:

http://en.wikipedia.org/wiki/Comparison_of_Machine_translation_applications

Great thanks - will be helpful in the future :) right now I have to much new features to handle new engines - but will look at it :)

NLP-er
08-20-2009, 03:17 PM
For those of you who don't know. T2x also created the original code to use the Google AJAX Search API key, which is an included option in NLP-ers version.

So, if anyone has any spare change or bucks, you might also consider sending a PM to T2x and getting his PayPal account details. We certainly plan to PP some "cheese" over to him when this is all tested and running in the maze.

Thanks to NLP-er and T2x for all the very hard work.

Agree - send thanks and support to T2x for his work :)

But - code to add API key is mine ;)

imported_silkroad
08-20-2009, 03:18 PM
I think it is not necessary - for default language this mod creates flag with no language, so there is on any different link pointing at same content :)

That's great! I look forward to porting over from hl= to language= :D

imported_silkroad
08-20-2009, 03:23 PM
Agree - send thanks and support to T2x for his work :)

But - code to add API key is mine ;)

Sorry! I thought you used the idea from the code he posted before on the topic, in the hl mod.

Anyway, I recall T2x had a post with that code a while back and suggested we use the API. (I am using still using that code until I finally port to your mod).

Great job both of you!

NLP-er
08-20-2009, 03:35 PM
Also, I wanted to add that if anyone has any ideas how to improve the issues that this mod seems to perform (2) a lot of joins without indexes and (2) write a lot of tmp tables to disk (see screen shots), that would be great :-)

Actually joins are made only if you use selecting by serie (which is configurable) and are joining by serie which is indexed and is a number (so it is very fast to compare).

I see your screen shots and I'm very surprised - you are sure that this is about this mod ;)

Look yourself to product file - each table has index for serie, and look in to vbenterprisetranslator_functions.php on SELECT queries - all 3 which joins tables are using serie to join... Maybe I miss something but I'm still sure that all joins in my mod are made with indexes. So - unless you show me exactly which query causes it I assume that the reason can be in other mod or vB.

About BLOBS. DB is optimized to handle long textes - it means what don't need be in BLOB isn't. Short texts are put into small and medium cache. Long - must be in blob and there is no other way. In SQL you will find VARCHAR(65000) but mySQL will change it to some BLOB or TEXT field. Medium cache is as long as it is possible to be possible to create unique indexes - one char more and unique will not be possible. Also VARCHAR(328) in medium cache statys as varchar. It appears that in older version of mySQL like 4.1.1 it is changed VARCHAR(328) to BLOB, but if someone choose to use old soft which is slower - for me means that he don't need speed, so I optimized it for those who use higher versions :)

Still - if someone have idea to improve - I will gladly read what solution will make it faster :)

NLP-er
08-20-2009, 03:38 PM
Sorry! I thought you used the idea from the code he posted before on the topic, in the hl mod.

Nope :) Didn't know about this post. Just look in Google documentation, found key param and changed very few lines of code :)

imported_silkroad
08-20-2009, 03:45 PM
AI see your screen shots and I'm very surprised - you are sure that this is about this mod ;)

Ah! That is from the old hl mod (or maybe another mod) .... !! But the issue only started with we installed the "old hl mod" cause I monitor DB performance rather carefully.....

I look forward to seeing the new performance after porting!

Thanks.

FYI, here is part of the T2x Google API code from "before" :


@curl_setopt($ch, CURLOPT_URL, "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&key=blahbalhjfkljfdlkjfdlkjfdkjfdkjfkdjfkdfjdkpNbY UjebhSesaThcIIYMEFOUC-VHLBB1KJQkw&langpair=".urlencode($fl.'|'.$tl)."&q=".urlencode($text));

NLP-er
08-20-2009, 03:47 PM
Okay I have updated my code on page 13 to the latest after all of the fixes for the various bugs :D

Still a few to sort out but its looking very nice

I works on main page now, but all images dissapear. Only on main page - in other places images are ok.

NLP-er
08-20-2009, 05:00 PM
Just want to all let you know that I'm ready to make 2.0.0 release :)

I changed code and now links will be generated according to SEO consensus (/en/address) - configurable. Also added some other requeste features :)

Just waiting till T2x fix his code to work appropriatelly in main page and in forums in subdirectories :) Great work T2x :D:up:

Also new release will not require any vbseo.php changes :)

imported_silkroad
08-20-2009, 05:12 PM
Just want to all let you know that I'm ready to make 2.0.0 release :)


Amazing! :D

This will be MOTY (Mod of the Year!) :cool:

wolfstream
08-20-2009, 05:22 PM
What is wrong with the paths? :)
Judging by your own base install, everything.
Use one of your own translation links, on the base install, you will see massive image problems and what appear to be script problems (stats loading, etc). This is because of how you have set this up, the paths are pointing to /en/images instead of /images/ , etc.

Sure, this could be just an install thing, but when you provide a demo, it should work, otherwise, people won't install the product.

yahoooh
08-20-2009, 05:23 PM
Hey guys, I decided to do some work and make this mod comply with vBSEO's link consensus idea.

What this will do is change all of the translation likes like so:

For example if a page.html is translated into danish, the url will normally be:

www.website.com/page.html?language=da

This will change the format to

www.website.com/da/page.html

This is much better for SEO so I am sure all of you with vBSEO will like this.

WARNING: this will only work properly if your forum is installed at the BASE of your domain, so something like www.website.com/index.php, if your forums are installed at www.website.com/forums/index.php some parts of my code will not work properly for you!!

All you need to do is open up your vbseo.php and add this code right BELOW error_reporting(0);

Make sure it is ABOVE the includes

if(isset($_GET['vbseourl']))
{
$processuri = 0;
if(preg_match('/^..(\/|$)/',$_GET['vbseourl']))
{
$processuri = 1;
$_GET['language'] = substr($_GET['vbseourl'],0,2);
$_GET['vbseourl'] = substr($_GET['vbseourl'],3);
}
else if(preg_match('/^\/..(\/|$)/',$_GET['vbseourl']))
{
$processuri = 1;
$_GET['language'] = substr($_GET['vbseourl'],1,2);
$_GET['vbseourl'] = substr($_GET['vbseourl'],3);
}
else if(substr($_GET['vbseourl'],0,5) == "zh-CN" || substr($_GET['vbseourl'],0,5) == "zh-TW")
{
$processuri = 1;
$_GET['language'] = substr($_GET['vbseourl'],0,5);
$_GET['vbseourl'] = substr($_GET['vbseourl'],6);
}
else if(substr($_GET['vbseourl'],1,5) == "zh-CN" || substr($_GET['vbseourl'],1,5) == "zh-TW")
{
$processuri = 1;
$_GET['language'] = substr($_GET['vbseourl'],1,5);
$_GET['vbseourl'] = substr($_GET['vbseourl'],6);
}

if($processuri == 1)
{
if(substr($_SERVER['REQUEST_URI'],0,2)=='//')
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],1);
$tempuri = isset($_SERVER['HTTP_X_REWRITE_URL']) ? $_SERVER['HTTP_X_REWRITE_URL'] :
(isset($_SERVER['HTTP_X_ORIGINAL_URL']) ? $_SERVER['HTTP_X_ORIGINAL_URL'] :
(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] :
(isset($_ENV['REQUEST_URI']) ? $_ENV['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']))
);
if (strstr($tempuri, 'vbseo.php') && $_GET['vbseourl'])
$tempuri = preg_replace('#vbseo\.php.*#', $_GET['vbseourl'] . ($_SERVER['QUERY_STRING']?'?'.$_SERVER['QUERY_STRING']:''), $tempuri);
$tempuri = preg_replace('#\#.*$#', '', $tempuri);
$_SERVER['REQUEST_URI'] = $tempuri;
if(preg_match('/^\/..(\/|$)/',$_SERVER['REQUEST_URI']))
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],3);
else if(substr($_SERVER['REQUEST_URI'],1,5) == "zh-CN" || substr($_SERVER['REQUEST_URI'],1,5) == "zh-TW")
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],6);
$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
}
}
else
{
$processuri = 0;
if(substr($_SERVER['REQUEST_URI'],0,2)=='//')
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],1);
$tempuri = isset($_SERVER['HTTP_X_REWRITE_URL']) ? $_SERVER['HTTP_X_REWRITE_URL'] :
(isset($_SERVER['HTTP_X_ORIGINAL_URL']) ? $_SERVER['HTTP_X_ORIGINAL_URL'] :
(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] :
(isset($_ENV['REQUEST_URI']) ? $_ENV['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']))
);
$tempuri = preg_replace('#\#.*$#', '', $tempuri);

if(preg_match('/^..(\/|$)/',$tempuri))
{
$processuri = 1;
$_GET['language'] = substr($tempuri,0,2);
}
else if(preg_match('/^\/..(\/|$)/',$tempuri))
{
$processuri = 1;
$_GET['language'] = substr($tempuri,1,2);
}
else if(substr($tempuri,0,5) == "zh-CN" || substr($tempuri,0,5) == "zh-TW")
{
$processuri = 1;
$_GET['language'] = substr($tempuri,0,5);
}
else if(substr($tempuri,1,5) == "zh-CN" || substr($tempuri,1,5) == "zh-TW")
{
$processuri = 1;
$_GET['language'] = substr($tempuri,1,5);
}

if($processuri == 1)
{
$_SERVER['REQUEST_URI'] = $tempuri;
if(preg_match('/^\/..(\/|$)/',$_SERVER['REQUEST_URI']))
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],3);
else if(substr($_SERVER['REQUEST_URI'],1,5) == "zh-CN" || substr($_SERVER['REQUEST_URI'],1,5) == "zh-TW")
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],6);
$_SERVER['HTTP_X_REWRITE_URL'] = $_SERVER['REQUEST_URI'];
}
}


If you want to 301 all of your old pages to the new link format, you can put this in your .htaccess above all of your existing rules

RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]

Please note that this code assumes you are running vBSEO.

This code will fix translation for the base of your website if you want the following format. www.website.com/de or www.website.com/de/ . this only applies to your main page.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?((zh-CN|zh-TW|..))/?$ vbseo.php?vbseourl=$1/index.php [L,QSA]

If you want to generate proper sitemaps with all of your new language urls, all you need to do is open up your vbseo_sitemap_functions.php in your vbseo_sitemap directory then:

find this code

}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");

for($p=1; $p<=$totalpages; $p++)
{


Add this code right after it:

$alanguages = array('ar', 'bg', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'fi', 'fr', 'de', 'el', 'iw', 'hu', 'it', 'ja', 'ko', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'es', 'sv', 'th', 'tr');
if(!$archived)
foreach($alanguages as $hl) {
$vbseo_stat['t']++;
$currentthreadurl = vbseo_url_thread($threadrow, $p, $archived);
$strlenhost = strlen($vbseo_vars['bburl']."/");
vbseo_add_url(substr($currentthreadurl,0,$strlenho st).$hl."/".substr($currentthreadurl,$strlenhost), 0.3, $threadrow['lastpost'], $freq);
}

make sure its before:

$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)
{

$getposts = $db->query("

If you notice there is an array in the code that looks like this $alanguages = array('ar', 'bg', 'zh-CN', 'zh-TW', 'hr', 'cs', 'da', 'nl', 'fi', 'fr', 'de', 'el', 'iw', 'hu', 'it', 'ja', 'ko', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'es', 'sv', 'th', 'tr');

You should put the code of every language that you want added to your sitemap file in this array. Mine may differ from the languages you support so make sure you check it against your installation.


Just a note of caution: My fixes assume you are running a standard installation of apache with vBSEO. They may not work properly on some systems due to differences in the way that vBSEO handles some server variables. I recommend that you back up any files before editting them that way if you encounter problems you can restore your old versions.

I will be working on this code more so if any of you have issues please let me know and I will work on them.

If NLP-er would like he can provide a modified version of his flags in order to work with the new format or I will write up the code later today. This is necessary so that the flags show the proper links.

Anyway enjoy guys :D

how to make it work with addon not depend on vbseo like vba links and vba dyna which be only show flags when the requist_url is the setting

yahoooh
08-20-2009, 05:25 PM
i hope Nlp can fix the issue related what i talk with him about vbseo_url and requist_url for pages in vba links and vba dyna

any solution to make it work in requist_url and make vbseo as requist_url by some change in vbseo files
it is eazy then to make all the site work

imported_silkroad
08-20-2009, 05:38 PM
i hope Nlp can fix the issue related what i talk with him about vbseo_url and requist_url for pages in vba links and vba dyna

any solution to make it work in requist_url and make vbseo as requist_url by some change in vbseo files
it is eazy then to make all the site work

FWIW, we run vBa Links and everything works fine (with the old hl mod) and the new t2x_vbseo.php code.

Seems it should be OK with the new language= mod (this mod), since it is better :-)

yogeshp
08-20-2009, 05:45 PM
Best API ... good keep it up.. good mod

yahoooh
08-20-2009, 05:51 PM
FWIW, we run vBa Links and everything works fine (with the old hl mod) and the new t2x_vbseo.php code.

Seems it should be OK with the new language= mod (this mod), since it is better :-)

because you use vbseo for rewrite vba links as i thought

i use vba links seo which is not depend on vbseo
and this mean when u enable vbseo_url as option in vbetranslator
the links in footer for flags not showen when u explore the pages in origin language
it is just give main page for translate

imported_silkroad
08-20-2009, 05:53 PM
because you use vbseo for rewrite vba links as i thought


Ah! OK..... thanks, I did not understand you did not use vBSEO.....

Cheers and good luck on that ....

NLP-er
08-20-2009, 08:05 PM
Judging by your own base install, everything.
Use one of your own translation links, on the base install, you will see massive image problems and what appear to be script problems (stats loading, etc). This is because of how you have set this up, the paths are pointing to /en/images instead of /images/ , etc.

Sure, this could be just an install thing, but when you provide a demo, it should work, otherwise, people won't install the product.

As I wrote - I'm holding new release till solution will be perfect :)

Also - /en/images works for all pages except main (some rewriting is done by vbSEO) so it means that it can work also in main page :) We just need to find solution :)

And of course my forum will be first with 2.0.0 release (it is where I'm testing it) so live demo will be provided :)

Thanks that you care about giving people best and confirmed solutions :):up:

NLP-er
08-20-2009, 08:14 PM
how to make it work with addon not depend on vbseo like vba links and vba dyna which be only show flags when the requist_url is the setting

Don't know yet. Now we (being honest - T2x make really good and hard work here finding all the issues for vbSEO, I hanged my own code) still have little issues just in vbSEO. But when it will work perfect then it is possible that I will go to support seo link consensus for other seo engines. So 2.0.0 wil have configurable link format. And in future releases maybe will be support for those products you mentioned. I don't want to make promise here - I don't know even how popular those are. But it is right now on my TODO list :)

NLP-er
08-20-2009, 08:18 PM
Best API ... good keep it up.. good mod

Great thanks :) And it's going forward :D

imported_silkroad
08-20-2009, 08:23 PM
Judging by your own base install, everything.
Use one of your own translation links, on the base install, you will see massive image problems and what appear to be script problems (stats loading, etc). This is because of how you have set this up, the paths are pointing to /en/images instead of /images/ , etc.

Sure, this could be just an install thing, but when you provide a demo, it should work, otherwise, people won't install the product.

Hey Tom,

NLP-er is debugging some very tricky mod_rewrite issues on his forum.

We are developing, debugging and testing this Live!

The only way to get past the "debugging phase" is to run the code on Live! traffic.

Believe me, there are no "massive issues", there are some very small and tricky mod_rewrite issues that are being debugged.

Cheers!

NLP-er
08-20-2009, 08:34 PM
because you use vbseo for rewrite vba links as i thought

i use vba links seo which is not depend on vbseo
and this mean when u enable vbseo_url as option in vbetranslator
the links in footer for flags not showen when u explore the pages in origin language
it is just give main page for translate

To be sure - you are writing about oryginal mod or about T2x modification. If about orygial than I will glagly help you with your issues. If about T2x modification, then I'm counting myself on his great job :)

NLP-er
08-20-2009, 08:37 PM
Also already have imlemented for new release Persian support and not translation of bb codes like code, php and html :)

imported_silkroad
08-20-2009, 08:43 PM
Also already have imlemented for new release Persian support and not translation of bb codes like code, php and html :)

GREAT!!!!!!

THANK YOU!!!!! :D

yahoooh
08-20-2009, 09:24 PM
Also already have imlemented for new release Persian support and not translation of bb codes like code, php and html :)

perfect news

my last reply was the issue i talk with you about it in pm for vba dyna and links

also ihope that you cover all area of username
and give us toturial how to find those area and how to make plugin to prevent translation
there are alot of area in vbulletin u did not cover them like groups and profiles also other area

thank you very much

t.uzuner
08-20-2009, 09:52 PM
Use the tracking option in this mods options :)

yes i use tracking mod. tracking mod option is yes but not working. permission with related? please look www.okulonceciyiz.biz

NLP-er
08-20-2009, 10:32 PM
perfect news

my last reply was the issue i talk with you about it in pm for vba dyna and links

also ihope that you cover all area of username
and give us toturial how to find those area and how to make plugin to prevent translation
there are alot of area in vbulletin u did not cover them like groups and profiles also other area

thank you very much

As I wrote in param description I wil gladly take notices about all native areas from vB where usernames are shown. I know that I didn't cover all yet - I don't even know all ;) So PM me please all places wich you found (best as link - I'm not using every possible finctionality of vB so link will be helpfull - can be relative I will add my own domain).

About other mods which are displaying usernames. They simply have to display username inside not translated area (so just have to add comments before and after username). You can ask authors to do this in next release you can also find it yourself - but this 2nd option can be a little hardcore if you are not programmer and also will be lost during upgrade of changed mod. I cannot include in release things nit related with main vB, because those could have strange behaviour if some mod is not installed, and mostly - I'm not able to support all mods which displays usernames :) For mods authors it is easy to include not translated area because it is comment and even if someone don't use my mod it is harnless (just few letters more in output - as comment so not visible :))

yahoooh
08-20-2009, 10:38 PM
ok
about vbseo_url and requist_url
i have suggestion that may correct the issue i have

for example option to make vbseo_url work in domain name
and for subdomain work request_url
or something like that which give option at least fix the issue i have

NLP-er
08-20-2009, 10:39 PM
yes i use tracking mod. tracking mod option is yes but not working. permission with related? please look www.okulonceciyiz.biz

Great thanks for note :) I see it is working only in navbar. I will glagly help you, but for this I need access to FTP and Admin CP. I'm using vbSEO so cannot reproduce this on my own forum. Also I will have to install you 2.0.0 which is not released yet but works perfect with old links type. So if it is ok for you - PM me access data. If you don't like idea of sharing access - you can still set test forum for me which doesn't use vbSEO.

NLP-er
08-20-2009, 10:43 PM
ok
about vbseo_url and requist_url
i have suggestion that may correct the issue i have

for example option to make vbseo_url work in domain name
and for subdomain work request_url
or something like that which give option at least fix the issue i have

Not understood - please PM me details.

NLP-er
08-21-2009, 08:06 AM
HAHAHAHAHA!!!!!!!

I spend 3 nights fighing with vbSEO and main page, and solution was so easy...
It is enought to set: <base href="uri" />

HAHAHAHAHA!!!!!!!

It came to me like revelation... Ping!

2.0.0 Is coming with big steps!!!!

imported_silkroad
08-21-2009, 10:07 AM
It is enought to set: <base href="uri" />


Hey!

Where do you set this HTML?

Edit: OH! You mean for the www.site.com/forum issue? Not the t2x_vbseo.php www.site.com/es/ (for spanish) issue...

Sorry, I am confused by your message!

yahoooh
08-21-2009, 11:06 AM
Not understood - please PM me details.

i mean make for example base url : www.mysite.com
ti work on vbseo_url
and others in subdomain like for example : sub1.mysite.com
work on request_url

as you know subdomain has connection to the site differen from the main site

merkaz
08-21-2009, 11:06 AM
Hello again NLP-er ..

We talked on pms if you remember about vbseo " Relevant Replacements " :
<!--VBSEO_RR_3--> , <!--VBSEO_RR_2--> and <!--VBSEO_RR_1-->

It's very important to translate .

NLP-er
08-21-2009, 11:37 AM
2.0.0 RELEASED :D:D:D:D


Some small or medium changes and one big - for vbSEO users now SEO consensus links available.
GREAT THANKS TO T2x WHO SUPPORTED WITH HIS CODE INTEGRATION WITH vbSEO!!! - without you people have to wait a long time for this step :):up: You can all see his work in vbenterprisetranslator_seo.php file - who knows will recognize how tricky and painful had to be writing this code. Once again - great thanks T2x
What's new:
- Links appropriate for SEO consensus (configurable)
- Persian support added
- Doesn't translate BB codes for code, php and html (must refresh post cache to see effect on existing posts Admin CP -> Maintenance -> Update Counters -> Rebuild Post Cache)
- Reverse page direction for Arabic and Persian languages
- Option to set forum directory if not linked to domain
- Few bugs fixed

Instructions about .htaccess for vbSEO you will find it in first post which act like FAQ :)

ENJOY!!!! It's an order ;)

One more thing - mod is getting back to beta stage.
I was testing it on 3 different forums. 2 with vbSEO and different configurations (booth in main directory) and 1 without vbSEO (and URL to subdirectoy). I had no chance to test it on forum with vbSEO and in subdirectory. That's why mod is going back to beta stage. I made my best effort to make it works and it works great. Also I cannot assure at this moment that it will be working with all possible vbSEO configurations. Time will show and who is here for a while knows that you can count on my support :) Also SEO links re configurable so you can easily go back to prevous one - just changing one setting.

imported_silkroad
08-21-2009, 12:14 PM
2.0.0 RELEASED :D:D:D:D

Congrats.

NLP-er,

On your site, I suggest you 301 this content to back your forum root:

http://www.forum.simple-nlp.pl/pl/

Since your site in in Polish, you will have duplicate content.

What we do for this, using vBSEO, is to 301 that back here:

Define Custom 301 Redirects

'^(.*)\?language=pl' => '$1' //for NLP-er's Polish default language.

That way, you will avoid any potential "duplicate content penalty" (and not break "link consensus") by not have two sets of indexed URLs for the same language.

Of course, you can change it for /pl/ back to /

:D

yahoooh
08-21-2009, 12:19 PM
u should also give httacss used to new configuration u forget to include

jaryx
08-21-2009, 12:25 PM
Hello again NLP-er ..
We talked on pms if you remember about vbseo " Relevant Replacements " :
<!--VBSEO_RR_3--> , <!--VBSEO_RR_2--> and <!--VBSEO_RR_1-->
It's very important to translate .

VBSEO_RR are very well translated. There is no problem with that, at least for me.

yahoooh
08-21-2009, 12:39 PM
it does not work for me
give 404 when i use the new feature
i return to requist_url and i disable it
also the new issue appear that navbar links for some services not give new parameter for language

note: when i make the code of new file directly in vbseo.php the new seo url work

i will wait for stable version
also the main page issue still there because vba advanced not translated when enable the new seo
u should to test it

thank you

merkaz
08-21-2009, 12:41 PM
VBSEO_RR are very well translated. There is no problem with that, at least for me.

If you use VBSEO_RR on vb php files it's not translated .

imported_silkroad
08-21-2009, 12:42 PM
note: when i make the code of new file directly in vbseo.php the new seo url work

Did you restart Apache after editing your .htaccess file?

yahoooh
08-21-2009, 12:55 PM
again i see that when i enable : request_url
and track on

the links on my site header and footer not been with the "?language"

if it is not fixed i will be back to 1.0.5
becuase this version was work perfect

plz any help nlp

merkaz
08-21-2009, 12:58 PM
Error on sitemap :
Parse error: syntax error, unexpected ',' in /home/alhnufc/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 318

After add translated pages to sitemap .

Sweeks
08-21-2009, 02:20 PM
Hey thanks for the update. Somehow now no languages are working with the vbseo URLs turned on :(

Teen Forums (http://www.teenforumz.com/)

Just turned it off there so its using the no vbseo format for the URLS. It may be our htaccess file.

Content of htaccess:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?((zh-CN|zh-TW|..))/?$ vbenterprisetranslator_seo.php?vbseourl=$1/index.php [L,QSA]

RewriteCond %{HTTP_HOST} !^www\.teenforumz\.com
RewriteRule (.*) http://www.teenforumz.com/$1 [R=301,L]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

yahoooh
08-21-2009, 03:00 PM
i return to version 1.1.0
with some code i just copy it from v2 to add persian language and
also i add hebrrew language to the languges written from right to left as arabic and persian

i hope issue i wrote it to u Nlp
be fixed
thank u very much

ForexFox
08-21-2009, 03:58 PM
Is the frontpage bug fixed in V2? (GREAT job by the way ;))

imported_silkroad
08-21-2009, 04:51 PM
Is the frontpage bug fixed in V2? (GREAT job by the way ;))

Not completely, I don't think...... folks are still debugging.... see attached - just shot this screenie .....

NLP-er
08-21-2009, 05:10 PM
Congrats.

NLP-er,

On your site, I suggest you 301 this content to back your forum root:

http://www.forum.simple-nlp.pl/pl/

Since your site in in Polish, you will have duplicate content.

What we do for this, using vBSEO, is to 301 that back here:

Define Custom 301 Redirects

'^(.*)\?language=pl' => '$1' //for NLP-er's Polish default language.

That way, you will avoid any potential "duplicate content penalty" (and not break "link consensus") by not have two sets of indexed URLs for the same language.

Of course, you can change it for /pl/ back to /

:D

Google will not see any /defaultLanguage/ - cause it is not generated by mod :)

NLP-er
08-21-2009, 05:13 PM
Hey!

Where do you set this HTML?

Edit: OH! You mean for the www.site.com/forum issue? Not the t2x_vbseo.php www.site.com/es/ (for spanish) issue...

Sorry, I am confused by your message!

I was just so hapy to find solution for 2.0.0 - don't use it yourself ;)

NLP-er
08-21-2009, 05:19 PM
i mean make for example base url : www.mysite.com
ti work on vbseo_url
and others in subdomain like for example : sub1.mysite.com
work on request_url

as you know subdomain has connection to the site differen from the main site

But sub-domain still poits to the same forum?... PM me details with links (to main and subdomain) I will look and see it :) I put it in TODO list, but without access to some forum (even test) which have what you describe I will not be able to imlement this feature.

NLP-er
08-21-2009, 05:38 PM
Hello again NLP-er ..

We talked on pms if you remember about vbseo " Relevant Replacements " :
<!--VBSEO_RR_3--> , <!--VBSEO_RR_2--> and <!--VBSEO_RR_1-->

It's very important to translate .

Have really lot of great people who ask about something with this mod :)

Great it will go to perfection :)

About those relevant replacements - I have to clean my PMs too often (vb limits it only to 500 ant in my case it is not sufficient) to I need you to PM me again whole thing with link to your site and description which part exactly is not translated. Also describe me your configuration for yours Relevant Replacements :)

NLP-er
08-21-2009, 05:41 PM
u should also give httacss used to new configuration u forget to include

Nothing forget - just read parameter description :) I will not include .htaccess in release, because lot of people have their own rules and I cannot override it - changes must be manual in this case.

NLP-er
08-21-2009, 05:43 PM
VBSEO_RR are very well translated. There is no problem with that, at least for me.

Maybe it was about older mod version - I need confirmation here do we still have an issue?

NLP-er
08-21-2009, 05:51 PM
it does not work for me
give 404 when i use the new feature
i return to requist_url and i disable it
also the new issue appear that navbar links for some services not give new parameter for language


note: when i make the code of new file directly in vbseo.php the new seo url work

i will wait for stable version
also the main page issue still there because vba advanced not translated when enable the new seo
u should to test it

thank you

Which exactly navbar links, on which page (url). Did you made any vbseo.php changes?

NOTE TO ALL - forgot to write about it if you already made in vbseo.php changes described by T2x - undo it. 2.0.0 already includes this code.

I will test it if I get access to forum which have issues like yours. Can be test forum... I just need a place to test. I have different configuration on mine and even don't know yours. So please access to your forum or set test forum for me with same mods and configuration.

This is required it you expect support not a miracle ;)

NLP-er
08-21-2009, 05:55 PM
it does not work for me
give 404 when i use the new feature
i return to requist_url and i disable it
also the new issue appear that navbar links for some services not give new parameter for language


note: when i make the code of new file directly in vbseo.php the new seo url work

i will wait for stable version
also the main page issue still there because vba advanced not translated when enable the new seo
u should to test it

thank you

Also did you made appropriate changes in .htaccess file? Undo alll your changes in vobse.php ake suge youh .htaccess is correct - read required changes description.

NLP-er
08-21-2009, 05:57 PM
If you use VBSEO_RR on vb php files it's not translated .

Required - link, citate of text which is not translated, VBSEO_RR configuration details :)

NLP-er
08-21-2009, 05:59 PM
again i see that when i enable : request_url
and track on

the links on my site header and footer not been with the "?language"

if it is not fixed i will be back to 1.0.5
becuase this version was work perfect

plz any help nlp

Of course it is not perfect - this is clearly marked by "Beta stage" :)

Help - of course :) PM me details which I asked for :)

NLP-er
08-21-2009, 06:03 PM
Error on sitemap :
Parse error: syntax error, unexpected ',' in /home/alhnufc/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 318

After add translated pages to sitemap .

Which version of code are you using (for SEO links or language links)? Put original code from FAQ again and see does it works - maybe you crashed something when you was removing your original language code.

NLP-er
08-21-2009, 06:04 PM
Did you restart Apache after editing your .htaccess file?

I do not need any restart. Also other forums where I was testing don't need this. Question is - do you have appropriate .htaccess changes?

NLP-er
08-21-2009, 06:06 PM
Hey thanks for the update. Somehow now no languages are working with the vbseo URLs turned on :(

Teen Forums (http://www.teenforumz.com/)

Just turned it off there so its using the no vbseo format for the URLS. It may be our htaccess file.

Content of htaccess:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?((zh-CN|zh-TW|..))/?$ vbenterprisetranslator_seo.php?vbseourl=$1/index.php [L,QSA]

RewriteCond %{HTTP_HOST} !^www\.teenforumz\.com
RewriteRule (.*) http://www.teenforumz.com/$1 [R=301,L]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

YES! .htaccess is wrong. Go to FAQ in first post and made all required steps :)

NLP-er
08-21-2009, 06:09 PM
i return to version 1.1.0
with some code i just copy it from v2 to add persian language and
also i add hebrrew language to the languges written from right to left as arabic and persian

i hope issue i wrote it to u Nlp
be fixed
thank u very much

Hebbrrew will have changed direction in next release :) Thanks for note

TrueDarKZONE
08-21-2009, 06:12 PM
im haveing a fue problems and i cant figger it out. when i click on a traslate buttion (flag) it just shows me a white page any ideas what the problem could be.

link to my forum www.dz-es.co.uk/forum/

NLP-er
08-21-2009, 06:15 PM
Is the frontpage bug fixed in V2? (GREAT job by the way ;))

YES :) I found solution and it is fixed :)

NLP-er
08-21-2009, 06:24 PM
Not completely, I don't think...... folks are still debugging.... see attached - just shot this screenie .....

It is working - you wrote link by hand - it is not mod link, so it is no mod fault. Mod is working fine on my forum :)

PS.
For default language links DON'T have language syntax and mod is disabled - that is why you see what you show on screen shot. As I wrote - mod works great on front page. I bet that when I put some random URL on your forum it will also not show valuable content ;)

One ask to every one, because it is lot of issues at once
Please be precise, please describe everything like for a child, please include all relevant links (not only to forum main page), please include previous things (I really miss point when it is not - to many things at once). Please notify only mod behavior - not yours (like wrong links written by hand).

Thanks :D

imported_silkroad
08-21-2009, 06:32 PM
It is working - you wrote link by hand - it is not mod link, so it is no mod fault. Mod is working fine on my forum :)

PS.
For default language links DON'T have language syntax and mod is disabled - that is why you see what you show on screen shot. As I wrote - mod works great on front page. I bet that when I put some random URL on your forum it will also not show valuable content ;)



Hahaha. .... We 301 all "random URLs" back to valuable content :D

That is the best way from production systems with millions of visitors a month :-)

imported_silkroad
08-21-2009, 06:35 PM
I do not need any restart. Also other forums where I was testing don't need this. Question is - do you have appropriate .htaccess changes?

Ah! Right.

We run our .htaccess code in the Apache VirtualHost configuration file, so we have to restart.... but we run different that most people :D

I forget that most people run in .htaccess file .... not us.... so we normally restart Apache.....

NLP-er
08-21-2009, 06:56 PM
Hahaha. .... We 301 all "random URLs" back to valuable content :D

That is the best way from production systems with millions of visitors a month :-)

Grats for good idea :)

mike2902
08-21-2009, 08:36 PM
Installed and working good. What would the reason be for only allowing guests to view the flags? Also if I rerun my sitemap generator will my Urls increase by 42 times?

And nominated

TrueDarKZONE
08-21-2009, 08:37 PM
ok then lets keep it simple. ive installed the mod. v2.0 uploaded all items to forum root folder. so no problems there but when i click on a flag its not working its only giveing me a white blank page now ive messed with the setings abit and still can not get it to work.

for instance http://www.dz-es.co.uk/forum/showthread.php?t=3280&language=zh-CN

link type is set to REQUEST_URI as i dont use vbSEO (cant stand it)
and forum dir has been tested with the following setins blank,/,/forum/, still not working on all 3 so do you have any ideas what could the problem be

//EDIt

and javascript option is off

t.uzuner
08-21-2009, 09:53 PM
Do you have tracking URLs on?

yes have tracking is on

NLP-er
08-21-2009, 11:50 PM
Installed and working good. What would the reason be for only allowing guests to view the flags? Also if I rerun my sitemap generator will my Urls increase by 42 times?

And nominated

I don't know ;) Someone was asking for this and I'm making ti for you. Probably someone has bad experiences with old translator and was affraid about cache size and translation time. Since this mod is very fast and old cache is automatically cleansed I see no reasson, but anyone has its own reasons :)
Your sitemap will have somesthing about 42 times more links. Probably not exactly - I'm not sure does it create translation urls only for threads or for all existing urls in sitemap. Check it ;) I dont remember. Also if you afraid you can always dissable some languages :)

And thanks for monimation :)

NLP-er
08-21-2009, 11:53 PM
ok then lets keep it simple. ive installed the mod. v2.0 uploaded all items to forum root folder. so no problems there but when i click on a flag its not working its only giveing me a white blank page now ive messed with the setings abit and still can not get it to work.

for instance http://www.dz-es.co.uk/forum/showthread.php?t=3280&language=zh-CN

link type is set to REQUEST_URI as i dont use vbSEO (cant stand it)
and forum dir has been tested with the following setins blank,/,/forum/, still not working on all 3 so do you have any ideas what could the problem be

//EDIt

and javascript option is off

It is clearly written in param description that forum home cannot end by / use /forum and please read carefully descriptions :)
Also - did you set your default language?
Also - make sure you have CURL installed (most probably problem is because you don't) - it is described in first post :)

NLP-er
08-22-2009, 12:05 AM
yes have tracking is on

Ok - PM me all the details with description of problem, link(s), and configuration settings. Also I assume that you are using last version available.

NLP-er
08-22-2009, 12:17 AM
2.0.1 RELEASED

- Added direction changing support for Hebrew.
- Small bug fixed.

Also...
My mod doesn't have 5 stars :(:(:( Bu.

mike2902
08-22-2009, 02:41 AM
If someone joins my board and posts in their language while using this, will it translate back to the default language. that would be awesome.

Also in order to keep updated with the most current version do we have to Upload the new files to the server or import the new XML product or do we do both?

yahoooh
08-22-2009, 03:41 AM
the new release work perfect to show url langiage related to page in flag
in vba dyna and other addon it is work

but still try to make the rewrite roles for it so it will not give 404 error or redirect to the origin page but i am tired and if i fix the category the entry page broken and if i fix the entry the category page broken

i need to make the new seo work for it and this is the httaccess:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([a-zA-Z_0-9\-]+)/robots\.txt$ robots.txt [QSA,L]
RewriteRule ^members/page([0-9]+).html$ index.php?page=$1 [QSA,L]
RewriteRule ^whatsnew/entries/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newentries&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/entries/(([0-9]?|-)+/?)$ browsecategory.php?do=newentries&cutoffdate=$1 [QSA,L]
RewriteRule ^whatsnew/posts/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newposts&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/posts/(([0-9]?|-)+/?)$ browsecategory.php?do=newposts&cutoffdate=$1 [QSA,L]
RewriteRule ^whatspopular/([a-zA-Z_0-9\-]+)/$ browsecategory.php?do=popentries&orderby=$1 [QSA,L]
RewriteRule ^members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?do=member&userrewrite=$1&page=$2 [QSA,L]
RewriteRule ^members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?do=member&userrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?userrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?userrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/(([a-zA-Z_0-9]|-)+)/$ showentry.php?entryrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/epage([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&epage=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?catrewrite=$1&page=$2 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/?$ browsecategory.php?catrewrite=$1 [QSA,L]

any help plz

yahoooh
08-22-2009, 04:36 AM
i make Add language parameter to URL (i.e. 'address?language=en') as option now untill i found rewrite roles to support vba dyna in subdomain
any help will be thanked


also
this new version 2.0.1 fix the links in flags and language as it was on my site

not there are little bug i think :

when you visit this page: in other language:
http://links.alwatanyh.com/%D8%AC%D8%A7%D9%85%D8%B9%D8%A7%D8%AA-152/?language=en

it will not give language parameter for any link that use vbseo to rewrite for example user name see how it is
and also all links in navbar and header that depend on vbseo

but
if you go to main page
the opposite thing occur
all links not related to vbseo will not get the language parameter in its link
click here: http://www.alwatanyh.com/change the language and see the block in the middle that depend on vba dyna wheich is not rewrite by vbseo

any help to make the track make all links with language parameter to fix thsll issue


and plz if any one has help to rewrite roles for vba dyna or vba links to support the new seo appear
plz do not hesitate to help us

thank u

BusterHymens
08-22-2009, 04:55 AM
I installed this and now no one can login. I have disabled it for now. Anyone else have this problem?

NLP-er
08-22-2009, 05:35 AM
If someone joins my board and posts in their language while using this, will it translate back to the default language. that would be awesome.

Also in order to keep updated with the most current version do we have to Upload the new files to the server or import the new XML product or do we do both?

Now it is working only for displaying not for saving messages. But it was already suggested and I have in on my TODO list :)

In every update make full update (import and upload).

NLP-er
08-22-2009, 05:36 AM
the new release work perfect to show url langiage related to page in flag
in vba dyna and other addon it is work

but still try to make the rewrite roles for it so it will not give 404 error or redirect to the origin page but i am tired and if i fix the category the entry page broken and if i fix the entry the category page broken

i need to make the new seo work for it and this is the httaccess:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([a-zA-Z_0-9\-]+)/robots\.txt$ robots.txt [QSA,L]
RewriteRule ^members/page([0-9]+).html$ index.php?page=$1 [QSA,L]
RewriteRule ^whatsnew/entries/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newentries&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/entries/(([0-9]?|-)+/?)$ browsecategory.php?do=newentries&cutoffdate=$1 [QSA,L]
RewriteRule ^whatsnew/posts/([0-9]+)/page([0-9]+).html$ browsecategory.php?do=newposts&cutoffdate=$1&page=$2 [QSA,L]
RewriteRule ^whatsnew/posts/(([0-9]?|-)+/?)$ browsecategory.php?do=newposts&cutoffdate=$1 [QSA,L]
RewriteRule ^whatspopular/([a-zA-Z_0-9\-]+)/$ browsecategory.php?do=popentries&orderby=$1 [QSA,L]
RewriteRule ^members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?do=member&userrewrite=$1&page=$2 [QSA,L]
RewriteRule ^members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?do=member&userrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?userrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/members/(([a-zA-Z_0-9]|-)+/?)$ browsecategory.php?userrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/(([a-zA-Z_0-9]|-)+)/$ showentry.php?entryrewrite=$2&catrewrite=$1 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/page([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&page=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/([a-zA-Z_0-9\-]+)/epage([0-9]+).html$ showentry.php?entryrewrite=$2&catrewrite=$1&epage=$3 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/page([0-9]+).html$ browsecategory.php?catrewrite=$1&page=$2 [QSA,L]
RewriteRule ^([a-zA-Z_0-9\-]+)/?$ browsecategory.php?catrewrite=$1 [QSA,L]

any help plz

As I PM to you I can look on this dyna at the beggining of next month. Today I'm going home for a weekend :) And next week I'm very busy :)

Also I'm glad thati it works better for you :)

NLP-er
08-22-2009, 05:39 AM
I installed this and now no one can login. I have disabled it for now. Anyone else have this problem?

This mod should do nothing on nottranslated pages.
Please PM me link to your forum with this problem description :)

NLP-er
08-22-2009, 05:46 AM
i make Add language parameter to URL (i.e. 'address?language=en') as option now untill i found rewrite roles to support vba dyna in subdomain
any help will be thanked


also
this new version 2.0.1 fix the links in flags and language as it was on my site

not there are little bug i think :

when you visit this page: in other language:
http://links.alwatanyh.com/%D8%AC%D8%A7%D9%85%D8%B9%D8%A7%D8%AA-152/?language=en

it will not give language parameter for any link that use vbseo to rewrite for example user name see how it is
and also all links in navbar and header that depend on vbseo

but
if you go to main page
the opposite thing occur
all links not related to vbseo will not get the language parameter in its link
click here: http://www.alwatanyh.com/change the language and see the block in the middle that depend on vba dyna wheich is not rewrite by vbseo

any help to make the track make all links with language parameter to fix thsll issue


and plz if any one has help to rewrite roles for vba dyna or vba links to support the new seo appear
plz do not hesitate to help us

thank u

It is working like it is programed - rewrites only links from same domain - you have subdomains there and this is the problem.
I can make it supported - just forgot about this isues ;)

Megatr0n
08-22-2009, 10:07 AM
NLP-er, with the new update which, files do we have to overwrite?

yahoooh
08-22-2009, 03:27 PM
It is working like it is programed - rewrites only links from same domain - you have subdomains there and this is the problem.
I can make it supported - just forgot about this isues ;)

could you make it support subdomain in track so it would fix this small issue
and then we wait you after you finish your buzy time

by the way
your support is perfect
and thank u for all things

BusterHymens
08-23-2009, 03:44 AM
Nevermind I figured it out. The only thing I dont understand is the directions to change the vbseo.php file Im still confused on where to add the first line and what to do after adding that.

imported_silkroad
08-23-2009, 06:41 AM
Hey T2x,

Please post or PM your PauPal account email address. I am running your t2x_vbseo.php code for a few days, and it is running flawlessly. Thank you very much for your heroic efforts on this seo code.

Cheers!

Lee G
08-23-2009, 11:39 AM
Just tried the latest version. It sets up the missing data base OK, does all the rewrites OK.

The only problem found now is on forum home, when you choose a language flag and google returns a 404 page not found.

All the internal pages translate well and the cache problem is now resolved :up:

ForexFox
08-23-2009, 01:02 PM
YES :) I found solution and it is fixed :)

I still have the frontpage "bug" (not showing flags) with 201 installed, what was exactly causing the flags from not showing on frontpage?

yahoooh
08-23-2009, 03:24 PM
this is arab flag becuas ethe flag you use is not related to arabic

jaryx
08-23-2009, 05:44 PM
this is arab flag becuas ethe flag you use is not related to arabic

Your flag is little too big. :)

See below for other properly flags. I think so ;)

Arabic, Catalan, Czech, Estonian, Persian, Galician, Slovenian, Filipino, Vietnamese, Serbian

yahoooh
08-23-2009, 07:57 PM
Your flag is little too big. :)

See below for other properly flags. I think so ;)

Arabic, Catalan, Czech, Estonian, Persian, Galician, Slovenian, Filipino, Vietnamese, Serbian

thank u
about persian flag i think the old one is more related to persian

NLP-er
08-24-2009, 03:01 AM
NLP-er, with the new update which, files do we have to overwrite?

In each update the best way it is to upload everything again and import product again. Mostly you can skip flags, but there are aso changes sometimes.

NLP-er
08-24-2009, 03:06 AM
could you make it support subdomain in track so it would fix this small issue
and then we wait you after you finish your buzy time

by the way
your support is perfect
and thank u for all things

Of course :) I already have corrected code.

I plan to make one more change before release. Some forums have vbSEO configured in way, where forum id acts like directory so now if some one is going to forum /21/ then it is wrongly recognized as language. I already corrected rule in FAQ, but also have to made changes in T2x code.

But... It is not about plans but users needs - so ok :) Next release in few minutes - there will be new configuration parameter where you can set your forum main domain. So every obsolete link which will include it will be tracked.

NLP-er
08-24-2009, 03:10 AM
2.0.2 RELEASED

Added option to set your forum main domain for tracking URL's in subdomains

NLP-er
08-24-2009, 03:12 AM
Nevermind I figured it out. The only thing I dont understand is the directions to change the vbseo.php file Im still confused on where to add the first line and what to do after adding that.

You don't have to made ANY changes in vbseo.php file. Please fallow installaction instructions and description of Translation links type parameter.

NLP-er
08-24-2009, 03:16 AM
Just tried the latest version. It sets up the missing data base OK, does all the rewrites OK.

The only problem found now is on forum home, when you choose a language flag and google returns a 404 page not found.

All the internal pages translate well and the cache problem is now resolved :up:

Probably you have wrong .htaccess rules. Go to first post and check it. Also - if you did any changes in vbseo.php file you have to undo it.

If it still happens - please PM me your forum link :) I will look there :)

NLP-er
08-24-2009, 03:19 AM
I still have the frontpage "bug" (not showing flags) with 201 installed, what was exactly causing the flags from not showing on frontpage?

Only flags or all images? Make sure you have appropriate .htaccess file (go to first post and check it) also undo any changes in vbseo.php file if were done.

NLP-er
08-24-2009, 03:21 AM
Your flag is little too big. :)

See below for other properly flags. I think so ;)

Arabic, Catalan, Czech, Estonian, Persian, Galician, Slovenian, Filipino, Vietnamese, Serbian

Thanks - I will include changes in next release :)

NLP-er
08-24-2009, 03:23 AM
thank u
about persian flag i think the old one is more related to persian

Old one will stay for persian.

Any other flag should be changed or it is all? :)

VonDoom
08-24-2009, 03:50 AM
Good Stuff. A+ *Installed*

Losko
08-24-2009, 01:09 PM
I uninstalled the mod because i have problems with links seo :(

yahoooh
08-24-2009, 04:07 PM
after upgrade to 2.0.2

i get this message in flags option in setting:
An error occurred while processing the bitfield files, the following information was returned

also
about doman name
i put :alwatanyh.com

and it works perfect

imported_silkroad
08-24-2009, 04:15 PM
I uninstalled the mod because i have problems with links seo :(

What problem is that?

"links seo" ??

You mean with vBadvanced links add-on?

NLP-er
08-25-2009, 03:29 AM
I uninstalled the mod because i have problems with links seo :(

Please PM me details with url to your forum.

NLP-er
08-25-2009, 03:30 AM
after upgrade to 2.0.2

i get this message in flags option in setting:
An error occurred while processing the bitfield files, the following information was returned

also
about doman name
i put :alwatanyh.com

and it works perfect

ALREADY CORRECTED IN 2.0.3

About bitfield - I also have it. I will check and made new release :) Thanks for note :)

NLP-er
08-25-2009, 03:36 AM
2.0.3 RELEASED

Quick bug fixing (issue with bitfields in options panel)

Britmovie
08-25-2009, 08:14 AM
Can I ask...
Forum directory box

If i have a domain www.britmovie.net and the forum is at www.britmovie.net/britforum

do I put /britforum in this box?

RedHacker
08-25-2009, 08:34 AM
Problem with Fatal error: Call to undefined function: iconv() in /includes/vbenterprisetranslator_functions.php on line 586

Megatr0n
08-25-2009, 09:39 AM
Michal, if this is a quick bug fix can you clarify which, files we have to overwrite? :)

Dr.LoVe
08-25-2009, 09:47 AM
Really Great MOD

But there is one problem

When i use arabic language you said

It'll - Reverse page direction for Arabic and Persian languages

But thing change the page doesn't Reversing :S

You can try here

http://www.forum.simple-nlp.pl/ar/

It wouldn't Reverse it must be in the right side

VonDoom
08-25-2009, 09:53 PM
All i get is all empty templates when clicking any flag. Forum works fine until i click a flag then all i get is this.. Any Ideas???

https://vborg.vbsupport.ru/external/2009/08/23.jpg

RedHacker
08-25-2009, 10:14 PM
Problem with Fatal error: Call to undefined function: iconv() in /includes/vbenterprisetranslator_functions.php on line 586

Whats the problem.....?

merkaz
08-25-2009, 11:22 PM
Whats the problem.....?

You need iconv installed in your server .

merkaz
08-25-2009, 11:23 PM
All i get is all empty templates when clicking any flag. Forum works fine until i click a flag then all i get is this.. Any Ideas???

https://vborg.vbsupport.ru/external/2009/08/23.jpg

Make sure you have Curl enable on you server .

VonDoom
08-26-2009, 03:55 AM
Make sure you have Curl enable on you server .

It is.. Any other ideas? Anybody? :D

RedHacker
08-26-2009, 04:45 AM
You need iconv installed in your server .

What is iconv ...?

imported_silkroad
08-26-2009, 06:59 AM
Hey NPL-er!

FYI, in case you did not see this:

Seems that Microsoft Translation API is available :D

http://msdn.microsoft.com/en-us/library/dd638310.aspx

Though language differences may still hinder worldwide communication, Microsoft has worked consistently to bridge the gap by increasing the quality and accessibility of machine translators. These automated interpreters are fast becoming necessary tools to increase accessibility to products, services, and global social networking. How can developers implement the Microsoft Translator into a website or application? There are three easy techniques for PHP developers: the Web widget, AJAX, and HTTP methods.

imported_silkroad
08-26-2009, 07:06 AM
Also, here is the link to get a Microsoft Translate AJAX API key:

http://www.microsofttranslator.com/Dev/Ajax/

Joppe111
08-26-2009, 02:17 PM
Hi NLP-er!

We have installed this mod and I am really excited about it as I belive it can increase traffic quit a lot! But - there are some problems....

As far as I can see, the translations are NOT cached - or more possibly - it ignores to fetch the cached translation and always makes a query to Google. It simply isn't any difference in time when opening a page that has been opened previously compared to the first time.

If I enable more than one language the mod causes MySQL to be overloaded. The site has quit a lot of traffic but I suspect that the main problem is when search engine bots are opening many pages to be translated. If all languages are enabled it can take more than a minute to get the page translated and fully rendered. It will also cause tons of MySQL errors and the whole forum becomes unresponsive.

When testing with just one language, it still takes approx the double time for a previously translated page to be fully loaded compared to a "original page". Example: http://www.experiencefestival.com/forum/open-oneness-forums/272688-collapse-matrix-world-order-alex-kochkin-august-15-a.html

To open and load the "original page", i.e. the original English page, takes about 4-5 seconds. To open the Swedish translation, when only having one language enabled, will take double the time, 9-10 seconds, regardless if it has been opened before. When having 5-6 languages enabled it will take 20-30 seconds. When having all languages enabled the whole site gets unstable.

From what I can understand the mod is actually writing to MySQL, but, it looks like it fails to see that a page is cached and will always make a query to Google. I guess that the reason for MySQL-errors is that to many requests for writing to MySQL is made when all or several languages are enabled, and I guess that the reason for the long wait for the translated page is because many languages enabled means a lot of queries to Google., ie it becomes a long queue to Google.

From what I can see all settings in AdminCP is as they should:

?Use cache? is set to yes
?Cache Time To Live? is set to 90 days
?Select grouped translations? is now Yes, have tested with No but it doesn?t make any difference
?Cache details? is set to all languages

I have now only Swedish and German enabled but it takes forever to open an already translated page... What is wrong???

Neutral Singh
08-26-2009, 04:11 PM
Dear NLP,

There is a small bug in your demo website...

Once i clicked the one of the translation icons... it makes the language change to the selected one, but if i try to again change the lanuage to another one, it shows "Page Not Found".

Suppose i choose /en/ for English Language and then i choose /hi/ for Hindi, it shows a Page not found error... needs a quick fix... and we are good to go... amazing stuff... you are my hero...

NLP-er
08-26-2009, 04:30 PM
Can I ask...
Forum directory box

If i have a domain www.britmovie.net and the forum is at www.britmovie.net/britforum

do I put /britforum in this box?

Yes

NLP-er
08-26-2009, 04:34 PM
Problem with Fatal error: Call to undefined function: iconv() in /includes/vbenterprisetranslator_functions.php on line 586

Make sure you have php PHP 4 >= 4.0.5, PHP 5 (http://pl.php.net/manual/en/function.iconv.php) and make sure iconv is installed in your php. More: http://pl.php.net/iconv

NLP-er
08-26-2009, 04:35 PM
Michal, if this is a quick bug fix can you clarify which, files we have to overwrite? :)

If you had previous version then just import new product file.

NLP-er
08-26-2009, 04:38 PM
Really Great MOD

But there is one problem

When i use arabic language you said

It'll - Reverse page direction for Arabic and Persian languages

But thing change the page doesn't Reversing :S

You can try here

http://www.forum.simple-nlp.pl/ar/

It wouldn't Reverse it must be in the right side

I don't know what you mean - it is reversed. Even scroll bar is on left side. It works fine :)

Note that browser is responsible for reversing - mod just give a hint that it should be done. Opera supports it - which browser are you using?

NLP-er
08-26-2009, 04:40 PM
All i get is all empty templates when clicking any flag. Forum works fine until i click a flag then all i get is this.. Any Ideas???

https://vborg.vbsupport.ru/external/2009/08/23.jpg

Forum link please.

Also - dissable cache and check results.

And tell me which kind of links are you using?

NLP-er
08-26-2009, 04:43 PM
Hey NPL-er!

FYI, in case you did not see this:

Seems that Microsoft Translation API is available :D

http://msdn.microsoft.com/en-us/library/dd638310.aspx

Thanks for note :) Added in TODO

NLP-er
08-26-2009, 05:12 PM
Hi NLP-er!

We have installed this mod and I am really excited about it as I belive it can increase traffic quit a lot! But - there are some problems....

As far as I can see, the translations are NOT cached - or more possibly - it ignores to fetch the cached translation and always makes a query to Google. It simply isn't any difference in time when opening a page that has been opened previously compared to the first time.

What was your way of mesurment? How are you sure that page wasn't translated before? Dissable cache - make several tests. Enable cache - make several tests. Take average time for booth and let me know about your results :)

If I enable more than one language the mod causes MySQL to be overloaded. The site has quit a lot of traffic but I suspect that the main problem is when search engine bots are opening many pages to be translated. If all languages are enabled it can take more than a minute to get the page translated and fully rendered. It will also cause tons of MySQL errors and the whole forum becomes unresponsive.

You can choose which languages you want to have cached or dissable cache at all. It is fully configurable.
"can take" - does it means that you checked it or you are worried? If you checked it - configure your cache appropriatelly to your needs. If you are worried - make stress test and check it.
"It will cause" - you expect this or you had this? What errors you are writing about - give me error log. I cannot help with your actual description.

When testing with just one language, it still takes approx the double time for a previously translated page to be fully loaded compared to a "original page". Example: http://www.experiencefestival.com/forum/open-oneness-forums/272688-collapse-matrix-world-order-alex-kochkin-august-15-a.html

It is not a problem. Try to find faster translation mod :) Translation takes time. Even from cache. And alvays will take longer that oryginal page, because oryginal page is generated first and then translated. Mod will not translate something which wasn't generated first.

To open and load the "original page", i.e. the original English page, takes about 4-5 seconds. To open the Swedish translation, when only having one language enabled, will take double the time, 9-10 seconds, regardless if it has been opened before. When having 5-6 languages enabled it will take 20-30 seconds. When having all languages enabled the whole site gets unstable.

There is no any connection between mod speed and number of enabled translations. Mod works same way no mather how many translations you have on. It is your server load. If you cannot stand your traffic I cannot help in that.
I really don't know what are you expecting from me at this point. Please describe me what are your suggestions :)

From what I can understand the mod is actually writing to MySQL, but, it looks like it fails to see that a page is cached and will always make a query to Google. I guess that the reason for MySQL-errors is that to many requests for writing to MySQL is made when all or several languages are enabled, and I guess that the reason for the long wait for the translated page is because many languages enabled means a lot of queries to Google., ie it becomes a long queue to Google.

Once again - what errors?

About cache - go to file vbenterprisetrnslator_functions.php, find function vbet_getFromCache and change every line in this function with return (but not return null) to return 'FROM CACHE';. Upload and you will see which parts are taken from cache (if any). After that undo changes and upload oryginal file.

Enabled language doesn't mean any query to Google. Translation of page - does.

From what I can see all settings in AdminCP is as they should:

”Use cache” is set to yes
”Cache Time To Live” is set to 90 days
”Select grouped translations” is now Yes, have tested with No but it doesn’t make any difference
“Cache details” is set to all languages

I have now only Swedish and German enabled but it takes forever to open an already translated page... What is wrong???

Cannot tell without possiblity to check it.

NLP-er
08-26-2009, 05:14 PM
Dear NLP,

There is a small bug in your demo website...

Once i clicked the one of the translation icons... it makes the language change to the selected one, but if i try to again change the lanuage to another one, it shows "Page Not Found".

Suppose i choose /en/ for English Language and then i choose /hi/ for Hindi, it shows a Page not found error... needs a quick fix... and we are good to go... amazing stuff... you are my hero...

Thanks for note - I had to mess somesthing working on changes. As far as I know it is not included in last release :)

EDITED:
Corrected on site - as I wrote it was my experimetns - production is fine so feel free to install :)

RedHacker
08-26-2009, 05:22 PM
NLP-er can you help me?

NLP-er
08-26-2009, 05:26 PM
NLP-er can you help me?

Already did :)
https://vborg.vbsupport.ru/showpost.php?p=1874856&postcount=388

RedHacker
08-26-2009, 05:35 PM
Already did :)
https://vborg.vbsupport.ru/showpost.php?p=1874856&postcount=388

I had 4.4.9 PHP

NLP-er
08-26-2009, 07:37 PM
I had 4.4.9 PHP

But without iconv installed - I gave you link where you will find install instructions :)

Losko
08-26-2009, 07:45 PM
What problem is that?

"links seo" ??

You mean with vBadvanced links add-on?

Yes I have problems with the mod if set for the links SEO. The problem's in my forum and not by vBadvanced

TurkeySub
08-27-2009, 12:57 AM
HI Guys,

Found a bug/issue:

If you go directly to a page (http://www.gamerslifeline.com/news-announcements/4370-left-4-dead-2-swarming-penny-arcade-expo-pax.html) and then click the translate images, it will refresh back to English.

If you go to the forum root, index.php, then change language and go back to the page, it will be fine.

Maybe an issue with the VBSEO version of the product?

ShawneyJ
08-27-2009, 01:23 AM
great mod, has anyone here noticed an increase in traffic since using this mod???
thnks.

iGuides.ru
08-27-2009, 05:20 AM
Hi. I have installed it, but i have error
https://vborg.vbsupport.ru/external/2009/08/6.png (http://ipicture.ru/)

Konstantinos
08-27-2009, 01:07 PM
when using the new feature site.co/de/forum directs to 404 not found

imported_silkroad
08-27-2009, 01:19 PM
when using the new feature site.co/de/forum directs to 404 not found

I think you should try:

site.com/forum/de/blahblahblah

luksze
08-27-2009, 03:35 PM
Not working for me with vbseo 3.3.0 and vB 3.8.4

TurkeySub
08-27-2009, 03:40 PM
Not working for me with vbseo 3.3.0 and vB 3.8.4

I have it working, what issues you having?

NLP-er
08-27-2009, 04:06 PM
Yes I have problems with the mod if set for the links SEO. The problem's in my forum and not by vBadvanced

PM details with forum link.

NLP-er
08-27-2009, 04:11 PM
HI Guys,

Found a bug/issue:

If you go directly to a page (http://www.gamerslifeline.com/news-announcements/4370-left-4-dead-2-swarming-penny-arcade-expo-pax.html) and then click the translate images, it will refresh back to English.

If you go to the forum root, index.php, then change language and go back to the page, it will be fine.

Maybe an issue with the VBSEO version of the product?

I see why It is - in flag link is not vbSEO link - just normal vB link. What is your setting for links type? Are sure that it is correct?

NLP-er
08-27-2009, 04:15 PM
when using the new feature site.co/de/forum directs to 404 not found

Link please also what are your mod settings?

NLP-er
08-27-2009, 04:16 PM
Not working for me with vbseo 3.3.0 and vB 3.8.4

What kind of support you are expecting with this message? ;)
What happens? Forum link please. Some error messages?... Help me to help you :)

Losko
08-27-2009, 04:23 PM
PM details with forum link.
PM sent yesterday

TurkeySub
08-27-2009, 05:34 PM
I see why It is - in flag link is not vbSEO link - just normal vB link. What is your setting for links type? Are sure that it is correct?

Hi,

I believe so: Create URL's according to SEO link consensus (i.e. '/en/address') (with vbSEO only) - is what I have checked off and .htaccess updated.

RedHacker
08-27-2009, 06:04 PM
NLP-er this mod worked with closed forum.....?

TurkeySub
08-27-2009, 06:52 PM
NLP-er this mod worked with closed forum.....?

As long as your board can contact google you should be fine.

Assuming closed means, passworded or something of the sort.

NLP-er
08-29-2009, 06:19 AM
Hi,

I believe so: Create URL's according to SEO link consensus (i.e. '/en/address') (with vbSEO only) - is what I have checked off and .htaccess updated.

I asked about 'Link Type' not about 'Translation links type'. I mean do you have set: 'REQUEST_URI' or 'VBSEO_URI'?

NLP-er
08-29-2009, 06:20 AM
NLP-er this mod worked with closed forum.....?

What do you mean by 'closed forum'?

NLP-er
08-29-2009, 06:35 AM
PM sent yesterday

Answered :)

NLP-er
08-29-2009, 06:41 AM
Hi. I have installed it, but i have error
http://pic.ipicture.ru/uploads/090827/B3rroLlNHs.png (http://ipicture.ru/)

:D I found reason (by error number 1267) - it is mySQL bug - see here:
http://bugs.mysql.com/bug.php?id=9648

Read mySQL bug discussion to find solution, or change mySQL version to some without this bug :)

Also please give me full error message - maybe I'm able to do somesthing with that.

imported_silkroad
08-29-2009, 10:11 AM
Hey NLP-er,

Here is another thing for your "TODO" list :D

It is pretty easy to integrate Geotargeting by GeoIP into vBulletin.

Basically, you can have an option that when a user visits from a country, say Japan, the page is automatically redirected. For example, search referral visits from Spain, Spanish page is shown etc.

There is an old, unsupported vB mod that, with a minimal amount of work, can easily be integrated with this mod, and they fit together very nicely too :D

https://vborg.vbsupport.ru/showthread.php?p=1532639

NLP-er
08-29-2009, 02:12 PM
Hey NLP-er,

Here is another thing for your "TODO" list :D

It is pretty easy to integrate Geotargeting by GeoIP into vBulletin.

Basically, you can have an option that when a user visits from a country, say Japan, the page is automatically redirected. For example, search referral visits from Spain, Spanish page is shown etc.

There is an old, unsupported vB mod that, with a minimal amount of work, can easily be integrated with this mod, and they fit together very nicely too :D

https://vborg.vbsupport.ru/showthread.php?p=1532639

Added in TODO list :D
But I think that it will be better and faster to use browser language settings instead of IP. Browsers send in heades language preferences :)

jaryx
08-29-2009, 04:21 PM
Added in TODO list :D
But I think that it will be better and faster to use browser language settings instead of IP. Browsers send in heades language preferences :)

Or announcements/pop-up with ask for change to preferred browser language.
People like to have free choice :)

imported_silkroad
08-29-2009, 04:41 PM
Added in TODO list :D
But I think that it will be better and faster to use browser language settings instead of IP. Browsers send in heades language preferences :)

Not always.

We read the log files :D

imported_silkroad
08-29-2009, 04:43 PM
Or announcements/pop-up with ask for change to preferred browser language.
People like to have free choice :)

That is why is an "an option" it is up to the forum admin to configure their forum how they like :D

Maybe people don't like pop-us and find them annoying.... that is why there are options :D

NLP-er
08-29-2009, 05:14 PM
Hey NLP-er,

Here is another thing for your "TODO" list :D

It is pretty easy to integrate Geotargeting by GeoIP into vBulletin.

Basically, you can have an option that when a user visits from a country, say Japan, the page is automatically redirected. For example, search referral visits from Spain, Spanish page is shown etc.

There is an old, unsupported vB mod that, with a minimal amount of work, can easily be integrated with this mod, and they fit together very nicely too :D

https://vborg.vbsupport.ru/showthread.php?p=1532639

I already implemented this, but before testing I had to stop. How exactly it should work to still allow users change languages? If I force redirection then user will not be able to see other languages if he want. Also what with spiders - does spiders are using language headers?...

Just forcing redirection is weak strategy. User will use flag and will be redirected back to his browser settings...

NLP-er
08-29-2009, 05:30 PM
Not always.

We read the log files :D

What log files have common with that? How it could be used to determine user language and how possibly it can be faster than just check of $_SERVER["HTTP_ACCEPT_LANGUAGE"] with simple parsing?

NLP-er
08-29-2009, 05:32 PM
Or announcements/pop-up with ask for change to preferred browser language.
People like to have free choice :)

Good idea :)

imported_silkroad
08-29-2009, 05:44 PM
I already implemented this, but before testing I had to stop. How exactly it should work to still allow users change languages? If I force redirection then user will not be able to see other languages if he want. Also what with spiders - does spiders are using language headers?...

Just forcing redirection is weak strategy. User will use flag and will be redirected back to his browser settings...

Hey! I agree there are numerous issues and it can be complicated, maybe too complicated?

So, maybe it is too complicated to think of all the options and catch all the exceptions at this time?

I need to think about this more, since it is more complicated than first meets the eye D

Maybe useful for serving ads or other widgets in context, etc, but more difficult for page translations?

imported_silkroad
08-29-2009, 05:46 PM
What log files have common with that? How it could be used to determine user language and how possibly it can be faster than just check of $_SERVER["HTTP_ACCEPT_LANGUAGE"] with simple parsing?

Let me think about this... .thanks.

yahoooh
08-29-2009, 09:37 PM
i still need to make the links :URL's according to SEO link consensus (i.e. '/en/address')

for vba links , vbgallery and other addon that in subdomain

plz nlp try to test them in subdomain and see how it works
vba links and dyna have .htacssess and seo
so they need some test

NLP-er
08-29-2009, 11:45 PM
That is why is an "an option" it is up to the forum admin to configure their forum how they like :D

Maybe people don't like pop-us and find them annoying.... that is why there are options :D

Also good point. I will made it fully configurable. Off, forced, and with asking. Also it will work only for first request in session - so user will be able to go wherever he wants and change language, even if he has forced redirection at first.

NLP-er
08-29-2009, 11:50 PM
i still need to make the links :URL's according to SEO link consensus (i.e. '/en/address')

for vba links , vbgallery and other addon that in subdomain

plz nlp try to test them in subdomain and see how it works
vba links and dyna have .htacssess and seo
so they need some test

Give me place to test and I will work on this. If you don't like to share access to your forum, then just set up some test forum with those things in subdomain and PM me access details.

remotay
08-30-2009, 12:00 AM
Wow. this plugin seems very powerful. Works like the WP-Global translator I see =P

NLP-er
08-30-2009, 12:19 AM
In next release I will abandon T2x code for vbSEO integration. It will stay commented to give him credit for first integration, but not used anymore. It will be abandoned because: there was bug (didn't work for vbSEO setting where forum id act as directory), it is twisted and hard to maintain.

I already made my own solution. Safe and easy (T2x solution has 90 lines of code - mine has 5 :D). It is already tested on 2 forums and will be included in next release. My solution is a bit faster (you will not feel it, but server do less things to recognize seo translation links) and changes with .htaccess will be easier (only add new rules - no changes of existing rules like now). So for those who already have mod installed it can be little inconvenience - you will have to change .htaccess again, but this is the last time and for new installation it will be much easier :)

Also I would like to add possibility to made translations SEO links for forums without vbSEO. Just need a playground. So if someone wants this functionality - give me access to some test forum without vbSEO :)

NLP-er
08-30-2009, 12:21 AM
Wow. this plugin seems very powerful. Works like the WP-Global translator I see =P

Like it? :D - Nominate it! :D

Sweeks
08-30-2009, 05:27 AM
In next release I will abandon T2x code for vbSEO integration. It will stay commented to give him credit for first integration, but not used anymore. It will be abandoned because: there was bug (didn't work for vbSEO setting where forum id act as directory), it is twisted and hard to maintain.

I already made my own solution. Safe and easy (T2x solution has 90 lines of code - mine has 5 :D). It is already tested on 2 forums and will be included in next release. My solution is a bit faster (you will not feel it, but server do less things to recognize seo translation links) and changes with .htaccess will be easier (only add new rules - no changes of existing rules like now). So for those who already have mod installed it can be little inconvenience - you will have to change .htaccess again, but this is the last time and for new installation it will be much easier :)

Also I would like to add possibility to made translations SEO links for forums without vbSEO. Just need a playground. So if someone wants this functionality - give me access to some test forum without vbSEO :)

Awesome so is it best to turn off seo links for now?

imported_silkroad
08-30-2009, 08:37 AM
Also good point. I will made it fully configurable. Off, forced, and with asking. Also it will work only for first request in session - so user will be able to go wherever he wants and change language, even if he has forced redirection at first.

Perfect. :D I was thinking the same thing but it seemed too much to ask you to do :o Thank so much for this idea!

NLP-er
08-30-2009, 08:40 AM
Awesome so is it best to turn off seo links for now?

Not at all. In next release link will look same. Also mentioned bug is visible only for forums which have specific vbSEO configuration (forums act like dictionaries but not by name - just by id). Only in this case seo crasches. Next release will be safe for all configurations (but still have no playground to test it in forum with vbSEO and directory in URL...)

imported_silkroad
08-30-2009, 10:18 AM
Hey NLP-er,

In case you did not see this:

http://us3.php.net/manual/en/book.geoip.php

DR.vBProf
08-30-2009, 02:35 PM
çalışmıyor sanırım vbseo 3.3.0 ve vb 382 desteği yok

LoveStream
08-30-2009, 04:44 PM
Dear.

I notice that I set the latest version but this conflict with photopost.

I didn't see the code of photopost what is the reason.

Here, I got the error message from the photopost header. I use the same template in the gallery with forum.


Fatal error: [] operator not supported for strings in /home/hosting_users/wavero/www/gallery/index.php on line 187


I quoted the portion of error from index.php and marked with red color.
if ( $Globals['undercat'] == "yes" ) {
// Lets get the Recent Comments
$numcompal = ($Globals['numcompal'] + 5);
$queryz = ppmysql_query("SELECT c.username,c.userid,c.cat,c.photo,c.comment,p.bigi mage,p.cat,p.storecat,p.userid,p.width,p.height
FROM {$Globals['pp_db_prefix']}comments c
LEFT JOIN {$Globals['pp_db_prefix']}photos p ON p.id=c.photo
WHERE comment != '' ORDER BY c.date DESC LIMIT $numcompal", $link);
$numfound = 0;

while ( list($cache['comments']['username'][$numfound], $cache['comments']['userid'][$numfound], $cache['comments']['cat'][$numfound], $cache['comments']['lcphoto'][$numfound], $comcomment, $thumbimg, $thumbcat, $storecat, $thumbuid, $thumbw, $thumbh ) = mysql_fetch_row($queryz)) {
if ( $storecat != 0 ) $thumbcat = $storecat;

// Clean up html conversions
$comcomment = un_htmlspecialchars($comcomment);

// Strip out BB codes
/* --------------- this error line ---------------
$find[] = '#\[.*/?\]#siU'; $replace[] = '';
--------------------------------------------------------------- end of error line */

$comcomment = preg_replace($find, $replace, $comcomment);

$cache['comments']['cat'][$numfound] = $thumbcat;
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 ? substr($comcomment,0,100)."..." : $comcomment );
$cache['comments']['thumblink'][$numfound] = get_imagethumb( $thumbimg, $thumbcat, $thumbuid, 1, 0, 1, $thumbw, $thumbh );

// Rotated? We need unrotated...
if ( $Globals['rotatel'] > 0 || $Globals['rotatep'] > 0 )
$cache['comments']['thumblink'][$numfound] = str_replace("/thumbs/", "/mini/", $cache['comments']['thumblink'][$numfound]);

if ( $Globals['spider'] == "yes" ) $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php/photo/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
else $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php?photo={$cache['comments']['lcphoto'][$numfound]}&amp;cat={$cache['comments']['cat'][$numfound]}";

if ( $numfound == $Globals['numcompal'] ) break;
$numfound++;
}
}


Yours.

CThiessen
08-31-2009, 01:17 PM
Hi thanks for that great mod.

But I do have two issues.
The version “address?language=en” is working fine.
But if I try to use “/en/address” it is nor working.

The links I do have are wrong. /en/forum/… instead of „/forum/en/…“
I do have:
vBSEO
.htaccess with the modifications in the /forum/ directory

I put in “/forum” at the Forum directory section, but it look like that is totally ignored what I put in there.


And a little one:
“ar” means Arabic but the flag is from Argentina (http://en.wikipedia.org/wiki/File:Flag_of_Argentina.svg)

Christian

Dr.LoVe
08-31-2009, 05:50 PM
I don't know what you mean - it is reversed. Even scroll bar is on left side. It works fine :)

Note that browser is responsible for reversing - mod just give a hint that it should be done. Opera supports it - which browser are you using?

Maybe , but i don't use Opera

i'll install it on my VB and also i'll tell you

thanx

CThiessen
09-01-2009, 06:43 AM
Good morning,
some News from Google:
http://googleblog.blogspot.com/2009/08/google-translate-now-speaks-51.html
Today, we're excited to announce that we've added nine new languages to Google Translate (http://translate.google.com/): Afrikaans (http://translate.google.com/?sl=en&tl=af), Belarusian (http://translate.google.com/?sl=en&tl=be), Icelandic (http://translate.google.com/?sl=en&tl=is), Irish (http://translate.google.com/?sl=en&tl=ga), Macedonian (http://translate.google.com/?sl=en&tl=mk), Malay (http://translate.google.com/?sl=en&tl=ms), Swahili (http://translate.google.com/?sl=en&tl=sw), Welsh (http://translate.google.com/?sl=en&tl=cy) and Yiddish (http://translate.google.com/?sl=en&tl=yi). That means that Google Translate now supports 51 languages and 2550 language pairs ? including all 23 official EU languages (http://ec.europa.eu/education/languages/languages-of-europe/doc135_en.htm).

Christian

imported_silkroad
09-02-2009, 08:37 AM
Good morning, .... some News from Google:


It might be better if Google Translate would use the ISO 3166-1 Alpha 2 standard for country codes (http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) when possible.

For example, Google uses "JA" for Japanese, but the country code for Japan is actually "JP". Google uses "SV" for Swedish, but the ISO standard for Sweden is "SE" (SV is El Salvador) . Google uses "DA" for Danish, but the ISO standard for Denmark is "DK" etc.

I tried to comment about this on the official Google blog, but they (Google) don't permit comments. I realize that the 2 digit country codes do not map directly to languages, but the way Google does it does not make any sense to me, especially for country/language pairs such as Japan/Japanese, Denmark/Danish, Sweden/Swedish, etc.

:confused::confused::confused:

NLP-er
09-02-2009, 09:46 AM
Sorry guys - I'm very busy this and next week.

I will read each post and PM when I will find time, answer all the questions and give support where it will be still needed.

Right now I just have to take care about own issues :)

Sp32
09-02-2009, 05:32 PM
all forums are coming up empty, no links are being shown and no threads on forumhome are coming up, I uninstalled vbseo and error still occured, really want this mod :(

CThiessen
09-02-2009, 06:47 PM
Hi,
did you set your Forum Forum language?
If not this is a reason why the pages are empty.

Christian

NLP-er
09-03-2009, 07:29 AM
Dear.

I notice that I set the latest version but this conflict with photopost.

I didn't see the code of photopost what is the reason.

Here, I got the error message from the photopost header. I use the same template in the gallery with forum.


Fatal error: [] operator not supported for strings in /home/hosting_users/wavero/www/gallery/index.php on line 187


I quoted the portion of error from index.php and marked with red color.
if ( $Globals['undercat'] == "yes" ) {
// Lets get the Recent Comments
$numcompal = ($Globals['numcompal'] + 5);
$queryz = ppmysql_query("SELECT c.username,c.userid,c.cat,c.photo,c.comment,p.bigi mage,p.cat,p.storecat,p.userid,p.width,p.height
FROM {$Globals['pp_db_prefix']}comments c
LEFT JOIN {$Globals['pp_db_prefix']}photos p ON p.id=c.photo
WHERE comment != '' ORDER BY c.date DESC LIMIT $numcompal", $link);
$numfound = 0;

while ( list($cache['comments']['username'][$numfound], $cache['comments']['userid'][$numfound], $cache['comments']['cat'][$numfound], $cache['comments']['lcphoto'][$numfound], $comcomment, $thumbimg, $thumbcat, $storecat, $thumbuid, $thumbw, $thumbh ) = mysql_fetch_row($queryz)) {
if ( $storecat != 0 ) $thumbcat = $storecat;

// Clean up html conversions
$comcomment = un_htmlspecialchars($comcomment);

// Strip out BB codes
/* --------------- this error line ---------------
$find[] = '#\[.*/?\]#siU'; $replace[] = '';
--------------------------------------------------------------- end of error line */

$comcomment = preg_replace($find, $replace, $comcomment);

$cache['comments']['cat'][$numfound] = $thumbcat;
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 ? substr($comcomment,0,100)."..." : $comcomment );
$cache['comments']['thumblink'][$numfound] = get_imagethumb( $thumbimg, $thumbcat, $thumbuid, 1, 0, 1, $thumbw, $thumbh );

// Rotated? We need unrotated...
if ( $Globals['rotatel'] > 0 || $Globals['rotatep'] > 0 )
$cache['comments']['thumblink'][$numfound] = str_replace("/thumbs/", "/mini/", $cache['comments']['thumblink'][$numfound]);

if ( $Globals['spider'] == "yes" ) $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php/photo/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
else $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php?photo={$cache['comments']['lcphoto'][$numfound]}&amp;cat={$cache['comments']['cat'][$numfound]}";

if ( $numfound == $Globals['numcompal'] ) break;
$numfound++;
}
}


Yours.

Hi :) For me this error line have no sense ;) Also cannot imagine how my mod can influence this behaviour, because there are just constant values added to some internal variables. Are you sure that this is the line? Are you sure that this mod causes conflict (dissable it and check does problem still egsists)?

NLP-er
09-03-2009, 07:37 AM
Hi thanks for that great mod.

But I do have two issues.
The version “address?language=en” is working fine.
But if I try to use “/en/address” it is nor working.

The links I do have are wrong. /en/forum/… instead of „/forum/en/…“
I do have:
vBSEO
.htaccess with the modifications in the /forum/ directory

I put in “/forum” at the Forum directory section, but it look like that is totally ignored what I put in there.


And a little one:
“ar” means Arabic but the flag is from Argentina (http://en.wikipedia.org/wiki/File:Flag_of_Argentina.svg)

Christian

Hi thanks for note :)

Setting /forum at the forum directory makes not SEO links working for you :)

SEO links are not tested on forums with directory in URL. I'm still wayting for someone who will set me test forum with vbSEO and directory in URL, or give me access to exicting one. Till then I have no possibility to test it.

So if you want this functionality working for you give me place to implement it. If you don't need it, then case is closed :)

About flags - I know there are also some other wrong flags - It will be corrected in next relese :)

NLP-er
09-03-2009, 07:43 AM
Maybe , but i don't use Opera

i'll install it on my VB and also i'll tell you

thanx

I just checked it also on IE8, Mozilla Firefox and Chrome - everywhere works fine. What kind of browser are you using:confused:

NLP-er
09-03-2009, 07:45 AM
Good morning,
some News from Google:
http://googleblog.blogspot.com/2009/08/google-translate-now-speaks-51.html


Christian

ALREADY ADDED IN 2.1.0

Great thanks :D I will add it in next release :D

NLP-er
09-03-2009, 07:52 AM
It might be better if Google Translate would use the ISO 3166-1 Alpha 2 standard for country codes (http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) when possible.

For example, Google uses "JA" for Japanese, but the country code for Japan is actually "JP". Google uses "SV" for Swedish, but the ISO standard for Sweden is "SE" (SV is El Salvador) . Google uses "DA" for Danish, but the ISO standard for Denmark is "DK" etc.

I tried to comment about this on the official Google blog, but they (Google) don't permit comments. I realize that the 2 digit country codes do not map directly to languages, but the way Google does it does not make any sense to me, especially for country/language pairs such as Japan/Japanese, Denmark/Danish, Sweden/Swedish, etc.

:confused::confused::confused:

Country code and language code are 2 different things. Many countries don't have it's own native language. Ie. Canada speaks french and english. Also there lot of languages than don't have it's own countries (some are dead, or used only in provinces). So again we have 2 different standards for language codes and for countries codes. Are you still sure google doesn't follow standards?

NLP-er
09-03-2009, 07:54 AM
all forums are coming up empty, no links are being shown and no threads on forumhome are coming up, I uninstalled vbseo and error still occured, really want this mod :(

PM me link to your forum and also configuration details for this mod on your forum. I will gladly help you :)

NLP-er
09-03-2009, 08:02 AM
Hi,
did you set your Forum Forum language?
If not this is a reason why the pages are empty.

Christian

Seems like very good advice - configure mod as is described in installation procedure ;)

Live would be so much easier if people just read manuals :D:D:D

Thanks for helping when I'm busy - respect :):up:

Also added this in FAQ - as I remember somebody else also was asking about this, even with screen shots.

CThiessen
09-03-2009, 08:54 AM
Hi,
In the Moment I am changing from Photopost Pro to Photopst Gallery.

Pro: No Errors but translation simply not working
Gallery: Translation is working fine. (Need to Copy the Flags to the Gallery Folder)

Test:
http://Brasil-Web.de/fotos/ (Pro)
http://Brasil-Web.de/Brasilien-Fotos/ (Gallery)

Christian

Sp32
09-03-2009, 09:19 AM
Managed to get it working - Forgot to do admincp settings T_T

Cheers for the awesome mod :-)

mortezax
09-03-2009, 11:19 AM
Veryyy Thank you for Persian Language

NLP-er
09-03-2009, 01:31 PM
HI Guys,

Found a bug/issue:

If you go directly to a page (http://www.gamerslifeline.com/news-announcements/4370-left-4-dead-2-swarming-penny-arcade-expo-pax.html) and then click the translate images, it will refresh back to English.

If you go to the forum root, index.php, then change language and go back to the page, it will be fine.

Maybe an issue with the VBSEO version of the product?

I'm working on new version and wanted to work on your issue, but when I'm going to your link and click translate image, then everything is ok - page is translated...

NLP-er
09-03-2009, 01:36 PM
Hi,
In the Moment I am changing from Photopost Pro to Photopst Gallery.

Pro: No Errors but translation simply not working
Gallery: Translation is working fine. (Need to Copy the Flags to the Gallery Folder)

Test:
http://Brasil-Web.de/fotos/ (Pro)
http://Brasil-Web.de/Brasilien-Fotos/ (Gallery)

Christian

So wee have solution ;)

About first link - need access to be able to help :)

NLP-er
09-03-2009, 01:37 PM
Veryyy Thank you for Persian Language

You are welcome. Veryyy Thank you for nomination, voting and clicking mark as installed :)

NLP-er
09-03-2009, 01:38 PM
Managed to get it working - Forgot to do admincp settings T_T

Cheers for the awesome mod :-)

Great :) Have fun :D

rkm140
09-03-2009, 01:49 PM
Is this an auto translator or is there a way to give the user the choice of which language he/she wants to view the page in?

CThiessen
09-03-2009, 03:09 PM
So wee have solution ;)

About first link - need access to be able to help :)

Hi,
i think the first one will never work with this Mod.
The "pro" is a "stand alone" software with vBulletin Integration.
The "Gallery" is a vBulletin Add on.

So the translation is working with the following Add-ons.

Photopost vBGallery (http://www.photopost.com/featuresphp.html)
vbclassified (http://www.vbclassified.com/)
Arcarde (https://vborg.vbsupport.ru/showthread.php?t=101554&highlight=Arcade)
vBulletin-Glossary (https://vborg.vbsupport.ru/showthread.php?t=188189&highlight=vBGlossary)
... to be continuedIn the Glossary the Links shown in Post for Cross linking are rewritten. In that case the tracking is not working, you are going back to main Language.
But if you use the Glossary and it is well filled, this is very content relevant - and now content in many languages.

Greetings Christian

NLP-er
09-03-2009, 03:15 PM
2.1.0 RELEASED

- 9 new translation languages added!
- Redirect to user language functionality - configurable (disabled, forced, after asking user does he want to be redirected).
- Fixed bug for SEO links with forums acting like directories by id.
- Corrected several flags

UPDATE note: if you use SEO links you must change .htaccess file according to description in first post. If you changed any vbseo.php rules – un-change those.

NLP-er
09-03-2009, 03:32 PM
About 2.1.0 - if you are using vbSEO sitemap generator - rememer to made update there if you want to have new languages in your sitemap. See first post with FAQ for details :)

NLP-er
09-03-2009, 03:35 PM
Is this an auto translator or is there a way to give the user the choice of which language he/she wants to view the page in?

User have choise by clicking translation flag :)

NLP-er
09-03-2009, 03:40 PM
Hi,
i think the first one will never work with this Mod.
The "pro" is a "stand alone" software with vBulletin Integration.
The "Gallery" is a vBulletin Add on.

So the translation is working with the following Add-ons.

Photopost vBGallery (http://www.photopost.com/featuresphp.html)
vbclassified (http://www.vbclassified.com/)
Arcarde (https://vborg.vbsupport.ru/showthread.php?t=101554&highlight=Arcade)
vBulletin-Glossary (https://vborg.vbsupport.ru/showthread.php?t=188189&highlight=vBGlossary)
... to be continuedIn the Glossary the Links shown in Post for Cross linking are rewritten. In that case the tracking is not working, you are going back to main Language.
But if you use the Glossary and it is well filled, this is very content relevant - and now content in many languages.

Greetings Christian

My mod works with vB :) all about this ;) Good that you have Photopost vBGallery :)

Not fully understood issue with glosary. So tracking is working there or not? What mades URL rewrite there? To what format? Tell me how I can see this issue on your forum?

CThiessen
09-03-2009, 03:57 PM
Not fully understood issue with glosary. So tracking is working there or not? What mades URL rewrite there? To what format? Tell me how I can see this issue on your forum?

For all native Links inside the Glossary traking is working.
The Glossary add Links to every word in a Post that is equal to the Title of an Article.
http://brasil-web.de/forum/29709-suche-apartment-pousada-natal-15-11-24-12-a.html

so here somebody write the Word "Natal" this is linkt to the Artikel "Natal".
Link in the Post: http://brasil-web.de/forum/wiki/tag/Natal/?language=plgoes to: http://brasil-web.de/forum/wiki/31-rio-grande-do-norte/769-natal.htmlTranslated:
http://brasil-web.de/forum/29709-suche-apartment-pousada-natal-15-11-24-12-a.html?language=pl
Link in Post:http://brasil-web.de/forum/wiki/tag/Natal/?language=plgoes to: http://brasil-web.de/forum/wiki/31-rio-grande-do-norte/769-natal.htmlThis crosslinking is done by a Java Script.
I think the script is written by Andreas (http://www.vbulletin-germany.org/member.php?u=1) the Admin from VBorg Germany (http://www.vbulletin-germany.org/).

All this links are: rel="nofollow" so this should be no problem for crawlers.

EDIT:
Th Links are created ever in the same manner: "/tag/Word", i think to not slow down the page.
Here:
http://brasil-web.de/forum/29706-suche-grosshaendler-fuer-schmuck-brasilien.html?language=pl
the Word "Amazonas" is linked and tracking is working, because there are 2 Articles for "Amazonas", the River and the State.

In the first example is only one Articel and, and i think, something in the Gallery software is pointing the Article direct and not the Tag.

Christian

rkm140
09-03-2009, 05:11 PM
Is there any way to make language selection and option on sign up?

LoveStream
09-03-2009, 08:33 PM
Hi :) For me this error line have no sense ;) Also cannot imagine how my mod can influence this behaviour, because there are just constant values added to some internal variables. Are you sure that this is the line? Are you sure that this mod causes conflict (dissable it and check does problem still egsists)?

Thank you GOOD coder, ;)

That my error caused by array[] in index.php of photopost. I temporarily fixed to be $replace[] = ''; to $replace = '';. So this time no behavior to halt process loading gallery but I'm not sure what exactly was wrong.

Other previous issue that I posted in my case, there is conflict with other module and plugins that I installed already Tab.Home using YUI. I disabled it have to need to be chosen one.

In your latest 2.1.0 I found that Malay Flags are not shown when I optioned it. Does it only mine?

Have a good day, and I have plan to try your other cute Auto Threads Tags Creators ASAP.

Yours.

NLP-er
09-03-2009, 09:49 PM
For all native Links inside the Glossary traking is working.
The Glossary add Links to every word in a Post that is equal to the Title of an Article.
http://brasil-web.de/forum/29709-suche-apartment-pousada-natal-15-11-24-12-a.html

so here somebody write the Word "Natal" this is linkt to the Artikel "Natal".
Link in the Post: http://brasil-web.de/forum/wiki/tag/Natal/?language=plgoes to: http://brasil-web.de/forum/wiki/31-rio-grande-do-norte/769-natal.htmlTranslated:
http://brasil-web.de/forum/29709-suche-apartment-pousada-natal-15-11-24-12-a.html?language=pl
Link in Post:http://brasil-web.de/forum/wiki/tag/Natal/?language=plgoes to: http://brasil-web.de/forum/wiki/31-rio-grande-do-norte/769-natal.htmlThis crosslinking is done by a Java Script.
I think the script is written by Andreas (http://www.vbulletin-germany.org/member.php?u=1) the Admin from VBorg Germany (http://www.vbulletin-germany.org/).

All this links are: rel="nofollow" so this should be no problem for crawlers.

EDIT:
Th Links are created ever in the same manner: "/tag/Word", i think to not slow down the page.
Here:
http://brasil-web.de/forum/29706-suche-grosshaendler-fuer-schmuck-brasilien.html?language=pl
the Word "Amazonas" is linked and tracking is working, because there are 2 Articles for "Amazonas", the River and the State.

In the first example is only one Articel and, and i think, something in the Gallery software is pointing the Article direct and not the Tag.

Christian

ALREADY SUPPORTED IN 2.2.0

Now I see it and anderstood what you mean. My mod works fine - links are ok, but after going there page is redirected and mod which makes redirection just ignore attributes, to tracking is lost. Same situation like for new posts.

Unfortunatelly this redirection is completly out of this mod controll and I cannot handle this. I will put it in TODO list - maybe storing info in cookie can made another redirect - to rich URL but with language... It seems like good idea :) I will examine it on my own forum for new posts - if it will work on this it will work also here. But already I see some issues with recognition of such redirect and manual forum walking... Well - I will think about it and find some stroke of genius solution :D ;)

NLP-er
09-03-2009, 09:50 PM
Is there any way to make language selection and option on sign up?

In 3.0.0. :) Also with posiblility to write posts in different languages :D

And those are my plans for 3.0.0
- Make in vB real world wide community without language barriers
- Possibility to write posts in different languages (automatically translated to forum language, remembering original text, refreshing translation for better quality, etc.)
- Language selection as option on sign up
- SEO translation links for forums without vbSEO

NLP-er
09-03-2009, 10:05 PM
Thank you GOOD coder, ;)

That my error caused by array[] in index.php of photopost. I temporarily fixed to be $replace[] = ''; to $replace = '';. So this time no behavior to halt process loading gallery but I'm not sure what exactly was wrong.

Other previous issue that I posted in my case, there is conflict with other module and plugins that I installed already Tab.Home using YUI. I disabled it have to need to be chosen one.

In your latest 2.1.0 I found that Malay Flags are not shown when I optioned it. Does it only mine?

Have a good day, and I have plan to try your other cute Auto Threads Tags Creators ASAP.

Yours.

Malay works on my side. Are you sure you turned on flag? Mybe you only turned on cache... Do you mean that it is not generated at all, or image is broken?

Manoel J?nior
09-03-2009, 11:50 PM
Not showing the images. I informed the procedure, but without success.

Can you help?

yahoooh
09-03-2009, 11:57 PM
new feature requist :
rss for multilanguage
translate text in user cp :
like google translate with ajax depend on google in user cp

yahoooh
09-03-2009, 11:59 PM
also :
if i use cache i think tables that store all translated text will be big in size that will decrease performance

what about to make tables for each language as seprated and this will help i think

Dr.LoVe
09-04-2009, 12:24 AM
I just checked it also on IE8, Mozilla Firefox and Chrome - everywhere works fine. What kind of browser are you using:confused:

I use Mozilla Firefox ( Linux Mint )

I don't know , Maybe i should install it on my VB and tell you what's will gonna hapeen

If it's gonna Reverse page or not !

Thanx

NLP-er
09-04-2009, 04:11 AM
2.2.0 RELEASED

Now mod supports translation tracking even when redirection by some mod occures - this includes getting of issue for new posts :)

Every time when some mod will made redirection just ignoring translation, my mod will made another redirect to freshest url, but with language settings. Also because local anchors are not send to server (i.e. #something) - those are lost during 2nd redirection. But it is displayed appropriate page in appropriate translation - just have to scroll manually to #something place :)

Also new configuration param was added for this functionality - translation cookie time to live. It is by default set to 1 second and it should be enough for everyone, since it is only for automatic redirection which are instant (page can load longer, but this is after redirection was already send). So if you see that sometimes id donesn't work - just make time higher. Just not to high, cause in this time it is not possible to come back to original language by changing URL in browser (but clicking in forum default language flag clears cookie and allows to come back). As I wrote cookie lives 1 second, so no user should be fast enough to go to translated page, see what is there, change manually URL in browser and pres enter ;) So be calm - I was already thinking about this - it is good solution :)

NLP-er
09-04-2009, 04:12 AM
Not showing the images. I informed the procedure, but without success.

Can you help?

Give me your forum URL and tell where did you copy images folder?

NLP-er
09-04-2009, 04:15 AM
new feature requist :
rss for multilanguage
translate text in user cp :
like google translate with ajax depend on google in user cp

Rss added in TODO.

"translate text in user cp" - describe me more.

NLP-er
09-04-2009, 04:22 AM
also :
if i use cache i think tables that store all translated text will be big in size that will decrease performance

what about to make tables for each language as seprated and this will help i think

Wrong asumption. Cache is indexed for all data used in where clause, so access time is close to constant. Your idea will only bring maintenance problems when new languages occures, but I'm glad that you are looking ways to make this mod even more briliant that it already is ;):up:

Great thanks for that :)

NLP-er
09-04-2009, 04:30 AM
I use Mozilla Firefox ( Linux Mint )

I don't know , Maybe i should install it on my VB and tell you what's will gonna hapeen

If it's gonna Reverse page or not !

Thanx

Not 'if' :p It is working fine. If you cannot see this in your version of browser it means that your browser just not supports rtl direction. Mod is dooing it's job and you can see this even if your browser isn't too smart. Look here:
http://www.forum.simple-nlp.pl/ar/

This page is reversed right to left. If your browser doesn't show this just go to page source and you will find there dir="rtl" inside of html tag. That means that in mod reversing functionality is working like it should and your browser doesn't :)

imported_silkroad
09-04-2009, 08:42 AM
Hey NLP-er!

Congrats on releasing 2.2.0 !

You have done an amazing job in a very short time. Great work!

CThiessen
09-04-2009, 10:55 AM
Hi,
very good mod at all.
I do have a little wish, that hopefully is easy to do.
I use this BBCode Add-on:
https://vborg.vbsupport.ru/showthread.php?t=193760&highlight=Google+Maps

That let you show an IFAME of Google Maps inside the Forum.
So the mod can?t change anything in an IFRAME, but Part of the Link is already the language. Example:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Rio+de+Janeir o&amp;sll=54.756117,8.28743&amp;sspn=0.282913,0.891953&amp;ie= UTF8&amp;ll=-22.826188,-43.17627&amp;spn=0.451613,0.891953&amp;z=11&amp;iwloc=A&amp;output =embed"></iframe><br /><small><a href="http://maps.google.de/maps?f=q&amp;source=embed&amp;hl=de&amp;geocode=&amp;q=Rio+de+Jane iro&amp;sll=54.756117,8.28743&amp;sspn=0.282913,0.891953&amp;i e=UTF8&amp;ll=-22.826188,-43.17627&amp;spn=0.451613,0.891953&amp;z=11&amp;iwloc=A" style="color:#0000FF;text-align:left">Gr??ere Kartenansicht</a></small>and its from Google, so they are using th same code as Google Translation.
Do you think tit is possible to change only this part of the IFAME Code.
Than the map will shown in the target language also.

Greetings
Christian

redraider
09-04-2009, 11:52 AM
This is FAQ :)
What to do, to have translations links good for SEO consensus?
You must have vbSEO, you must set in options of this mod to use SEO links, you must edit .htaccess file.
About editing .htaccess file:
Above all rules to vbseo.php put this rule

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is |id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|s r|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk |vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is |id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|s r|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk |vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]



Great mod! I have VBSEO. I got the mod working without SEO links, when I enable SEO links, clicking on the flag takes me to my websites home page (it returns a 404). Here is the setup I have

Main domain: <scorechase.com>
Forums: <scorechase.com/gmat>

I have put the .htaccess entries inside the <scorechase.com/gmat/.htaccess> file. (I even tried putting them on the <scorechase.com>/.htaccess file, but nothing seems to work. Please help.

Thanks

NLP-er
09-04-2009, 02:00 PM
Hi,
very good mod at all.
I do have a little wish, that hopefully is easy to do.
I use this BBCode Add-on:
https://vborg.vbsupport.ru/showthread.php?t=193760&highlight=Google+Maps

That let you show an IFAME of Google Maps inside the Forum.
So the mod can?t change anything in an IFRAME, but Part of the Link is already the language. Example:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=Rio+de+Janeir o&amp;sll=54.756117,8.28743&amp;sspn=0.282913,0.891953&amp;ie= UTF8&amp;ll=-22.826188,-43.17627&amp;spn=0.451613,0.891953&amp;z=11&amp;iwloc=A&amp;output =embed"></iframe><br /><small><a href="http://maps.google.de/maps?f=q&amp;source=embed&amp;hl=de&amp;geocode=&amp;q=Rio+de+Jane iro&amp;sll=54.756117,8.28743&amp;sspn=0.282913,0.891953&amp;i e=UTF8&amp;ll=-22.826188,-43.17627&amp;spn=0.451613,0.891953&amp;z=11&amp;iwloc=A" style="color:#0000FF;text-align:left">Gr??ere Kartenansicht</a></small>and its from Google, so they are using th same code as Google Translation.
Do you think tit is possible to change only this part of the IFAME Code.
Than the map will shown in the target language also.

Greetings
Christian

I will look on this later - put it on TODO list, but didn't decide yet about supporting (have to read carefully what is going on, and now have no time for this) :)

If it is some other mod then author of this mod should be best person to made changes there. Parsing others results have impact on performacne and it is better when those are already appropriate ;)

NLP-er
09-04-2009, 02:06 PM
Great mod! I have VBSEO. I got the mod working without SEO links, when I enable SEO links, clicking on the flag takes me to my websites home page (it returns a 404). Here is the setup I have

Main domain: <scorechase.com>
Forums: <scorechase.com/gmat>

I have put the .htaccess entries inside the <scorechase.com/gmat/.htaccess> file. (I even tried putting them on the <scorechase.com>/.htaccess file, but nothing seems to work. Please help.

Thanks

SEO links are not tested on forum in subdirectory. Many people is talkint that they want this, but when I'm asking about access to forum, or setting up testing enviroment then topic is closed :) So - if you want this working on your forum I need a place to test mod in such configuration. If you want it running with SEO liks on your forum PM me acess details to your forum Admin CP and FTP or to test forum with same configuration :) I will gladly help you :)

NLP-er
09-04-2009, 03:30 PM
2.2.1 RELEASED

Small bug fixed with returning to default language for main page and SEO links (happens only for specific vbSEO configuration, so you don't need to update if 2.2.0 is working for you).

For update it is enought to upload file /includes/vbenterprisetranslator_functions.php to FTP.

jaryx
09-04-2009, 04:15 PM
SEO links are not tested on forum in subdirectory. Many people is talkint that they want this, but when I'm asking about access to forum, or setting up testing enviroment then topic is closed :) So - if you want this working on your forum I need a place to test mod in such configuration. If you want it running with SEO liks on your forum PM me acess details to your forum Admin CP and FTP or to test forum with same configuration :) I will gladly help you :)

Don't worry guys. Be happy :)

ps.
My forum is one of the test forum... and still working :P

redraider
09-04-2009, 09:56 PM
SEO links are not tested on forum in subdirectory. Many people is talkint that they want this, but when I'm asking about access to forum, or setting up testing enviroment then topic is closed :) So - if you want this working on your forum I need a place to test mod in such configuration. If you want it running with SEO liks on your forum PM me acess details to your forum Admin CP and FTP or to test forum with same configuration :) I will gladly help you :)

Ok looks like Jaryx is helping you? Let me know, I can create a test forum.

NLP-er
09-05-2009, 08:37 PM
Ok looks like Jaryx is helping you? Let me know, I can create a test forum.

Yes :) Jaryx is helping me for a while by accessing his forum. Many small bugs with URL tracking on his forum was discovered and debugged there. If I would made this mod only for myself I wouldn’t care about others configurations. I made it also for others and I spend my time to make this mod working for others forums configurations.

Jaryx helps me to help him :) That’s why he has working this mod in 100%. His forum is not in subdirectory. So if someone really wants SEO links for forum placed in subdirectory then I will gladly give it to him as fast as he will give me playground. As far (besides you) no one cares enough to let me help him in that. If no one cares about this, It means for me that no one cares about having SEO links in forums placed in subdirecory :) And If no one cares about this I have no reason to spend my time to do this... It is so simple :D

I think some people will really appreciate your effort if you give me opportunity to help them, even if they don't care to match about this I think they will be happy to have it. So I will gladly welcome your test forum with vbSEO and subdirectory in URL, which will give me opportunity to make this mod even better :)

Thank you :)

imported_silkroad
09-06-2009, 10:54 AM
I have put the .htaccess entries inside the <scorechase.com/gmat/.htaccess> file. (I even tried putting them on the <scorechase.com>/.htaccess file, but nothing seems to work. Please help.

Where is your vBSEO mod_rewrite code located?

Aclikyano
09-06-2009, 01:04 PM
how to fix this error on top of header:

Warning: Cannot modify header information - headers already sent in [path]/includes/vbenterprisetranslator_functions.php on line 408

happens when a language is chosen...

CThiessen
09-06-2009, 03:36 PM
Hi,
it looks like that there is another Mod that like to modifie the Header Information.
Try to disable the other Add-Ons, one by one, to see were is the Problem.

Christian

imported_silkroad
09-06-2009, 04:23 PM
So again we have 2 different standards for language codes and for countries codes. Are you still sure google doesn't follow standards?

Ah! I checked and Google follows the obsolete standard ISO 639 (http://en.wikipedia.org/wiki/ISO_639)

http://www.mcanerin.com/EN/articles/meta-language.asp

ISO 639 is the set of international standards that lists short codes for language names. It was also the name of the original standard, approved in 1967 and withdrawn in 2002.

ghisirds
09-07-2009, 09:39 AM
I have installed vB Enterprise Translator.
The problem is this: I would like to use it with the url system of vbseo, having already installed it.
I have followed the suggestions in this page to modify the htaccess but I have always an error.
I have tried to add the same strings inside the file vbseo.php, but It tell me that the file is corrupted.
Can you give me a solution?

anzo
09-07-2009, 01:07 PM
I keep having some CSS problem after installation. You can see what I mean here: http://latforums.lv/thread42555.html?language=ja Did I set something wrong? How do I fix it?

imported_silkroad
09-07-2009, 01:59 PM
I keep having some CSS problem after installation. You can see what I mean here: http://latforums.lv/thread42555.html?language=ja Did I set something wrong? How do I fix it?

Edited:

I have this problem also if I try to translate an unsupported language and then do not refresh the page with the original language (using a previous version of this type of mod).

imported_silkroad
09-08-2009, 12:51 AM
I keep having some CSS problem after installation. You can see what I mean here: http://latforums.lv/thread42555.html?language=ja Did I set something wrong? How do I fix it?

What kind of SEO are you using to rewrite your URLs?

nectons
09-08-2009, 01:26 AM
I had the 2.03 and everething was works perfect. Until now. I installed the 2.2.1 and something strange hapent. My style stressed allot specially in VBA and i have lost the text inside the msg chatbox :(

Before it was nothing translate inside the chatbox and i was ok with it. But now it is not working at all.

And the forum home page it is stressed a bit but not too mutch. VBA it is completely wrong.

Please take a look at my page my friend and CONCRATS for the GREAT work

:D

http://www.bytheway.gr/portal2/forum/cmps_index.php?language=en


edit: OK... i found that in IE i have the problems only. In FF everething works prefect. BUT.. it DOESNT translate the TOP STATS (in IE it is working in top stats too!) and offcource the chatbox it remains unchange.

VBA also works perfect (translates everething and the graphics is perfect without stressing) !

Maybe this helps to find whats going on

:respect:


edit2: and another one thing.. The translation in FF it is 2 times (maybe better) FASTER than in IE :)