View Full Version : Forum Display Enhancements - vB Enterprise Translator
NLP-er
08-13-2009, 10:00 PM
2.3.15 RELEASED - TRANSLATIONS NEVER WERE SO FAST!!!
Great thanks to all who nominate vBET and allow us to win MOTM :):up:
This mod translates your forum using FREE translations for over 30 languages from Yandex API. It is 100% FREE in version described here (2.x).
Note: using this mod (vBET 2.x) is free and bound by license agreement (see below) :)
Yandex translation gives you 1 000 000 FREE characters per DAY to translate. Please note that Yandex do not supports all language pairs, but vBET detects automatically which are supported for your forum language.
Version for vBulletin 4.0 is here: vBET 2.4.x for vBulletin 4.0 (https://vborg.vbsupport.ru/showthread.php?t=232456)
vBET 3.x released!
Please note that vBET 3.x is developed as separate product line and it is available here: vBET 3.x (http://www.vbenterprisetranslator.com/forum/vbet-announcements/4-vb-enterprise-translator-features.html). Full version is paid, it supports 53 languages each to each translation, using: Google, Microsoft, Apertium, Yandex, SDL BeGlobal and DetectLanguage. It has lot of optimizations for booth performance and translations costs.
LIVE DEMO (http://www.vbenterprisetranslator.com/forum/) - note that demo shows functionality of full version (3.x/4.x), which has more features than 2.x
See also screen shots below, for configuration options :)
Features:
- Translation by Yandex (in PRO version supports 53 languages using several translation providers (http://www.vbenterprisetranslator.com/forum/vbet-announcements/4-vb-enterprise-translator-features.html))
- Optimized cache, algorhitms and more performance options - PRO version only (http://www.vbenterprisetranslator.com/forum/vbet-announcements/4-vb-enterprise-translator-features.html)
- Translates URLs and RSS - PRO version only (http://www.vbenterprisetranslator.com/forum/vbet-announcements/4-vb-enterprise-translator-features.html)
- Supports multi language communities (allows to write in different languages) - PRO version only (http://www.vbenterprisetranslator.com/forum/vbet-announcements/4-vb-enterprise-translator-features.html)
- Links appropriate for SEO consensus (configurable) - even without any SEO mod
- Long texts are translated no matter how big those are
- Translation cache (after first translation results are cached and next page generation is much faster)
- 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)
- Easy installation - just upload files and import product file
- Highly configurable and easy configuration - by Admin CP (see screenschots)
- Configurable place for flags - simply select in options where you want to have translation flags. NO MANUAL TEMPLATE MODIFICATION. Supported: Footer-Bottom, Footer-Top, Navbar-Bottom, Navbar-Top, Custom
- Possible custom place for flags - in such case just edit template which you want and add $vbenterprisetranslatorflags
- Translates also archive pages
- Reverse page direction for Arabic, Hebrew and Persian languages
- Not translated save areas - if you need something to be not translated simply edit appropriate template and put it between
<!--START vBET NOT TRANSLATED AREA--> and <!--END vBET NOT TRANSLATED AREA--> (note: you cannot use any mod which removes comments to use this functionality)
Installation:
1. Download zip package (last release - see index at the end of file name)
2. Upload to your forum directory on server everything inside upload directory
3. Import in vB Admin CP -> Plugins & Products -> Manage Products -> Add/Import Product -> Choose product file, set Allow Overwrite to yes and click Import
4. Click here: "Mark as Installed" (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=220886) :D Thanks!
5. Configure in AdminCP -> vBulletin Options -> vBulletin Options -> vB Enterprise Translator
You MUST configure at least Forum language and Yandex Translation API key. NOTE that there are some other important options - especially if your forum is in subdirectory or if you use vbSEO.
For MORE INFO and troubleshooting please read first post :) There is FAQ. So save your time for writing questions which are already answered and get your solution faster :)
Known issues:
- link for page on which you are doesn't track translation, cause it has same URL as flag for forum default language
ENJOY! :D:up:
And thanks for nominations ;)
Already donated (great thanks:):up:):
PossumX, adwade, roymogg, zipperty, CoZmicShReddeR, RedHacker, john devost, mandingo, chris, smnoel, Audax666, Damas, TurkeySub, nectons, Scalemotorcars, TheWite, Cybershaolin, burlesque, Ransy72560, chick, jaryx, linuxututs, cormee, dai-kun x2 :):up:, imported_silkroad, Megatr0n, KrisP, CareyCrew, ghisirds, vitoreis, cyc, mosz, CThiessen, actolearn, jaconi, andie215, yahoooh, bollie
LICENSE AGREEMENT - using this mod you agree for those conditions:
- you are NOT allowed to remove credit link under any conditions
- removing credit link means BREAKING LICENSE AGREEMENT and you lose your rights to use this mod
- using it after that is illegal, it is software PIRACY and it will be notified in vBulletin community and other places, including appropriate government/police units in your country
- author of this mod reserves the right to change the terms of this license agreement at any time. Failure to receive notification of a change does not make those changes invalid. A current copy of this license is and will be available here.
Please note that in full vBET version (http://www.vbenterprisetranslator.com/) there is possibility to buy branding free license. There is no such possibility in free version included here.
Version history:
2.3.15 Changes:
- Fixed canonical link
- Fixed issue with SSL verification
2.3.14 Changes:
- Added 48 new languages pairs
- Updated link to Yandex in configuration
- When translation limit is reached now we show original text instead of empty message
2.3.13 Updated link to Yandex API key
2.3.12 Google changed to Yandex translations
2.3.11 Added "Affiliate Program" parameter
2.3.10 Footer bug corrected
2.3.9 userip added to Google translation request + small bug fixed
2.3.8 Small bug fixed - now all supported languages can be chosen as forum default language
2.3.7 Bugs fixed:
- weird redirections with vbet_lang
- double language in URL
- changing text direction for specific languages
Added support for:
- usernames not translated in who is online
- supported URL replacements for canonical URL
2.3.6 Important fix! - there was issue with sending referrer header which is necessary by Google conditions. This one was fixed + issue with # in translation links
2.3.5 Important change - According to Google conditions referrer header must be added to each translation query - otherwise you can be banned by Google. Install this version to avoid any troubles.
Changes:
- Added referrer header for Google translation queries
- Corrected bug for returning to forum main page from translated page
Also according to actual Google conditions your "Powered by Google" information should have Google logo. So please change text for flags in your vBET configuration to something like this:
Automatic Translations (Powered by <span style="vertical-align:sub;"><img src="http://www.google.com/uds/css/small-logo.png" alt="Powered by Google" border="0"/></span>):
You can customize it but "Powered by Google" should stay.
2.3.4 Important bug fixed! Corrected translation of meta keywords and description
2.3.3 Important bug fixed! And also some other bugs fixed ;)
- Fixed bug with shifted results caching
- Fixed bug for URLs to javascript functions
- Fixed bug for not translating usernames in postbit
- Little cosmetic changes
2.3.2 Really little changes.
- Changed default value of "Links title" attribute, to be more accurate for Google conditions
- Little template changed for flags, so "Link title" font will be smaller (just like vB info in footer)
- Small bug fixed
2.3.1 Some little bug fixes. Confirmed working with vbSEO 3.3.1 and confirmed working SEO links on forums with vbSEO and subdirectory in URL
2.3.0 Great news for those without vbSEO
- Supports translation SEO links even without vbSEO
- Translate Google Maps (configurable)
- Little optimizations (i.e. included only necessary things for not translated pages)
- Supports several cache cleaning strategies (optimization for really big forums) and automatically disables cache for cleaning time to avoid read/write conflicts
2.2.1 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)
2.2.0 Translation tracking is working even when redirection by some mod occures (configurable reaction time)
2.1.0 9 new translation languages added! Also:
- 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.
2.0.3 Quick bug fixing (issue with bitfields in options panel)
2.0.2 Added option to set your forum main domain for tracking URL's in subdomains
2.0.1 Small bug fixed and added direction changing suport also for Hebrew
2.0.0 Some small or medium changes and one big - for vbSEO users now SEO consensus links available.
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
1.1.1 Some little changes and bugs fixed
- Re-encode not translated parts, so there is no strange signs in scripts, images title etc.
- Corrected flag for Sweden
- Few harmless bug fixed in translation tracking and cache disabling
- Respecting Google conditions default flags title have link to Google (configurable)
1.1.0 Lot of new features and no longer in beta stage :)
- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)
1.0.5 Flags showing correctly for forums in subdirectory + corrected returning to base language
1.0.4 Bug fixed with translation of '0' string. Also added little feature - if some parts of your forum uses vbSEO and some are not then now flags will have appropriate URL's everywhere
1.0.3 Big bug fixed ;) Mod doesn't mess in template anymore (it did in some specific cases)
1.0.2 Small bug fixed - error with array merge solved
1.0.1 Small bug fixed - now choosing supported languages in options works fine
1.0.0 Great mod released :D
NLP-er
08-14-2009, 04:05 PM
This is FAQ :)
Questions:
What is required for this mod to work?
After translation I get blank page - what is wrong?
After translation all text disappear - what is wrong?
I have SEO translation links on, I use vBSEO and main page is not translating - what is wrong?
What to do, to have translations links good for SEO consensus?
I have indexed pages from old translator (with hl=) - what to do?
I have indexed pages from old links type (with language=) and want switch to SEO links- what to do?
How do you get back to default language after you click a flag?
I have warnings in safe mode - what to do?
Can I add translated pages to sitemap?
Answers:
What is required for this mod to work?
- You must install it ;) and configure it appropriatelly (please read parameters descriptions carefully) :)
- You must have installed CURL in your php. Most servers already have it. Just install this mod and if it is not working then ask your server stuff to install CURL. In meantime you can disable mod or remove flags so users will not be affected. If you get blank page for translation pages (it will not affect your normal pages) it means that you don't have CURL installed - just install it :)
- You must have installed ICONV in your php. Most servers already have it. If not an error will occur or blank page for translations.
After translation I get blank page - what is wrong?
Just read answer for previous question :)
After translation all text disappear - what is wrong?
2 possibilities:
- You didn't fallow installation instructions. You MUST configure at least Forum language option and Yandex Translations API Key. Just configure mod :)
- You set wrong Yandex API key - just set there appropriate value.
I have SEO translation links on, I use vBSEO and main page is not translating - what is wrong?
First, make sure that your .htaccess rules are OK - especially for forums with subdirectory in URL.
What to do, to have translations links good for SEO consensus?
You have to set appropriate option in Admin CP and change/create .htaccess file (NOTE: you can use SEO translation links even without vbSEO!)
for users without vbSEO
- If you don't have .htaccess file then use the one from do-not-upload directory in mod package - just upload it to your forum directory
- If you have .htaccess file, then add those lines there:
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|cy|yi)/$ index.php?language=$1 [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|cy|yi)/(.*)?$ $2?language=$1 [L,QSA]
for users with one of: Zoints SEO, Clogic SEO, TfSEO 2
Add into .htaccess this 2 rules BEFORE all rules for your SEO mod:
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)/$ index.php?language=$1 [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)/(.*)?$ $2?language=$1 [QSA]
NOTE: All those SEO mods works similarly so same rules should work on each of mentioned mod. But please be aware that at this moment it was tested only for Zoints SEO for vBET 3.x. So if you use vBET 2.x with one of mentioned mods please send post here to confirm it. Great thanks :)
for vbSEO users
Edit .htaccess file:
Above all rules to vbseo.php put this rules
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|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [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|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]
Now - if your forum use subdirectory in URL, then change 2 first rules adding your forum directory with leading '/' just after redirected=. So i.e. if your forum is in forum directory then you will have redirected=/forum/ and redirected=/forum/$2
I have indexed pages from old translator (with hl=) - what to do?
Just set rewrite rule in .htaccess - Google will know that page have new place and will reindex it without any loss :)
RewriteCond %{QUERY_STRING} (hl=)(zh-TW|zh-CN|..)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1\?language=%2 [L,R=301]
I have indexed pages from old links type (with language=) and want switch to SEO links- what to do?
First make SEO links available. After that add this rule to .htaccess (before SEO rules):
RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]
Note that this rule will also handle redirections for links from old translator (with hl=)
How do you get back to default language after you click a flag?
If you have set tracking option on, then to go back to your default language you must just click flag for your default language :)
I have warnings in safe mode - what to do?
Just turn off save mode - it is DEPRECATED in php and not supported in future versions. See here for details:
http://us2.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
Can I add translated pages to sitemap?
You can simply integrate vBET with vBSEO Sitemap Generator (https://vborg.vbsupport.ru/showthread.php?t=206169) (it is free) to include links to translated pages into generated sitemap.
Please note that instructions below will allow you to add into your sitemap links for threads translated pages. Because of performance reason those links will not be translated - there will be only added language code. Google will find real page anyway since you will get 301 redirect. Please note that it is not best approach - Google prefers to have final links in sitemap not redirecting one, but forcing translation of thousands links in all languages in the same time could kill your server or be threated by Google as attack (if links are not cached yet).
If you have any PHP programming skills you can modify instructions below to support also other parts of sitemap - not only threads URLs. Solution below will add translated links only for first pages of threads.
Integration instructions:
You just have to edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.
Find:
vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
And place AFTER it...
For SEO links
//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi',' fr','gl','de','el','iw','hi','hu','is','id','ga',' it','ja','ko','lv','lt','mk','ms','mt','no','fa',' pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','vi','cy','yi');
if(!$archived) {
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived);
$currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
$currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
$lastpost =& $threadrow['lastpost'];
$vbseo_stat['t'] += sizeof($alanguages);
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl_before.$language.$ currentthreadurl_after, $prior, $lastpost, $freq);
}
}
//end additional code
NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE and not supported language codes from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.
For links with language=
//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi',' fr','gl','de','el','iw','hi','hu','is','id','ga',' it','ja','ko','lv','lt','mk','ms','mt','no','fa',' pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','vi','cy','yi');
if(!$archived) {
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived) . '&language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code
NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE and not supported language codes from $alanguages
Also if you disabled some languages in option panel you have to delete its codes too.
NOTE FOR SITEMAP INTEGRATION
If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code must be added BEFORE:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
Also in additional code you have to change 1 to $p.
Piece of cake :)
Sayid
08-14-2009, 04:26 PM
Good mod but I can,t see Arabic language ;) . Is there a way to add languages ?
This mod did not need new database like other one to work !
Can this cause server loads as result of the queries ?
However. I like it and nominate it ..
Kolbi
08-14-2009, 04:41 PM
There are the advantages to other translation addons?
Does it use the google translator?
saadessa
08-14-2009, 04:49 PM
ok its cool i need it
thank you NLP-er (https://vborg.vbsupport.ru/member.php?u=267979)
imported_silkroad
08-14-2009, 04:59 PM
Glad to see this.
Does this mod create the same type of URLs as the retired mod?
.... link.html?tl=lang
Or did you go with something else like:
.... /lang/link.html
Or
.... link-lang.html
Or (better yet) can the user select the one they like?
Thanks!
imported_silkroad
08-14-2009, 05:16 PM
Also....
Can you please add the option to add a Google Translate API key in the mod CP?
Calash
08-14-2009, 05:26 PM
It works very well, thank you.
It seems to also work in vBadvanced. I only have my portal page but it translated it nice and quick.
Time for me to dig a bit and see if I could make it work on other external areas of my site.
NLP-er
08-14-2009, 05:41 PM
Good mod but I can,t see Arabic language ;) . Is there a way to add languages ?
This mod did not need new database like other one to work !
Can this cause server loads as result of the queries ?
However. I like it and nominate it ..
Arabic is 2nd language - just after Albanian :)
Yeap - this mod is fully integrated with vB
Server Loads - use queries by series and there should be no problem. Old translator made dozens of queries - one for each translation. This one can take also related data (which was added in same time) so there is much, much less queries to DB - also to Google :)
Thanks for nomination :D
NLP-er
08-14-2009, 05:46 PM
There are the advantages to other translation addons?
Does it use the google translator?
Yes - It's using Google translator.
Advantages to other :D This one is FAST. It is fully configurable nad easy to install. It manage translation cache (optimized - batch queries for insert and selecting by series – remembers which translations are used together). It is alive (Dave put his one to graveyard). It track translation in URL's. It keeps yours domain during translation (one translator simply redirects to Google) so you have benefit in AdSense and indexing. It supporrts 42 translations languages.
NLP-er
08-14-2009, 05:50 PM
Glad to see this.
Does this mod create the same type of URLs as the retired mod?
.... link.html?tl=lang
Or did you go with something else like:
.... /lang/link.html
Or
.... link-lang.html
Or (better yet) can the user select the one they like?
Thanks!
Yes - I was thinking about
.... /lang/link.html
Maybe in future :) First need to know that people like the idea and this mod to invest more time :)
Right now this mod is smart enought to add language param even if already exists some other param in URL (recognizes which one to use ? or &). So it's fully functional.
NLP-er
08-14-2009, 05:51 PM
Also....
Can you please add the option to add a Google Translate API key in the mod CP?
Just aded in TODO list for next release :)
tpearl5
08-14-2009, 05:59 PM
Does this store data locally like the previous mod?
relaxiha
08-14-2009, 06:13 PM
Hello. It also supports Persian language?
Konstantinos
08-14-2009, 06:46 PM
what about the vbseo warning for the previous mod
A notice to vBSEO owners.
As vBSEO.com Staff we don't advise using this mod for the following reasons.
This modification breaks the purpose of correct link consensus.
Translation quality is bad and would you want your site visitors to face shitty translated pages
Google advises to use correct url structure for translated pages which should be defined as domain.com/en/thread1 domain.com/de/thread2 . The important part in here is that each translation should have a unique domain. With this mod you are outranking your original url by creating duplicate version of the urls.
Using this mod is clearly agains Google Translation API TOS.
For vBSEO Owners more information can be found at http://www.vbseo.com/f4/support-mult...nguages-35168/
and are the translated pages stored in a db ?
NLP-er
08-14-2009, 07:15 PM
Does this store data locally like the previous mod?
If you use cache then it store data in DB, but it is integrated with vB
NLP-er
08-14-2009, 07:26 PM
Hello. It also supports Persian language?
Persian is in beta stage in Google (at least it was). So right now - not. Let me know when it will be fully functional and I will add Persian support :)
NLP-er
08-14-2009, 07:29 PM
what about the vbseo warning for the previous mod
and are the translated pages stored in a db ?
This vbSEO note was about other mod. Still this one uses parameter to recognize language, but not reserved and used by Google hl param.
Translations can be stored if you use cache. By default cache is on. You can simply disable it in option panel :)
Also note that each cached data has stored time of caching. So if you want you are able to remove old translations from DB. Google don't want to cache their results too long - so you have possibility to be ok with it. Now you can make it manually querying DB. If there will be needing I will add scheduled task for this. It's is up to you do you want to respect what Google is asking for or not - this mod gives you possibility to respect it.
TheLastSuperman
08-14-2009, 07:40 PM
Looks very promising, at least more so than the other translators on here or ones I have simply added via scripts so thanks for spending the time. I'll see how it goes after I finish mowing... taking a break now it feels like a 100+ out there lol.
S-MAN
p.s. I would move forward with this mod IMO, many sites will not use the alternatives as they look sloppy or don't work as well, however as always, IMO.
jaconi
08-14-2009, 08:03 PM
Hello
great mod ! , but 2 errors
1)
click on first flag :
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vbenterprisetranslator_functions.php on line 523
English / french / german is translated ! , and works fine , other flags comes the error !
2)
in CP just 5 flags marked ! , but they all show on forum !
3) when you translate , you cannot go back to standard language ! (= dutch)
Do you perhaps have a solution for it ?
editing some php file , to take care that not all flags are showing ?
Regards
NLP-er
08-14-2009, 08:43 PM
Hello
great mod ! , but 2 errors
1)
click on first flag :
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vbenterprisetranslator_functions.php on line 523
English / french / german is translated ! , and works fine , other flags comes the error !
2)
in CP just 5 flags marked ! , but they all show on forum !
3) when you translate , you cannot go back to standard language ! (= dutch)
Do you perhaps have a solution for it ?
editing some php file , to take care that not all flags are showing ?
Regards
Thanks for note :)
1) Can you give me link to your forum? On my side it is ok and I want to see what happens. I need to reproduce error to be able to work with it and it's working fine on my forum.
ALREADY CORRECTED IN 1.0.2 - I think - I cannot reproduce, but found typo in variable name so it should solve the problem of error :) Tell me what with those translations on your board (link would be helpful).
2) About flags - I must to mess smoesthing after testing - It don't works on my side too. I will corect this fast.
ALREADY CORRECTED IN 1.0.1
3) About going back after translation - click on flag for your language and you will go back or just dissable tracking
Megatr0n
08-14-2009, 09:55 PM
Looks awesome.
I'll install when it is out of Beta! :)q
NLP-er
08-14-2009, 10:00 PM
1.0.1 RELEASED
Corrected little bug. Now mod will show translation flags appropriate to your choose in options.
NLP-er
08-14-2009, 10:04 PM
Looks awesome.
I'll install when it is out of Beta! :)q
Understood :)
I prefer to leave it in this stage for some time just in case - people have lot of different configurations on theirs forums, but it's working fine on my forum :)
So keep in touch :up:
Sunka
08-14-2009, 10:11 PM
Taged for now!
NLP-er
08-14-2009, 10:21 PM
1.0.2 RELEASED
Small bug fixed - error with array merge solved
I know - previous release just come in, but this is beta stage and I bet that you prefer have working solutions ASAP, especially when installation of new version is so easy :D
bleros
08-14-2009, 11:00 PM
can u help :) i am use 1.0.2
Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in [path]/includes/vbenterprisetranslator_functions.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/includes/vbenterprisetranslator_functions.php on line 117
SuperTaz
08-14-2009, 11:03 PM
Tagged for future use. Will wait till gold comes out.
Sweeks
08-14-2009, 11:22 PM
Are the URLs the same as the old one? Also will I need to make any edits for vbseo sitemap generator? Thanks!
Sweeks
08-14-2009, 11:35 PM
It isnt translating our sidebar properly unlike the old one:
Please take a look:
Teen Forums (http://www.teenforumz.com)
Also, when another language than our primary language is chosen it somehow removes the text from our footer and places it in the sidebar somehow. I would also like to be able to show only to guests too.
Cheers!
EDIT: and the flags seem to load every time I go to another page, also when I try to get back to English after having the language tracking on I click the UK flag to be presented with Norwegian.
NLP-er
08-14-2009, 11:50 PM
can u help :) i am use 1.0.2
Warning: s117() [function.set-time-limit]: Cannot set time limit in safe mode in [path]/includes/vbenterprisetranslator_functions.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/includes/vbenterprisetranslator_functions.php on line 117
1st one is about your php settings - see (have to turn off safe mode):
http://us2.php.net/manual/en/function.set-time-limit.php
2nd one is because of 1st warning.
Just turn off safe mode.
I will not made updates because of safe mode, because it is DEPRECATED in php, see:
http://us2.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
NLP-er
08-14-2009, 11:58 PM
Are the URLs the same as the old one? Also will I need to make any edits for vbseo sitemap generator? Thanks!
URL's have to be different for translated pages if you want to have it indexed. So oryginal pages have same URL (indexing save) and translated pages have different URL's - oryginal + language param.
You can see it in live demo :)
Sweeks
08-15-2009, 12:01 AM
Thanks for letting me know, I am guessing I need to remove the old vbseo edit for the sitemap generator for now. What about the other problems I am having, any ideas? :D
NLP-er
08-15-2009, 12:07 AM
It isnt translating our sidebar properly unlike the old one:
Please take a look:
Teen Forums (http://www.teenforumz.com)
Also, when another language than our primary language is chosen it somehow removes the text from our footer and places it in the sidebar somehow. I would also like to be able to show only to guests too.
Cheers!
EDIT: and the flags seem to load every time I go to another page, also when I try to get back to English after having the language tracking on I click the UK flag to be presented with Norwegian.
ALREADY FIXED IN 1.0.3!!!
sidebar, sidebar... Which part you are talking exctly? Give me some citat, because as I see there is everything translated. I have 3 at night right now, so I can miss somesthing ;) Give me some text which is not translated and I will find it.
Also footer looks for me same in translated and not translated page. Sorry - I don't see what you writing about.
To see only to guest just right now you have to modify templates. Templates are listed in features. You can also wait for nest release - I put it in TODO list. So it will be easily configurable :)
NLP-er
08-15-2009, 12:14 AM
Thanks for letting me know, I am guessing I need to remove the old vbseo edit for the sitemap generator for now. What about the other problems I am having, any ideas? :D
Sorry - I forgot about thisquestion ;)
NO - don't remove it. Just hange hl= to language= and it's fine :)
About other one - as I wrote I don't see it. Please be more specific - like for kid: "you see this text ..... it should be translated, but it stays without translation. And see this one.... it should stay in footer, but now it on ....". It will help me :D
basilrath
08-15-2009, 12:16 AM
hmmmmmmmmmmmmmmm tried it and flags arnt showing plus the site goes out of layout, although this maybe a vbadvanced problem not the mod
Sweeks
08-15-2009, 12:19 AM
Sorry - I forgot about thisquestion ;)
NO - don't remove it. Just hange hl= to language= and it's fine :)
About other one - as I wrote I don't see it. Please be more specific - like for kid: "you see this text ..... it should be translated, but it stays without translation. And see this one.... it should stay in footer, but now it on ....". It will help me :D
Thanks.
On teen forums (http://www.teenforumz.com), click a translator flag and look at our footer, all of the copyright text is gone.
:)
Also how can I show to guests only? :)
Neutral Singh
08-15-2009, 12:39 AM
my only reason for apprehension against installing this module is the url contention it may cause to google... once this mod generated urls like this one
.... /lang/link.html
I am good to go...
NLP-er
08-15-2009, 12:40 AM
hmmmmmmmmmmmmmmm tried it and flags arnt showing plus the site goes out of layout, although this maybe a vbadvanced problem not the mod
ALREADY FIXED IN 1.0.3!!! - going out of lauout, check what with vbadvanced
If problem fith other mod tou have always Custom flags plaacement :)
It is designed to give you full flexibility. Set place to custom ans set it manually in template. And if you don't like the way of displaying - it is based on templates - you can easily change it and even customise for each style :)
Enjoy! :)
PS.
I don't have vB Advanced. I will gladly add support for it but need acess to even test forum where it is set - don't have time for setting test forums, but will find it to implement support if someone will give me access to forum with avadvanced :)
NLP-er
08-15-2009, 12:44 AM
Thanks.
On teen forums (http://www.teenforumz.com), click a translator flag and look at our footer, all of the copyright text is gone.
:)
Also how can I show to guests only? :)
Look in first post - I set there code for vbSEO sitemap with all languages :)
Sweeks
08-15-2009, 12:44 AM
Some text in the sidebar that is there but missing is Don't Diss The...
My mistake it is fine for guests, logged in is a mess with missing texts etc,
Where do I add the guest IF condition within your templates? I tried earlier but it stopped it showing for both members and guests :)
Thanks
Konstantinos
08-15-2009, 12:47 AM
doesnt work for me. images for flags show broken and translations mess up the templates
Sweeks
08-15-2009, 12:49 AM
Figured it out NLP-ER, cyb top statistics mod I wrapped with your no translate tags and everything is perfect :)
Thanks for this fine release ;)
NLP-er
08-15-2009, 12:54 AM
On teen forums (http://www.teenforumz.com), click a translator flag and look at our footer, all of the copyright text is gone.
Also how can I show to guests only? :)
I did it for Polish flag (and smoe other) and everything is fine... Wht browser are you using I will try in yours (I use Opera).
About guests only use $show['guest'] in if as condition, or wait for next release, when it will be configurable :)
Sweeks
08-15-2009, 12:57 AM
Actually this is messing up templates for example here:
http://www.teenforumz.com/your-body-mind/?language=fi
http://www.teenforumz.com/your-body-mind/?language=ru
Theyre going awfully weird.
I am using firefox latest.
I also notice this, when a flag is first clicked it wont load the templates perfect but once the flags been clicked again it loads the templates as normal.
NLP-er
08-15-2009, 01:01 AM
my only reason for apprehension against installing this module is the url contention it may cause to google... once this mod generated urls like this one
.... /lang/link.html
I am good to go...
I understand :) BTW. Google is indexing pages with attributes very fine. I have 2 sites which base on go attribute - and I'm very high in results for which those was positioned.
So I respect that Google wish that parameters disappear from links, but it is only wish - those will not disappear and Google is and will handle it well.
As fast as I will have good solution links will look like Google wishes, but right now I'm not expert of .htaccess and there is a key... So if someone want to help me in answering some of my questions about it (by giving me samples of what I want to do) I will be very happy :)
NLP-er
08-15-2009, 01:05 AM
Some text in the sidebar that is there but missing is Don't Diss The...
My mistake it is fine for guests, logged in is a mess with missing texts etc,
Where do I add the guest IF condition within your templates? I tried earlier but it stopped it showing for both members and guests :)
Thanks
Tempates are listed in mod description. You have to ouse it for whole test of eahc of 3 templates.
Can you give me some test acount - even without any rights - I want to see what you are talking about.
NLP-er
08-15-2009, 01:07 AM
doesnt work for me. images for flags show broken and translations mess up the templates
ALREADY FIXED IN 1.0.3!!!
Link please :) I will gladly help. Beta stage means - some trobules can occure ;)
Sweeks
08-15-2009, 01:11 AM
Please look for me :)
http://www.teenforumz.com/your-body-mind/?language=ru
NLP-er
08-15-2009, 01:12 AM
Figured it out NLP-ER, cyb top statistics mod I wrapped with your no translate tags and everything is perfect :)
Thanks for this fine release ;)
Great. BTW - I also have this mod and it's fine on my side. When in vB every one can change look like he wants it becomes really interesting to not mess with translation ;)
I still would be happy if could see this problem - it could help for future. So I will be very happy if you at least PM me html for broken page (before you set not translation section). You can delete it, take translation result (best in polish) and set it back :)
NLP-er
08-15-2009, 01:17 AM
Please look for me :)
http://www.teenforumz.com/your-body-mind/?language=ru
I switch to Polish ;) Looks fine (like for automatic translation :D).
I see that you have topic about OOBE - I have sub forum about it ;) In polish :D
yahoooh
08-15-2009, 01:41 AM
perfect work
i still have the vbseo issue for threads but the best thing that this product work for all vbulletin addons including: vba dyna ,vbgallery and others
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work
nlp- plz read your pm i will support u
NLP-er
08-15-2009, 02:01 AM
1.0.3 RELEASED
Big bug fixed ;) Mod doesn't mess in template anymore (it did in some specific cases)
Google has batch translation limit which I didn't realize. Thats why pages where was many texts to translate was messed up.
It is already fixed :)
yahoooh
08-15-2009, 02:03 AM
i see that when i use: REQUEST_URI
it will rewrite all addons but the links in vbulletin for language link not rewrite
when i use: VBSEO_URI
all vbulletin pages has rewrite lnaguge link but the addons will not
so
is there any way to make the product work for vbulletin and any thing has rewrite roles to use VBSEO_URI
and if not it will use
REQUEST_URI
NLP-er
08-15-2009, 02:05 AM
Actually this is messing up templates for example here:
http://www.teenforumz.com/your-body-mind/?language=fi
http://www.teenforumz.com/your-body-mind/?language=ru
Theyre going awfully weird.
I am using firefox latest.
I also notice this, when a flag is first clicked it wont load the templates perfect but once the flags been clicked again it loads the templates as normal.
ALREADY FIXED IN 1.0.3!!!
NLP-er
08-15-2009, 02:06 AM
perfect work
i still have the vbseo issue for threads but the best thing that this product work for all vbulletin addons including: vba dyna ,vbgallery and others
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work
nlp- plz read your pm i will support u
Ok. Going to PM ;)
NLP-er
08-15-2009, 02:11 AM
i see that when i use: REQUEST_URI
it will rewrite all addons but the links in vbulletin for language link not rewrite
when i use: VBSEO_URI
all vbulletin pages has rewrite lnaguge link but the addons will not
so
is there any way to make the product work for vbulletin and any thing has rewrite roles to use VBSEO_URI
and if not it will use
REQUEST_URI
ALREADY FIXED IN 1.0.4!!!
NOt really sure that understood it fully, but yes - why not ;)
Seriously - need more info. Best if I can see what you writing about. If you will give me acess to forum which has such bechawior (can be test instance) I can made necessary changes in my mod :)
yahoooh
08-15-2009, 02:48 AM
still :
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work
NLP-er
08-15-2009, 04:56 AM
1.0.4 RELEASED
Bug fixed with translation of '0' string.
Also added little feature - if some parts of your forum uses vbSEO and some are not then now flags will have appropriate URL's everywhere :)
NLP-er
08-15-2009, 05:00 AM
still :
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work
What is the difference? What is using this lang attribute? And what for?
bollie
08-15-2009, 05:02 AM
This is FAQ :)
1. Can I add translated pages to sitemap?
Yes - very easy :) install vbSEO Sitemap Generator (it is free) and edit one file: vbseo_sitemap_functions.php in vbseo_sitemap directory.
Find:
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
And place under it:
//additional code
$alanguages = array ('sq', 'ar','bg', 'ca', 'zh-CN', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'tl', 'fi', 'fr', 'gl', 'de', 'el', 'iw', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'mt', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sv', 'zh-TW', 'th', 'tr', 'uk', 'vi', 'sq', 'ca', 'et', 'tl', 'gl', 'hi', 'id', 'lv', 'lt', 'mt', 'sl', 'uk', 'vi');
if(!$archived)
foreach($alanguages as $language) {
$vbseo_stat['t']++;
vbseo_add_url(vbseo_url_thread($threadrow, $p, $archived).'?language='.$language, $prior, $threadrow['lastpost'], $freq);
}
//end additional code
NOTE: REMOVE YOUR DEFAULT LANGUAGE CODE from $alanguages
Also if you disabled some languages in option panel you have to delete it codes.
So to be sure whole code with some lines under and bellow will look like:
for($p=1; $p<=$totalpages; $p++)
{
//additional code
$alanguages = array ('sq', 'ar','bg', 'ca', 'zh-CN', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'tl', 'fi', 'fr', 'gl', 'de', 'el', 'iw', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'lt', 'mt', 'no', 'pl', 'pt', 'ro', 'ru', 'sr', 'sk', 'sl', 'es', 'sv', 'zh-TW', 'th', 'tr', 'uk', 'vi', 'sq', 'ca', 'et', 'tl', 'gl', 'hi', 'id', 'lv', 'lt', 'mt', 'sl', 'uk', 'vi');
if(!$archived)
foreach($alanguages as $language) {
$vbseo_stat['t']++;
vbseo_add_url(vbseo_url_thread($threadrow, $p, $archived).'?language='.$language, $prior, $threadrow['lastpost'], $freq);
}
//end additional code
$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
);
Pice of cake :)
2. I have warnings in safe mode - what to do?
Just turn off save mode - it is DEPRECATED in php and not supported in future versions. See here for details:
http://us2.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
Parse error: syntax error, unexpected ';' in /home/xxxxx/domains/xxxxxxxxxxx/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 310
NLP-er
08-15-2009, 05:06 AM
Parse error: syntax error, unexpected ';' in /home/xxxxx/domains/xxxxxxxxxxx/public_html/vbseo_sitemap/vbseo_sitemap_functions.php on line 310
Sorry - I wrote under - should be above ;) See in example.
Thanks for letting me know :) Already fixed in first post :)
yahoooh
08-15-2009, 05:14 AM
for example :
http://www.forum.simple-nlp.pl/?language=en
show the source:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pl">
it should also replace pl to be:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
this was work in your modified version which is graved now
bollie
08-15-2009, 05:20 AM
Sorry - I wrote under - should be above ;) See in example.
Thanks for letting me know :) Already fixed in first post :)
Thanks
you use paypal ?
yahoooh
08-15-2009, 05:38 AM
also i want to prevent translation of the users name
can i use groupuser
and but code before and after user name
so it will prevent translations
crazymilk
08-15-2009, 10:04 AM
loaded up but flags images not shown?
chick
08-15-2009, 10:36 AM
loaded up but flags images not shown?
Same here on the flags, I have them in the proper location according to mouse over on the flag, using 3.8.4 vbulletin and they do not show.
jaconi
08-15-2009, 10:42 AM
Thanks for note :)
1) Can you give me link to your forum? On my side it is ok and I want to see what happens. I need to reproduce error to be able to work with it and it's working fine on my forum.
See PM , but already working , thanks to your update
ALREADY CORRECTED IN 1.0.2 - I think - I cannot reproduce, but found typo in variable name so it should solve the problem of error :) Tell me what with those translations on your board (link would be helpful).
2) About flags - I must to mess smoesthing after testing - It don't works on my side too. I will corect this fast.
Is working fine now !
ALREADY CORRECTED IN 1.0.1
3) About going back after translation - click on flag for your language and you will go back or just dissable tracking
That did it ! , when i disable url tracking everything is fine ;)
So here everything is fine and working :)
still one question , because i'm not a coder or something :eek:
if i want no border around the flags , wich code ( no border ....) must i have , and were to place it ?
Best regards a happy guy :)
Ps : i use version 3.8.4 & 1.4zip
(i did clean install !)
elenh
08-15-2009, 11:14 AM
Flags are not showing.. but very nice addon!
basilrath
08-15-2009, 11:22 AM
same here ..... flags not showing
paths are incorrect
Sweeks
08-15-2009, 11:23 AM
Thanks for the update, I dont seem to be getting messed up templates now :D
One slight problem, with URL tracking on I have a small problem where once translated I cant get back to the primary language as it translates to a different language.
jaconi
08-15-2009, 11:23 AM
Flags are not showing.. but very nice addon!
Can you edit in CP
EP translator flags
$path = your directory where you uploaded flags ;)
Sweeks
08-15-2009, 11:29 AM
So here everything is fine and working :)
still one question , because i'm not a coder or something :eek:
if i want no border around the flags , wich code ( no border ....) must i have , and were to place it ?
Best regards a happy guy :)
Ps : i use version 3.8.4 & 1.4zip
(i did clean install !)
Try adding this to your styles additional CSS at the bottom:
img {border:0;}
jaconi
08-15-2009, 11:48 AM
Try adding this to your styles additional CSS at the bottom:
img {border:0;}
Thanks !!
is working !
elenh
08-15-2009, 11:56 AM
The path is correct but the images are not showing...
$path = '/vbenterprisetranslator_flags/';
The root folder of my forum is 'forum' i have try with that too but still not showing..
jaconi
08-15-2009, 12:05 PM
$path = '/yourforum/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = yourforum.$path;
that should be working
it's working here
elenh
08-15-2009, 12:10 PM
$path = '/forum/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = forum.$path;
}
still not showing the flags.. :(
basilrath
08-15-2009, 12:13 PM
$path = '/yourforum/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = yourforum.$path;
that should be working
it's working here
no flags here either ...... wheres the php code to change the $path
chick
08-15-2009, 12:29 PM
My path is /home/name/public_html
I have them there and additionally inserted the folder elsewhere too on the hope they would show..... and still not showing.
basilrath
08-15-2009, 12:30 PM
the problem is within the product xml
the paths need changing
jaconi
08-15-2009, 12:31 PM
plugin manager > Ep translator flags
elenh
08-15-2009, 12:37 PM
plugin manager > Ep translator flags
I have changed the path like you say but still not showing...
chick
08-15-2009, 12:40 PM
I too changed the plugin path and it did not work, should I change it in the product xml and reupload??
basilrath
08-15-2009, 12:43 PM
hmmmmmmmmm still no flags
paths changed
strange any thoughts?
basilrath
08-15-2009, 12:49 PM
arrrrrrrrrrrrr !
i have sussed this problem ............... flags showing
elenh
08-15-2009, 12:56 PM
arrrrrrrrrrrrr !
i have sussed this problem ............... flags showing
Yeah? Haha tell us how.. please?
chick
08-15-2009, 12:59 PM
Yes geez give a clue please
basilrath
08-15-2009, 01:04 PM
ok
plugin manager > vB Enterprise Translator - Flags
look for the codeline:
$path = '/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = DIR.$path;
}
if your forum is like my path ie...........http://www.yoursite.co.uk/forum/vbenterprisetranslator_flags
then change code to this:
$path = '/forum/vbenterprisetranslator_flags/';
if ('/' != DIR ) {
$path = $path;
}
NLP-er
08-15-2009, 01:05 PM
Thanks
you use paypal ?
My paypal account: michal.podbielski@wp.pl
Great thanks! :)
NLP-er
08-15-2009, 01:07 PM
also i want to prevent translation of the users name
can i use groupuser
and but code before and after user name
so it will prevent translations
You can modify templates which are generating username and set username in translation save area - see in mod description in features :)
elenh
08-15-2009, 01:08 PM
Lol is working.Thanks my friend.
basilrath
08-15-2009, 01:09 PM
oh and the additional css
img {border:0;}
to remove border from icons
NLP-er
08-15-2009, 01:10 PM
loaded up but flags images not shown?
ALREADY RESOLVED IN 1.0.5
Link please and tell me your settings for flags. Did you uploaded everything from upload directory? :)
chick
08-15-2009, 01:11 PM
They are showing now, the issue is this and must be this below
$path = $path;
NLP-er
08-15-2009, 01:15 PM
Same here on the flags, I have them in the proper location according to mouse over on the flag, using 3.8.4 vbulletin and they do not show.
ALREADY RESOLVED IN 1.0.5
Also - link please :)
NLP-er
08-15-2009, 01:17 PM
So here everything is fine and working :)
still one question , because i'm not a coder or something :eek:
if i want no border around the flags , wich code ( no border ....) must i have , and were to place it ?
Best regards a happy guy :)
Ps : i use version 3.8.4 & 1.4zip
(i did clean install !)
You can modify template for flag and set border="0" inside of img tag, or modify css, but 1st one is much easier :)
oh - if you mean about border around all flags then edirt template for flags start and set border for div
NLP-er
08-15-2009, 01:21 PM
Thanks for the update, I dont seem to be getting messed up templates now :D
One slight problem, with URL tracking on I have a small problem where once translated I cant get back to the primary language as it translates to a different language.
ALREADY RESOLVED IN 1.0.5
Just keep available flag for your language - it will allow you to go back :)
Sweeks
08-15-2009, 01:22 PM
You can modify template for flag and set border="0" inside of img tag, or modify css, but 1st one is much easier :)
oh - if you mean about border around all flags then edirt template for flags start and set border for div
border="0" is deprecated, he should use the CSS alternative either like this for all of his sites images:
img {border:none;}
or add the a class to the flags and the following so it only applies to the flags images:
img.flags {border:none;}
:)
NLP-er
08-15-2009, 01:22 PM
Flags are not showing.. but very nice addon!
ALREADY RESOLVED IN 1.0.5
Link and settings for flags plese :)
NLP-er
08-15-2009, 01:23 PM
same here ..... flags not showing
paths are incorrect
ALREADY RESOLVED IN 1.0.5
What is wrong with the paths? :)
Sweeks
08-15-2009, 01:24 PM
I have a slight problem and im not sure if Firefox is messed up, its as if the flag images arent being cached by FF for me:
Teen Forums (http://www.teenforumz.com)
Look at the footer as you load the page each time it seems to reload the flag images.
NLP-er
08-15-2009, 01:29 PM
The path is correct but the images are not showing...
$path = '/vbenterprisetranslator_flags/';
The root folder of my forum is 'forum' i have try with that too but still not showing..
ALREADY RESOLVED IN 1.0.5
Actually it is:
$path = '/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = DIR.$path;
}
Please give me link to your forum or at least leat me see html generated for flags.
NLP-er
08-15-2009, 01:36 PM
ok
plugin manager > vB Enterprise Translator - Flags
look for the codeline:
$path = '/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = DIR.$path;
}
if your forum is like my path ie...........http://www.yoursite.co.uk/forum/vbenterprisetranslator_flags
then change code to this:
$path = '/forum/vbenterprisetranslator_flags/';
if ('/' != DIR ) {
$path = $path;
}
ALREADY RESOLVED IN 1.0.5
Hello :) I was hoping that this if clause will do it automatically. I want to set generic solution working for everyone without any editing. Byt my forum uses root directory and I dont have a possibility to test it. Can somebody set test forum with different directory, or give me access to existing one? I need access to admincp and ftp. Great thanks for someone who will be so kind :) It will alow me to fix it in next release :)
basilrath
08-15-2009, 01:37 PM
just change to .........
$path = '/forum/vbenterprisetranslator_flags/';
if ('/' != DIR) {
$path = $path;
}
fixes the issue
basilrath
08-15-2009, 01:39 PM
i will set one up now
so the problem is global..... with no editing needed
NLP-er
08-15-2009, 01:40 PM
They are showing now, the issue is this and must be this below
$path = $path;
I don't get it :)
NLP-er
08-15-2009, 01:41 PM
border="0" is deprecated, he should use the CSS alternative either like this for all of his sites images:
img {border:none;}
or add the a class to the flags and the following so it only applies to the flags images:
img.flags {border:none;}
:)
Even better :)
NLP-er
08-15-2009, 01:46 PM
I have a slight problem and im not sure if Firefox is messed up, its as if the flag images arent being cached by FF for me:
Teen Forums (http://www.teenforumz.com)
Look at the footer as you load the page each time it seems to reload the flag images.
Check does somesthing is sending header for no cache.
NLP-er
08-15-2009, 01:47 PM
i will set one up now
so the problem is global..... with no editing needed
ALREADY RESOLVED IN 1.0.5
Great thanks :):up: PM me details - I wil fix it once for all :)
jaconi
08-15-2009, 01:51 PM
Not translated save areas - if you need something to be not translated simply edit appropriate template and put it between <!--START vBET NOT TRANSLATED AREA--> and <!--END vBET NOT TRANSLATED AREA-->
What is the name of the template ?
NLP-er
08-15-2009, 01:58 PM
What is the name of the template ?
You can put it whereever you want... In every template you want - the name? It depends what you want to put in translation save area.
jaconi
08-15-2009, 02:08 PM
want - the name? It depends what you want to put in translation save area.
just username
but i'm a newbie with VB so don't know where to add it :erm:
vktechnology
08-15-2009, 02:21 PM
wowww unbelieveable
This translator is very fast....
mode of the month
NLP-er
08-15-2009, 02:46 PM
just username
but i'm a newbie with VB so don't know where to add it :erm:
Hmmm... In many places... Username is shown in navbar, it is shown in postbit and also in legacy version. It would be best if you look for templates which include:
$lastpostinfo['lastposter']
or
$bbuserinfo[username]
or
$post[musername]
or
$post[username]
I don't guarantee this is all :)
Sweeks
08-15-2009, 02:48 PM
Nominated for MOTM :)
NLP-er
08-15-2009, 02:50 PM
wowww unbelieveable
This translator is very fast....
mode of the month
Took me some time to do this :) Thanks for appreciation :):up:
NLP-er
08-15-2009, 02:51 PM
Nominated for MOTM :)
:D:D:D
imported_silkroad
08-15-2009, 03:59 PM
I do not recommend people use the shared mod for the vBSEO sitemap generator for the following reasons:
The mod "interweaves" the language links (link.html?language=flag) in a serial manner, so when you work with Google sitemaps, you have no idea how much of the translated pages have been indexed in your sitemaps.
This is OK, and you can certainly do this "kludge" if you wish, if you are not comfy with a little manual labor and command line performance :D
If you want more control over your sitemaps (so you can submit Chinese language sitemaps to China, etc. and also watch the indexing process of each language) then I advise you to do something like this (what we do and it works great!):
(1) Copy the vBSEO sitemap files to another directory, for example for Korean, you could create a /sitemaps/ko directory and copy all the sitemaps from the ./vbseo_sitemaps/data directory over there.
(2) Unzip all the files with gzip -d.
(2) Edit the index file, sitemap_index.xml and put the path to the directory where you have the specific language sitemaps. You can do this with vi, for example, in 2 seconds, or sed in about the same time or less.
(3) Use sed to append ?language=flag, for example ?language=ko (for Korean) at the end of your loc files, for example </loc> tag, sed to ?language=ko</loc> This takes about 3 - 5 seconds on a big site with a 400K links in the sitemap.
(4) gzip the files.
(5) Manually add the sitemap -- sitemap/ko/sitemap_index.xml.gz (in the example above) to your favorite search engine webmaster dashboard :D
Well, you don't have to follow our advice, but that is how we do it, and we like it much better than the "interwoven, giant, humongus sitemap" method hack provided so far.
You certainly can do it that way, if you have a small site and don't actively manage your sitemaps. Or you can do it that way if you don't care :p
However, if you want to observe / manage the actual progress of how your various languages are indexed, I recommend you make a sitemap_index.xml.gz for each language, as outlined above. It takes only about 15 - 30 seconds max for each sitemap, so if you use only the top 10 Internet-languages like we do, then it only takes a few minutes, between 5 and 10 minutes manual labor.
Then again, you can use any method you like :D
I am simply sharing how we do it, and it works great. We tried "the other way" and found it "unmanagable" for a site with over 400K links in the origin language sitemap. It take a while for Google to index a large sitemap anyway, so we recommend you focus on the top 10 Internet-languages for maximum benefit :up:
Cheers!
LoveStream
08-15-2009, 04:28 PM
Hello, I greet you again.
This time do you works alone this product? Anyway I need more efficient version to run.
I would like to say thank you.
Well, what least minimum version of PHP or MySQL needed to run this module?
Can I install it on the PHP 4.x.x?
Yours.
NLP-er
08-15-2009, 04:51 PM
Hello, I greet you again.
This time do you works alone this product? Anyway I need more efficient version to run.
I would like to say thank you.
Well, what least minimum version of PHP or MySQL needed to run this module?
Can I install it on the PHP 4.x.x?
Yours.
This time it is whole mine. Each line of code. My own new algorithms, DB. Everthing :)
About minimum mysql and php - if vbulletin is working this mod should be working ;)
Unfortunatelly I don't know mnimum - but it is very easy to install and uninstall, so just try :)
LoveStream
08-15-2009, 05:05 PM
This time it is whole mine. Each line of code. My own new algorithms, DB. Everthing :)
About minimum mysql and php - if vbulletin is working this mod should be working ;)
Unfortunatelly I don't know mnimum - but it is very easy to install and uninstall, so just try :)
Good Coder, Thanks for very quick reply.
I install it and tested under PHP 4.x.x and I found it runs very well.
Now I have to plan it on to our main site for the active services.
But I have to set images border to "0".
Now, this very fast translate I found, The speed is very satisfied to me.
My next concern is if is possible to translate very long text in once trial without it's length limit.
I hope that.
And I will report later after it installed.
Thank you again. :)
NLP-er
08-15-2009, 05:22 PM
1.0.5 RELEASED
Flags showing correctly for forums in subdirectory (relative path used).
Corrected returning to base language when translation tracking is on.
Enjoy :)
basilrath
08-15-2009, 05:53 PM
Nice job and i have quite a lot of foriegn members within the site so if all is good ....... m.o.m
Sweeks
08-15-2009, 06:02 PM
Excellent update and it sorted out my little problem too :)
Another donation will be coming your way soon as possible! :D
Sweeks
08-15-2009, 06:11 PM
There is one thing I notice about this mod that the old one didnt do and that it allows translation of online.php, todays posts and every vbulletin page going :)
Nice!
LoveStream
08-15-2009, 07:16 PM
Hello.
Sometimes when I chage the whole pages this warning occurs. I think this is not critical but it seems to be some conflict with in header.
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_yui.php:80) in [path]/includes/vbenterprisetranslator_functions.php on line 126
Thank you.
jaconi
08-15-2009, 07:19 PM
Hmmm... In many places... Username is shown in navbar, it is shown in postbit and also in legacy version. It would be best if you look for templates which include:
$lastpostinfo['lastposter']
or
$bbuserinfo[username]
or
$post[musername]
or
$post[username]
I don't guarantee this is all :)
I'm looking to arrange that (above)!!
the rest is working great :up:
Marked as installed & donated ;)
ThePixel
08-15-2009, 08:37 PM
Its dont work for me ... gets error.. se here: http://thepixel.org/forum/index.php
Help Please
yahoooh
08-15-2009, 10:21 PM
still :
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work
fixed just add this code in :
$output = str_replace('lang="ar"', 'lang="'.$_GET['language'].'"', $output);
after
$language = $_GET['language'];
if (vbet_isLangSupported($language) && ($language != $vbulletin->options['vbenterprisetranslator_forumlanguage'])) {
and change "ar" to your default language u use n your site
ThePixel
08-16-2009, 03:04 AM
Its dont work for me ... gets error.. se here: http://thepixel.org/forum/index.php
Help Please
Eanybody som can help me ?
yahoooh
08-16-2009, 03:15 AM
did u have curl ? in your server
it will not work without it
imported_silkroad
08-16-2009, 05:30 AM
Many of you might have a busy site (like us) and things can slow down during your peak traffic times. Or, you just might want to speed up serving your translated pages, regardless of the speed of translation across the net, by pre-fetching your translations and populating your dB cache.
We do this very simply, and manually, during off-peak times using the urllist.txt file generated by vBSEO, as follows (linux wget example):
(1) Copy the ./data/urllist.txt file to something like ja.txt (we will use Japanese as an example here).
(2) Simply use either vi or sed (or your favorite tool) to append ?language=ja (or whatever language you use) to the end of each URL. Example: %s/$/?language=ja/
(3) Optional: Remove the posts and index URLs if you want to focus on showthreads and tags, etc. This step is optional, and can be easily done with grep.
(4) Run this command in the same directory:
wget -b -O /dev/null -i ja.txt -o links.txt -U your_site_wget_ja
Basically, wget will run in the background (-b), send the output to /dev/null, and GET every URL in the ja.txt (-i), send the output to (optional) links.txt (-o) and then to track your progress in the log files (optional) you can specify a string for your user agent (-U).
Also, you can add the wait (-w) option in wget if you need it, but we run this off peak, so nevermind.
I found using wget against a modified version of urllist.txt works great to prefetch translations :D
This is very and you can easily run it on your (linux) server. Enjoy :cool:
TheLastSuperman
08-16-2009, 08:31 AM
I have the Forum Home tabs mod installed NPL-er and it will not translate the tabs content, cache produces a DB error but I disable and it works fine on all other pages except index using Tabbed Forum Home Mod by Bobster65.
Any help would be appreciated - Thanks! & MOTM ;)
S-MAN
NLP-er
08-16-2009, 10:07 AM
Good Coder, Thanks for very quick reply.
I install it and tested under PHP 4.x.x and I found it runs very well.
Now I have to plan it on to our main site for the active services.
But I have to set images border to "0".
Now, this very fast translate I found, The speed is very satisfied to me.
My next concern is if is possible to translate very long text in once trial without it's length limit.
I hope that.
And I will report later after it installed.
Thank you again. :)
Really long texts translation is planned for next major release :)
But you can be pretty cool even with that limitation. NOTE: we are talking about 1800 characters of plain text - It means there is no even any break inside nor image or link. Even if people write really long posts there are lot of breaks there - so it is automatically truncated and translated right now :)
It has to be over 1800 characters without html part inside - only in this case it is not translated now. And it will be in next major release :) I just needed to see that it is worth to invest more time, and with all yours appreciation and support I'm sure that it is :)
NLP-er
08-16-2009, 10:15 AM
Nice job and i have quite a lot of foriegn members within the site so if all is good ....... m.o.m
Great thanks :) It will be even better in next major release :)
sensimilla
08-16-2009, 10:50 AM
How its different from the other hack ?
Czym sie rozni twoj hack od poprzedniego w ktorym byly chyba podziekowania dla Ciebie ?
Dzieki z gory
crazymilk
08-16-2009, 11:43 AM
how do i get it to show up in vbadvance?
NLP-er
08-16-2009, 11:48 AM
Hello.
Sometimes when I chage the whole pages this warning occurs. I think this is not critical but it seems to be some conflict with in header.
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_yui.php:80) in [path]/includes/vbenterprisetranslator_functions.php on line 126
Thank you.
Hello.
I don't have such file /includes/class_yui.php - so it have to be from some mod. And this mod causes conflict. Please tell me from which mod it is (maybe it is included in file) or PM me content of that file - I will look at it :)
NLP-er
08-16-2009, 11:53 AM
Its dont work for me ... gets error.. se here: http://thepixel.org/forum/index.php
Help Please
Please give ma error message from logs (ask server staf about it). Probably it is server configuration issue. Do you have CURL installed?
NLP-er
08-16-2009, 12:38 PM
fixed just add this code in :
$output = str_replace('lang="ar"', 'lang="'.$_GET['language'].'"', $output);
after
$language = $_GET['language'];
if (vbet_isLangSupported($language) && ($language != $vbulletin->options['vbenterprisetranslator_forumlanguage'])) {
and change "ar" to your default language u use n your site
In next release this will be done by default without any manual modification.
NLP-er
08-16-2009, 12:43 PM
:):):)
ThePixel
08-16-2009, 12:45 PM
Please give ma error message from logs (ask server staf about it). Probably it is server configuration issue. Do you have CURL installed?
How do i install that ?
NLP-er
08-16-2009, 12:51 PM
I have the Forum Home tabs mod installed NPL-er and it will not translate the tabs content, cache produces a DB error but I disable and it works fine on all other pages except index using Tabbed Forum Home Mod by Bobster65.
Any help would be appreciated - Thanks! & MOTM ;)
S-MAN
Please PM me DB errors :) Cache is to use it and dissable should be an option not necessary. So I will gladly see what happens so in next release it will works for everyone :)
Pleae give me URL to your form so I will be ble to see what you are writing about this Forum Home tabs. 1 hint - does tabs are texts or images? It will not translate images ;) Also values of html tags attrubites are not translated (it would crasch whole site) - but I can make specific things be translated in next release. First - give me URL so I will see it :)
About not translating index with Tabbed Forum Home - also let me look first :)
NLP-er
08-16-2009, 12:56 PM
How its different from the other hack ?
Czym sie rozni twoj hack od poprzedniego w ktorym byly chyba podziekowania dla Ciebie ?
Dzieki z gory
In 3 words:
Better, faster, easier
In more words ;):
Much, much faster. Can track translation in URL's. Is alive (old one is in graveyard). It is mine :p Is fully integrated with vB. Is easy to install. Is easy to configure. Don't require any manual modification of DB or template.
NLP-er
08-16-2009, 01:00 PM
how do i get it to show up in vbadvance?
Don't have vbadvanced. So if you like this mod to support vbadvanced give me access to forum AdminCP and FTP - can be test forum with test content and vbadvanced installed.
You can also try to do this manually by Custom flags place and modification of some template. As I wrote I don't use vbadvanced so cannot give more details now. Can support only with access to something what have vbadvanced
NLP-er
08-16-2009, 01:03 PM
How do i install that ?
http://pl2.php.net/manual/en/curl.installation.php
Lee G
08-16-2009, 04:19 PM
Just installed this and tried running it, the flags showed up but, when clicking on them, a data base error sprung up
Database error in vBulletin 3.8.1:
Invalid SQL:
SELECT cache.originaltext as originaltext, cache.translated as translated FROM vbenterprisetranslator_cache_medium help, vbenterprisetranslator_cache_medium cache WHERE help.originaltext='Life In Spain, Costa Blanca British Expatriates community forums' AND help.tl='ca' AND cache.serie=help.serie;
MySQL Error : Table 'thespain_vbulletinsql.vbenterprisetranslator_cach e_medium' doesn't exist
Error Number : 1146
Request Date : Sunday, August 16th 2009 @ 07:12:38 PM
Error Date : Sunday, August 16th 2009 @ 07:12:39 PM
Script : http://www.thespainforum.com/?language=ca
Referrer : http://www.thespainforum.com/
IP Address : 84.232.66.210
Username : Lee
Classname : vB_Database
MySQL Version : 4.1.22-standard-log
Any ideas what could have caused that :o
Just found the problem only occures when the cache option is turned on
GoTTi
08-16-2009, 05:28 PM
nice mod thanks for the update. its working now for me.
got a question, is the language suppose to stay on what people choose when browsing through the site or do they have to click on the flag every page they goto?
if i goto the forums, click the flag for a language, then go into a subforum it defaults back to english. then if i click a flag and it refreshes and i goto a thread, its back to default english. is it suppose to do that or stay on the language i select?
GoTTi
08-16-2009, 05:29 PM
i see the URL tracking option and mine is set to yes, but it isnt holding the language. it keeps going to english.
GoTTi
08-16-2009, 05:31 PM
oh i know why! i use the highlight mod for the forums. when mouse over on threads or forums, it highlights the entire block, and you can click the block to goto your thread or forum, instead of directly mousing over the thread name or forum name and clicking it to enter the link your clicking....
how can i fix this with the mouseover effect?
here is the mod i use: https://vborg.vbsupport.ru/showthread.php?t=127515
ThePixel
08-16-2009, 05:57 PM
http://pl2.php.net/manual/en/curl.installation.php
I'm hosted by one.com
jaconi
08-16-2009, 06:35 PM
I'm hosted by one.com
look in CP vbulletin / Maintenance / php info
scroll down and you see Curl ;)
look if it's enabled
ThePixel
08-16-2009, 09:55 PM
look in CP vbulletin / Maintenance / php info
scroll down and you see Curl ;)
look if it's enabled
Its cURL support - enabled ??
NLP-er
08-17-2009, 03:42 AM
Just installed this and tried running it, the flags showed up but, when clicking on them, a data base error sprung up
Any ideas what could have caused that :o
Just found the problem only occures when the cache option is turned on
DB is used only when cache is on :)
About error - you have problem with TABLE_PREFIX or DB. Did you change it after plugin installation? Plugin adds 3 tables to your vBulletin DB and do it safely - it means using TABLE_PREFIX. It table is not wisible I think somesthing wronh happend during installation or TABLE_PREFIX was changed. Uninstall and install mod again and tell does somestnig change :)
NLP-er
08-17-2009, 03:43 AM
nice mod thanks for the update. its working now for me.
got a question, is the language suppose to stay on what people choose when browsing through the site or do they have to click on the flag every page they goto?
if i goto the forums, click the flag for a language, then go into a subforum it defaults back to english. then if i click a flag and it refreshes and i goto a thread, its back to default english. is it suppose to do that or stay on the language i select?
It is configurable :D Just see to options - also read known issues :)
NLP-er
08-17-2009, 03:44 AM
oh i know why! i use the highlight mod for the forums. when mouse over on threads or forums, it highlights the entire block, and you can click the block to goto your thread or forum, instead of directly mousing over the thread name or forum name and clicking it to enter the link your clicking....
how can i fix this with the mouseover effect?
here is the mod i use: https://vborg.vbsupport.ru/showthread.php?t=127515
Give me your forum link :)
NLP-er
08-17-2009, 03:59 AM
1.1.0 RELEASED :)
- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)
ENJOY! :D
imported_silkroad
08-17-2009, 05:41 AM
1.1.0 RELEASED :)
- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)
ENJOY! :D
Impressive!
This mod rocks.
Also, you might advise people, just to be safe with the Google Translate TOS, to add a link at the bottom of their forums which says something like:
"Language Translations by Google (http://www.google.com)"
That is what we do, because the Google Translate TOS requires giving credit when you use their services.
Cheers and Wow! Keep up the good work. I'll look at this in more detail soon!
sensimilla
08-17-2009, 07:28 AM
In 3 words:
Better, faster, easier
In more words ;):
Much, much faster. Can track translation in URL's. Is alive (old one is in graveyard). It is mine :p Is fully integrated with vB. Is easy to install. Is easy to configure. Don't require any manual modification of DB or template.
Thanks alot, it seems I will have to reinstall :)
Great job
sensimilla
08-17-2009, 07:55 AM
Any ideas how to make polish fonts beeing displayed correctly ?
demo : http://www.forum.simple-nlp.pl/?language=en
With the previous hack from the graveyard such problem didnt exist.
imported_silkroad
08-17-2009, 08:03 AM
Hey NLP-er,
Here is our recommended translation service by one of our team members. They use it and say it is a much better translation than Google.
It costs $100 per one forum / blog.
Maybe you can contact them and work out a revenue sharing relationship? :)
Or, you can add the support as an option for free, up to you, but I recommend a "backup plan" so you /we / us don't have only one translation service.
I think this is easy for you to add to the mod:
http://taragana.com/products/translator-plugin-gold/software/
Cheers!
FYI, developer guide here:
http://taragana.com/products/translator-plugin-gold/developer-guide/
Lee G
08-17-2009, 09:09 AM
Daft question, how and where do you get the google api key
imported_silkroad
08-17-2009, 09:12 AM
Daft question, how and where do you get the google api key
http://code.google.com/apis/ajaxsearch/signup.html
Lee G
08-17-2009, 10:11 AM
Cheers for that and the other tip about the footer link :up:
Top man imported_silkroad
Im still getting the data base errors, even after uninstalling the previous version and installing the new version fresh.
The strange thing is
Even with the cache turned off, if you add any that you wanted cached, the errors still happen, but only on those with a tick in the box.
Even with the cache turned off, page loads are a lot faster with the new version :up:
The only two new data basses I can see that have been created are
vbenterprisetranslator_cache
and
vbenterprisetranslator_cache_short
Great little mod, with my own testing so far :up:
NLP-er
08-17-2009, 10:25 AM
Impressive!
This mod rocks.
Also, you might advise people, just to be safe with the Google Translate TOS, to add a link at the bottom of their forums which says something like:
"Language Translations by Google (http://www.google.com)"
That is what we do, because the Google Translate TOS requires giving credit when you use their services.
Cheers and Wow! Keep up the good work. I'll look at this in more detail soon!
Thanks for hint. I will make it configurable in next release (basing on phrases) :)
NLP-er
08-17-2009, 10:26 AM
Daft question, how and where do you get the google api key
You have link in option panel - just in param description :)
Everything to make your live easier :D
NLP-er
08-17-2009, 10:34 AM
Any ideas how to make polish fonts beeing displayed correctly ?
demo : http://www.forum.simple-nlp.pl/?language=en
With the previous hack from the graveyard such problem didnt exist.
Hello - mod desn't translate content of html tags parameters.
And you are wrong - previous one had the same :) Also didn't translate parameters :)
That is why some parts are not translated. Translating those can crash whole site (I wil think about limited translation, for specific parameters in specific tags but it can decrase performance and is not critical).
Of course I can make not translated parts be shown correctly - like I did for translation save areas - so It will be in next release :)
NLP-er
08-17-2009, 10:38 AM
Hey NLP-er,
Here is our recommended translation service by one of our team members. They use it and say it is a much better translation than Google.
It costs $100 per one forum / blog.
Maybe you can contact them and work out a revenue sharing relationship? :)
Or, you can add the support as an option for free, up to you, but I recommend a "backup plan" so you /we / us don't have only one translation service.
I think this is easy for you to add to the mod:
http://taragana.com/products/translator-plugin-gold/software/
Cheers!
FYI, developer guide here:
http://taragana.com/products/translator-plugin-gold/developer-guide/
Ok :) I will look on that and talk to the guys :)
imported_silkroad
08-17-2009, 10:43 AM
On a different kind off-topic note :-)
We are thinking about changes this JQuery script to use GA to show which outbound links are clicked on, grouped by language:
http://www.carronmedia.com/extend-google-analytics-with-jquery/
We got an error in the script when we ran the example code, but it looks promising :)
NLP-er
08-17-2009, 10:55 AM
Cheers for that and the other tip about the footer link :up:
Top man imported_silkroad
Im still getting the data base errors, even after uninstalling the previous version and installing the new version fresh.
The strange thing is
Even with the cache turned off, if you add any that you wanted cached, the errors still happen, but only on those with a tick in the box.
Even with the cache turned off, page loads are a lot faster with the new version :up:
The only two new data basses I can see that have been created are
vbenterprisetranslator_cache
and
vbenterprisetranslator_cache_short
Great little mod, with my own testing so far :up:
You should have 3 cache tables - that is the problem and cause of errors. Have no idea why one didn't created (maybe some mysql version issues) - I could made research but for this I would need access to your admin cp, ftp, and mysql panel. So if you will be desperate enough just PM me ;)
Meantime - put creation code of medium cache table in mysql panel and see does some error messages occurs.
"CREATE TABLE " . TABLE_PREFIX . "vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(328),
translated VARCHAR(1000),
UNIQUE (originaltext, tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin"
Just change " . TABLE_PREFIX . " to tour table prefix value with dot. Let me know about results :)
About errors when cache disabled and checked for language - I found little bug (harmless - always can disable cache for language) and cache is working for 2nd languages group if enabled for language and disabled globally- will be corrected in next release :)
Page loads are really much faster even without cache :D There are lot less requests for translations to google (made several translations at once) - that's why it is so fast :D
Lee G
08-17-2009, 11:22 AM
Now your talking scary stuff :D
So if I dont have a cached version of the pages
I dont break any Google TOS
My data base stays about the same size as it already is and dont expand by factor what ever over night. No need to upgrade my VPS plan to the size of the internet X 10
Its only the sitemap that has gone from 8 pages to 84
The translation page loads are almost as quick as if they were cached at present.
As the saying goes, if it aint broken, dont try fixing it
Even with the couple of hours of running this, the hits look very promising so far
This is a great little hack so far. Keep up the good work :up:
Aclikyano
08-17-2009, 11:29 AM
doesnt work and shoots this error on top
Warning: Missing argument 3 for vbet_translateHTML(), called in [path]/includes/functions.php(5737) : eval()'d code on line 4 and defined in [path]/includes/vbenterprisetranslator_functions.php on line 385
imported_silkroad
08-17-2009, 01:08 PM
So if I dont have a cached version of the pages
I dont break any Google TOS
The Google TOS, strictly interpreted, says translated pages cannot be cached for over 15 days.
However, if you modify them (fix bad translations), etc. I don't think you should necessarily dump them.
Also, the intent of the TOS is to "Do No Harm" to Google, Google's customers, and The World. If you are keeping a cache longer than 15 days and are not doing any harm, then I don't think your are violating the spirit of the TOS.
For example, if you are running Google Adsense and your translations are generating a lot of traffic for Google, and good revenue for Google, I don't think Google will be unhappy with you, but of course they cannot publish such a policy.
On the other hand, if you are caching translations and using them to drive traffic to Google's big competition, then Google might care.
So, if you want to be on the safe side, just drop all translations in the database that are older than 15 days, and you will be in compliance with the most strict interpretation of the TOS.
Don't Worry. Be Happy. Do No Harm.
Lee G
08-17-2009, 01:34 PM
Are you in any violation if you have your sitemap done with links to the new pages, even if the new pages are not stored in the cache?
My own forum might take a it of time to get indexed, since I now have over 1 million pages in the sitemap :D
Before using this mod
Total Indexed URLs: 177936
Total Processing Time: 217.41 seconds
After using this mod
Total Indexed URLs: 1663966
Total Processing Time: 1,738.03 seconds
And Im only using limited languages as per your earlier advice, plus dropped a load of pages I dont need indexed :up:
imported_silkroad
08-17-2009, 01:42 PM
Are you in any violation if you have your sitemap done with links to the new pages, even if the new pages are not stored in the cache?
Of course not.
Why would you "even" think that?
Please don't fabricate TOS violations out of "thin air" ... it is not good for the environment :-)
LoveStream
08-17-2009, 04:33 PM
1.1.0 RELEASED :)
- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)
ENJOY! :D
Great Release!
Actually the long sentences were translated successfully.
Now I begin in service. :):up:
Yours.
NLP-er
08-17-2009, 05:28 PM
Now your talking scary stuff :D
So if I dont have a cached version of the pages
I dont break any Google TOS
My data base stays about the same size as it already is and dont expand by factor what ever over night. No need to upgrade my VPS plan to the size of the internet X 10
Its only the sitemap that has gone from 8 pages to 84
The translation page loads are almost as quick as if they were cached at present.
As the saying goes, if it aint broken, dont try fixing it
Even with the couple of hours of running this, the hits look very promising so far
This is a great little hack so far. Keep up the good work :up:
:D:D:D Magic ;)
NLP-er
08-17-2009, 05:29 PM
This is a great little hack so far. Keep up the good work :up:
And how about your issue with cache? You created mediu cahce table manually? It works for you now?
NLP-er
08-17-2009, 05:33 PM
Great Release!
Actually the long sentences were translated successfully.
Now I begin in service. :):up:
Yours.
Heh... Long sentences - mean solid text over 1800 characters without any breaks, images, links. If you have any breaking line then in html you have <br/> and it means that this is not solid text anymore - all releases of this mod translates such text.
This release translates even texts over 1800 characters of solid text. No matter how long it is :)
NLP-er
08-17-2009, 05:43 PM
doesnt work and shoots this error on top
Warning: Missing argument 3 for vbet_translateHTML(), called in [path]/includes/functions.php(5737) : eval()'d code on line 4 and defined in [path]/includes/vbenterprisetranslator_functions.php on line 385
Strange. vbet_translateHTML is called only twice and in booth places there are 3 parametes (you can check it looking for vbet_translateHTML in includes/vbenterprisetranslator_functions.php and product file). Also I have other vB version cause my functions.php have empty line 5737. SO it is hard for me to help you.
1. Upload all files again.
2. If still happens give me code around line 5737 in your includes/functions.php
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
NLP-er
08-17-2009, 05:50 PM
The Google TOS, strictly interpreted, says translated pages cannot be cached for over 15 days.
However, if you modify them (fix bad translations), etc. I don't think you should necessarily dump them.
Also, the intent of the TOS is to "Do No Harm" to Google, Google's customers, and The World. If you are keeping a cache longer than 15 days and are not doing any harm, then I don't think your are violating the spirit of the TOS.
For example, if you are running Google Adsense and your translations are generating a lot of traffic for Google, and good revenue for Google, I don't think Google will be unhappy with you, but of course they cannot publish such a policy.
On the other hand, if you are caching translations and using them to drive traffic to Google's big competition, then Google might care.
So, if you want to be on the safe side, just drop all translations in the database that are older than 15 days, and you will be in compliance with the most strict interpretation of the TOS.
Don't Worry. Be Happy. Do No Harm.
That's why default value of cache time to live is 15. Every night mod automatically removes old cache. Everybody is happy :)
Sweeks
08-17-2009, 06:04 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.
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']))
{
if(preg_match('/^..\//',$_GET['vbseourl']))
{
$_GET['language'] = substr($_GET['vbseourl'],0,2);
$_GET['vbseourl'] = substr($_GET['vbseourl'],3);
}
else if(substr($_GET['vbseourl'],0,5) == "zh-CN" || substr($_GET['vbseourl'],0,5) == "zh-TW")
{
$_GET['language'] = substr($_GET['vbseourl'],0,5);
$_GET['vbseourl'] = substr($_GET['vbseourl'],6);
}
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);
}
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} (language=)(..|zh-TW|zh-CN)$
RewriteRule ^(.*)$ http://www.YOURWEBSITEHERE.com/%2/$1? [L,R=301]
Just make sure to put the domain of your website instead of YOURWEBSITEHERE. Please note that this code assumes you are running vBSEO.
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
It isnt working for us:
Teen Forums (http://www.teenforumz.com)
Any ideas?
NLP-er
08-17-2009, 06:12 PM
New in faq:
1. I have indexed pages from old translator (with hl=) - what to do?
Thanks for solution to T2x :)
Just set rewrite rule in .htaccess - google will know that page have new place and will reindex it withaout any loss :)
RewriteCond %{QUERY_STRING} (hl=)(..|zh-TW|zh-CN)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1\?language=%2 [L,R=301]
NLP-er
08-17-2009, 06:14 PM
It isnt working for us:
Teen Forums (http://www.teenforumz.com)
Any ideas?
Also dont works on my forum - Page not found.
But thanks anyway - for now I have solition for redirect translations from old translator with hl= to new ones - see FAQ :)
Sweeks
08-17-2009, 06:15 PM
I was getting this:
/a/
Invalid Forum specified. If you followed a valid link, please notify the administrator
jaconi
08-17-2009, 06:53 PM
1.1.0 RELEASED :)
Thanks man :up:
just did the update and usernames where not translated :up: :up:
t.uzuner
08-17-2009, 09:28 PM
hi;
i am not using vbseo but
1)click flag open same page example english
2) click another link page automatically web site original language. how is this.
www.okulonceciyiz.biz
Sweeks
08-17-2009, 09:44 PM
hi;
i am not using vbseo but
1)click flag open same page example english
2) click another link page automatically web site original language. how is this.
www.okulonceciyiz.biz
Use the tracking option in this mods options :)
Aclikyano
08-17-2009, 10:44 PM
Strange. vbet_translateHTML is called only twice and in booth places there are 3 parametes (you can check it looking for vbet_translateHTML in includes/vbenterprisetranslator_functions.php and product file). Also I have other vB version cause my functions.php have empty line 5737. SO it is hard for me to help you.
1. Upload all files again.
2. If still happens give me code around line 5737 in your includes/functions.php
// parse PHP include ##################
($hook = vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false;
AFTER # signs starts line 5737
did what you said still got the errors...
LoveStream
08-18-2009, 03:04 AM
Heh... Long sentences - mean solid text over 1800 characters without any breaks, images, links. If you have any breaking line then in html you have <br/> and it means that this is not solid text anymore - all releases of this mod translates such text.
This release translates even texts over 1800 characters of solid text. No matter how long it is :)
Thanks for your instruction.
TheLastSuperman
08-18-2009, 03:51 AM
Please PM me DB errors :) Cache is to use it and dissable should be an option not necessary. So I will gladly see what happens so in next release it will works for everyone :)
Pleae give me URL to your form so I will be ble to see what you are writing about this Forum Home tabs. 1 hint - does tabs are texts or images? It will not translate images ;) Also values of html tags attrubites are not translated (it would crasch whole site) - but I can make specific things be translated in next release. First - give me URL so I will see it :)
About not translating index with Tabbed Forum Home - also let me look first :)
sorry off on a tangent as usual lol..
Hmm let's enable db caching and copy/paste the error hold tight...
Database error in vBulletin 3.8.4:
Invalid SQL:
SELECT cache.originaltext as originaltext, cache.translated as translated FROM vbenterprisetranslator_cache_medium help, vbenterprisetranslator_cache_medium cache WHERE help.originaltext='2142 Tournament C7: Aug 23rd, Battle #5 Map Downloads.' AND help.tl='sq' AND cache.serie=help.serie;
MySQL Error : Table 'dbnamewashere.vbenterprisetranslator_cache_medium ' doesn't exist
Error Number : 1146
Request Date : Monday, August 17th 2009 @ 09:15:19 PM
Error Date : Monday, August 17th 2009 @ 09:15:20 PM
Script : http://www.tournamentgamingworld.com/online/index.php?language=sq
Referrer : http://www.tournamentgamingworld.com/online/index.php
IP Address : hey hey now :p
Username : [TGW]GA|TheLastSuperman
Classname : vB_Database
MySQL Version : 4.1.22-max-log
Ok so I think it might be this conflicting w/ the cache:
https://vborg.vbsupport.ru/showthread.php?t=219874
As some of the originaltext in the error above is code I just added to that in the forumhome template to be one of the rotating content seen below the normal navbar location.
I'll try this in the morning, wife is home so time to get off computer :p
<!--START vBET NOT TRANSLATED AREA--> and <!--END vBET NOT TRANSLATED AREA-->
_____________________
The Tabs mod... I used images instead of the standard CSS but the tabs mod is here:
https://vborg.vbsupport.ru/showthread.php?t=175687
The forum I'm using this on is here:
http://www.tournamentgamingworld.com
Thanks for ANY help you can provide.
S-MAN
It isnt working for us:
Teen Forums (http://www.teenforumz.com)
Any ideas?
Can you tell me what version of apache you are running?
Edit: I have edited my above post with modified code for vbseo.php, this should fix any issues you have due to different server configuration :]
imported_silkroad
08-18-2009, 08:02 AM
Can you tell me what version of apache you are running?
Edit: I have edited my above post with modified code for vbseo.php, this should fix any issues you have due to different server configuration :]
FYI, we installed both versions of the vBSEO updated code (not the 301 code), just for testing, and neither worked for us.
We are running:
# apache2 -v
Server version: Apache/2.2.8 (Ubuntu)
Edit: Logfiles show 301 redirects (but does not redirect to the translated pages correctly...)
Example from logs:
.... /es/index.php HTTP/1.1" 301 - "-" "Opera/9.64 (Macintosh; PPC Mac OS X; U; en) Presto/2.1.1"
Note: We are still running the old "hl" code, so I changed "language" to "hl" in the vBSEO code ( _GET['language'] to _GET['hl'] )
Please reply via PM, if you like, since we are running the old "hl" code..... but I am not sure "it matters" since the logfile show the 301 redirects as above.
imported_silkroad
08-18-2009, 12:33 PM
NLP-er,
Here is another TO-DO on the feature request list, regarding:
Translation URL's tracking - if page is translated then links are changed to keep translation (it is smart – it will not change links going outside your forum, or links to images)
In the future, it might be good to have a simple JavaScript Popup (optional of course) that pops up when a user from a translated page referral arrives that says, in effect:
This page has been automatically translated by Google. If you would like to continue in this language, press here. If you would like to continue in English, press here.
(or something like that)
Not sure how that would effect search engines.... maybe it would not be good in that case!
Megatr0n
08-18-2009, 01:13 PM
I think this plugin is heaps better than Dave's. Has many more features than what he included.
woffie
08-18-2009, 01:50 PM
Installed on my test forum and worked perfectly. Installed on my real forum and I get a blank page on the index. No links or text visible, just the graphics. It is conflicting with something, just not sure what. Had to uninstall.
yahoooh
08-18-2009, 02:33 PM
NLP plz read pm i donate for this great work
thank u for this wondeful work
yahoooh
08-18-2009, 02:39 PM
NLP-er,
Here is another TO-DO on the feature request list, regarding:
In the future, it might be good to have a simple JavaScript Popup (optional of course) that pops up when a user from a translated page referral arrives that says, in effect:
.
(or something like that)
Not sure how that would effect search engines.... maybe it would not be good in that case!
it should be not javascript popup because may affect the crawler of se
it should be just text under flags as notice this page translated by google and may not be fully understood
something like that
and also optionally
NLP-er
08-18-2009, 02:57 PM
hi;
i am not using vbseo but
1)click flag open same page example english
2) click another link page automatically web site original language. how is this.
www.okulonceciyiz.biz
Do you have tracking URLs on?
imported_silkroad
08-18-2009, 02:58 PM
it should be not javascript popup because may affect the crawler of se
it should be just text under flags as notice this page translated by google and may not be fully understood
something like that
and also optionally
That is what I thought.
Good suggestion. Cheers.
woffie
08-18-2009, 03:00 PM
I found the issue with mine. You have to set a default language in the mod before it will work. Guess I missed that step. Working great, thanks!
NLP-er
08-18-2009, 03:02 PM
// parse PHP include ##################
($hook = vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false;
AFTER # signs starts line 5737
did what you said still got the errors...
LOL I think I know what it is. Probably you uploaded new files, bud didn't importend new product file :D I just checked and in previous version this method has less parameters. So made full update - new files on FTP and import new product file. Good lock ;):up:
woffie
08-18-2009, 03:09 PM
A great feature for this would be the ability for something that is posted into another language (other than the default) to be automatically translated into the default language.
NLP-er
08-18-2009, 03:12 PM
sorry off on a tangent as usual lol..
Hmm let's enable db caching and copy/paste the error hold tight...
Database error in vBulletin 3.8.4:
Invalid SQL:
SELECT cache.originaltext as originaltext, cache.translated as translated FROM vbenterprisetranslator_cache_medium help, vbenterprisetranslator_cache_medium cache WHERE help.originaltext='2142 Tournament C7: Aug 23rd, Battle #5 Map Downloads.' AND help.tl='sq' AND cache.serie=help.serie;
MySQL Error : Table 'dbnamewashere.vbenterprisetranslator_cache_medium ' doesn't exist
Error Number : 1146
Request Date : Monday, August 17th 2009 @ 09:15:19 PM
Error Date : Monday, August 17th 2009 @ 09:15:20 PM
Script : http://www.tournamentgamingworld.com/online/index.php?language=sq
Referrer : http://www.tournamentgamingworld.com/online/index.php
IP Address : hey hey now :p
Username : [TGW]GA|TheLastSuperman
Classname : vB_Database
MySQL Version : 4.1.22-max-log
Ok so I think it might be this conflicting w/ the cache:
https://vborg.vbsupport.ru/showthread.php?t=219874
As some of the originaltext in the error above is code I just added to that in the forumhome template to be one of the rotating content seen below the normal navbar location.
I'll try this in the morning, wife is home so time to get off computer :p
<!--START vBET NOT TRANSLATED AREA--> and <!--END vBET NOT TRANSLATED AREA-->
_____________________
The Tabs mod... I used images instead of the standard CSS but the tabs mod is here:
https://vborg.vbsupport.ru/showthread.php?t=175687
The forum I'm using this on is here:
http://www.tournamentgamingworld.com
Thanks for ANY help you can provide.
S-MAN
About error - you don't have medium cache table. Please set it manually (have no idea why it didn't create during installation - maybe some mysql version issues) - and in case of errors during creation please give me error measage.
CREATE TABLE " . TABLE_PREFIX . "vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(328),
translated VARCHAR(1000),
UNIQUE (originaltext, tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
Change " . TABLE_PREFIX . " to your table prefix if use any.
About translaion of images... :D - just go back to styles :)
NLP-er
08-18-2009, 03:27 PM
Can you tell me what version of apache you are running?
Edit: I have edited my above post with modified code for vbseo.php, this should fix any issues you have due to different server configuration :]
Still have:
/a/
Invalid Forum specified. If you followed a valid link, please notify the administrator
:/
About server - in admin CP maintenance tells me:
Server API UltraCGI/1.0 for IdeaWebServer
NLP-er
08-18-2009, 03:37 PM
FYI, we installed both versions of the vBSEO updated code (not the 301 code), just for testing, and neither worked for us.
We are running:
# apache2 -v
Server version: Apache/2.2.8 (Ubuntu)
Edit: Logfiles show 301 redirects (but does not redirect to the translated pages correctly...)
Example from logs:
.... /es/index.php HTTP/1.1" 301 - "-" "Opera/9.64 (Macintosh; PPC Mac OS X; U; en) Presto/2.1.1"
Note: We are still running the old "hl" code, so I changed "language" to "hl" in the vBSEO code ( _GET['language'] to _GET['hl'] )
Please reply via PM, if you like, since we are running the old "hl" code..... but I am not sure "it matters" since the logfile show the 301 redirects as above.
You can skip from hl to language - in first post you have nice and working redirect which will automatically move all hl to language :)
bollie
08-18-2009, 03:52 PM
My paypal account: michal.podbielski@wp.pl
Great thanks! :)
Done ;)
NLP-er
08-18-2009, 04:07 PM
NLP-er,
Here is another TO-DO on the feature request list, regarding:
In the future, it might be good to have a simple JavaScript Popup (optional of course) that pops up when a user from a translated page referral arrives that says, in effect:
.
(or something like that)
Not sure how that would effect search engines.... maybe it would not be good in that case!
Added in TODO - will be configurable of course :)
NLP-er
08-18-2009, 04:21 PM
Installed on my test forum and worked perfectly. Installed on my real forum and I get a blank page on the index. No links or text visible, just the graphics. It is conflicting with something, just not sure what. Had to uninstall.
In Admin CP. Give me link to your forum I will help :)
NLP-er
08-18-2009, 04:26 PM
it should be not javascript popup because may affect the crawler of se
it should be just text under flags as notice this page translated by google and may not be fully understood
something like that
and also optionally
This you can do right now - by editing flags title :)
NLP-er
08-18-2009, 04:33 PM
That is what I thought.
Good suggestion. Cheers.
Put off from TODO list :)
NLP-er
08-18-2009, 04:34 PM
I found the issue with mine. You have to set a default language in the mod before it will work. Guess I missed that step. Working great, thanks!
I'm really glad :D Have a good fun :):up:
NLP-er
08-18-2009, 04:37 PM
A great feature for this would be the ability for something that is posted into another language (other than the default) to be automatically translated into the default language.
WOW! It is really a great idea :D:D:D Put in TODO list. I will do wathever it takes to made it. Not sure when (can be problematic), but sure will!!!
You are great :D
THANKS!!!
NLP-er
08-18-2009, 05:01 PM
Done ;)
And great thanks again :D:up:
Lynne
08-18-2009, 05:02 PM
I'm gonna clean this thread right now, so you guys can stop it.
Personal issues should be discussed via PM, not in the middle of a thread. This is an official warning to you guys.
andie215
08-18-2009, 05:16 PM
Well i think its great although some of the translations are a bit straange so some of my non english speaking members are saying.
Just one thing my Swedish member is saying that the swedish flag is wrong so ive replaced it with this one
https://vborg.vbsupport.ru/
feel free to copy it :)
NLP-er
08-18-2009, 05:44 PM
Well i think its great although some of the translations are a bit straange so some of my non english speaking members are saying.
Just one thing my Swedish member is saying that the swedish flag is wrong so ive replaced it with this one
http://www.ukmantisforums.co.uk/sv.gif
feel free to copy it :)
Thanks - it will be included in next release :)
I have updated the code in my old post for vbseo.php as well as the 301 redirects.
This should hopefully finally fix any issues people were having :D
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
imported_silkroad
08-18-2009, 06:19 PM
I have updated the code in my old post for vbseo.php as well as the 301 redirects.
This should hopefully finally fix any issues people were having :D
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
Wow! Thanks!
I'll try it off-peak and report back :D
NLP-er
08-18-2009, 06:31 PM
I have updated the code in my old post for vbseo.php as well as the 301 redirects.
This should hopefully finally fix any issues people were having :D
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
Still same problem on my side :/
.htaccess has possibility to made internal redirect, I was trying it but without success. Maybe you will find working solution in this area. Such internal redirect should work without any vbseo.php changes, because to vbseo will come link with language param. This is idea - as I wtore it don't works for me, but maybe I miss somesthing. This is this not working rule:
RewriteCond %{REQUEST_URI} ^/(..|zh-TW|zh-CN)/(.*)
RewriteRule ^(.*)$ /%2\?language=%1
TheLastSuperman
08-18-2009, 06:35 PM
About error - you don't have medium cache table. Please set it manually (have no idea why it didn't create during installation - maybe some mysql version issues) - and in case of errors during creation please give me error measage.
CREATE TABLE " . TABLE_PREFIX . "vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(328),
translated VARCHAR(1000),
UNIQUE (originaltext, tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
Change " . TABLE_PREFIX . " to your table prefix if use any.
About translaion of images... :D - just go back to styles :)
I had a similar error just like this: http://www.mydigitallife.info/2007/07/09/mysql-error-1170-42000-blobtext-column-used-in-key-specification-without-a-key-length/
I used this and it worked, turned on cache yet when you navigate to another page after translation is does not stick? Long story short no DB error when cache is enabled like I used to have but it will not hold the translation.
CREATE TABLE vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(255),
translated VARCHAR(255),
UNIQUE (originaltext, tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
And images? Not sure about that, it was that other mod I used err well code actually but I added in the do not translate tags and no effect.
NLP-er
08-18-2009, 07:25 PM
I had a similar error just like this: http://www.mydigitallife.info/2007/07/09/mysql-error-1170-42000-blobtext-column-used-in-key-specification-without-a-key-length/
I used this and it worked, turned on cache yet when you navigate to another page after translation is does not stick? Long story short no DB error when cache is enabled like I used to have but it will not hold the translation.
CREATE TABLE vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(255),
translated VARCHAR(255),
UNIQUE (originaltext, tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
And images? Not sure about that, it was that other mod I used err well code actually but I added in the do not translate tags and no effect.
About DB - the reason is differences in mySQL versions. On my version varchar(328) is not automatically changed to blob/text - on yours it is.
Please let me know which version do you have?
You made wrong changes in SQL, please drop your table and use this one (corection will be included in next release):
CREATE TABLE vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(328),
translated VARCHAR(1000),
UNIQUE (originaltext(328), tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
About holding translation - turn on tracking in options.
Not understood about images.
Still same problem on my side :/
.htaccess has possibility to made internal redirect, I was trying it but without success. Maybe you will find working solution in this area. Such internal redirect should work without any vbseo.php changes, because to vbseo will come link with language param. This is idea - as I wtore it don't works for me, but maybe I miss somesthing. This is this not working rule:
RewriteCond %{REQUEST_URI} ^/(..|zh-TW|zh-CN)/(.*)
RewriteRule ^(.*)$ /%2\?language=%1
I have already tried doing it via rewrite rules in .htaccess but it will not work with vBSEO
Paste me your ENTIRE .htaccess so I can see if there is a problem with it maybe
Aclikyano
08-18-2009, 10:33 PM
LOL I think I know what it is. Probably you uploaded new files, bud didn't importend new product file :D I just checked and in previous version this method has less parameters. So made full update - new files on FTP and import new product file. Good lock ;):up:
well i noticed i still had the old XML on DISABLED on admincp but i still uploaded the new xml and i thought i put allow overwrite but ill let u kno in a min thanks! :D
Aclikyano
08-18-2009, 10:57 PM
lol it only was showing the Automatic Translation text and no flags
i have flags uploaded to /public html/ forums
im not newbie status i know what im doing most the time lol but something is just not working lmfaooo
merkaz
08-18-2009, 11:01 PM
URL tracking trackink every link internal or exitrnal link even if it is not vb link such as gallery or adv and change the link to ?language= .
It should be tracking internal vb links only .
I hope you understand what i mean .
and thanks alot for sharing this amazing mod .
TheLastSuperman
08-18-2009, 11:44 PM
About DB - the reason is differences in mySQL versions. On my version varchar(328) is not automatically changed to blob/text - on yours it is.
Please let me know which version do you have?
You made wrong changes in SQL, please drop your table and use this one (corection will be included in next release):
CREATE TABLE vbenterprisetranslator_cache_medium (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
serie BIGINT(14) UNSIGNED,
dateline int(10) UNSIGNED default 0,
tl VARCHAR(5),
originaltext VARCHAR(328),
translated VARCHAR(1000),
UNIQUE (originaltext(328), tl),
INDEX(serie)
) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_bin
About holding translation - turn on tracking in options.
Not understood about images.
I think we both lost each other on images as that was never an issue just that Webdeveloper Plus mod I provided a link to in a previous post, that would translate but the DB error resulted form text in that however we know now that the table was never created so that was not the cause of the error ;)
And MySQL version per the previously posted DB error:
MySQL Version : 4.1.22-max-log
I'll drop that table ASAP and try the new, thanks for the revision and prompt replies :D.
S-MAN
NLP-er
08-19-2009, 01:10 AM
lol it only was showing the Automatic Translation text and no flags
i have flags uploaded to /public html/ forums
im not newbie status i know what im doing most the time lol but something is just not working lmfaooo
Please give me link to your forum I will look :)
NLP-er
08-19-2009, 01:17 AM
URL tracking trackink every link internal or exitrnal link even if it is not vb link such as gallery or adv and change the link to ?language= .
It should be tracking internal vb links only .
I hope you understand what i mean .
and thanks alot for sharing this amazing mod .
Thanks for note :) I already realized that there is problem with tracing without vbSEO, or with some specific configuration. I have already corrected solution, but want to implement also some new features before release - hope you will forgive me ;)
In this solution language param will be added to all links which not beginning from http (so are local)
or beginning from http ://your.forum.domain - so also local but not relative.
Mostly I'm waiting for solution to new URLs pattern working for everyone. When I got it then new release will come with some harmless bugs fixed and new features. Please be patience a while :)
NLP-er
08-19-2009, 01:28 AM
Just a message to great users who set option to show flags only for guests.
Maybe you will be interested about hiding last post date for guests (less translations ;))
https://vborg.vbsupport.ru/showthread.php?t=218723
TheLastSuperman
08-19-2009, 05:28 AM
I think we both lost each other on images as that was never an issue just that Webdeveloper Plus mod I provided a link to in a previous post, that would translate but the DB error resulted form text in that however we know now that the table was never created so that was not the cause of the error ;)
And MySQL version per the previously posted DB error:
I'll drop that table ASAP and try the new, thanks for the revision and prompt replies :D.
S-MAN
Ok, table gone new one up and settings are correct:
URL tracking
If on then to URL's from your forum domain will be added language param. In other words with this option when you translate to some language, then going to other page will keep translation. = YES
It still won't carry over :(
Still nice they can simply click but it would be nice :erm: but if you think of anything else let me know & thanks regardless for the help.
S-MAN
Okay I have updated my vBSEO url formatting code ONE MORE TIME :D
And hopefully this is the final time that it will be necessary.
I had come to the realization that I was using an old version of the vBSEO htaccess and that although the code worked okay for some people, anybody with the latest version would have problems.
The code is updated now to take both situations into account so it will work with the latest version and be backwards compatible for a few versions back :D
You can find the post here:
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
Sweeks
08-19-2009, 09:13 AM
Okay I have updated my vBSEO url formatting code ONE MORE TIME :D
And hopefully this is the final time that it will be necessary.
I had come to the realization that I was using an old version of the vBSEO htaccess and that although the code worked okay for some people, anybody with the latest version would have problems.
The code is updated now to take both situations into account so it will work with the latest version and be backwards compatible for a few versions back :D
You can find the post here:
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
It never worked this time unfortunately for me. I still get URLs in this format:
http://www.teenforumz.com/?language=sl
imported_silkroad
08-19-2009, 09:29 AM
Okay I have updated my vBSEO url formatting code ONE MORE TIME :D
And hopefully this is the final time that it will be necessary.....
We quickly tried it and our board crashed... :D
I'll look into more this weekend.
Thanks for trying so hard, T2x ! :up:
imported_silkroad
08-19-2009, 09:37 AM
For reference, we are running all our .htaccess code here on Ubuntu:
/etc/apache2/sites-enabled/000-default
<Directory /site/wwwroot/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.site\.com
RewriteRule (.*) http://www.site.com/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(lang/|competition/|admincp/|modcp/|cron|redir\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(competition|admincp|modcp|clientscript|cpstyles |images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
# RewriteCond %{QUERY_STRING} !vbseourl=
# RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron|vbtest)
# RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1 [L,QSA]
# RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
# RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
</Directory>
Lee G
08-19-2009, 09:51 AM
It never worked this time unfortunately for me. I still get URLs in this format:
http://www.teenforumz.com/?language=sl
Same with my forum. Be one of those laws by a guy called sod that will no doubt be at fault :o
imported_silkroad
08-19-2009, 10:31 AM
I noticed that many forums "before adding this new vBSEO code" if you try:
http://www.site.com/ar/
or
http://www.site.com/ar/link.html
(like our site)
Your get the attached error message: Invalid Forum specified. If you followed a valid link, please notify the administrator
FYI for T2x.
This error apparently happens in:
./includes/class_dm_forum.php
as
$this->error('invalid_forum_specified');
So, it seems that somewhere vB thinks that the first /en/ or /es/ or /aaa/ is a forum.
Perhaps this is not interesting or relevant... :confused: just FYI.
chick
08-19-2009, 11:16 AM
Donated, thank you, MOTM vote. This is a great tool.
It never worked this time unfortunately for me. I still get URLs in this format:
http://www.teenforumz.com/?language=sl
The code I provided will not modify your flags, that is still to come.
Install just the vbseo.php code I provided and then try something like http://www.teenforumz.com/de/index.php
As far as imported_silkroad, I went over the code he sent me back and it turns out when he was modifying it he made a small typo that ended up causing the crash.
Also
I noticed that many forums "before adding this new vBSEO code" if you try:
FYI for T2x.
This error apparently happens in:
./includes/class_dm_forum.php
as
$this->error('invalid_forum_specified');
So, it seems that somewhere vB thinks that the first /en/ or /es/ or /aaa/ is a forum.
Perhaps this is not interesting or relevant... :confused: just FYI.
Yes this is to be expected, what my code does is entirely remove that first part that corresponds to the language from ever being seen by vBSEO or vB.
Effectively if you type in /de/index.php, vBSEO and vB will believe the page you are accessing is index.php?language=de
imported_silkroad
08-19-2009, 04:39 PM
Ss far as imported_silkroad, I went over the code he sent me back and it turns out when he was modifying it he made a small typo that ended up causing the crash.
Stupid me :mad:
Sorry about that :o
(Thanks!)
NLP-er
08-19-2009, 04:52 PM
Ok, table gone new one up and settings are correct:
URL tracking
If on then to URL's from your forum domain will be added language param. In other words with this option when you translate to some language, then going to other page will keep translation. = YES
It still won't carry over :(
Still nice they can simply click but it would be nice :erm: but if you think of anything else let me know & thanks regardless for the help.
S-MAN
ALREADY RELEASED
I will made today new minor release with some bugs fixed - also for tracking. If in new version you sill will have trouble PM me - describe situation and give link to your forum.
NLP-er
08-19-2009, 04:54 PM
Okay I have updated my vBSEO url formatting code ONE MORE TIME :D
And hopefully this is the final time that it will be necessary.
I had come to the realization that I was using an old version of the vBSEO htaccess and that although the code worked okay for some people, anybody with the latest version would have problems.
The code is updated now to take both situations into account so it will work with the latest version and be backwards compatible for a few versions back :D
You can find the post here:
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
Sorry man - still have same problem I will PM you all my $_SERVER parameters for main page and for thread page.
NLP-er
08-19-2009, 05:05 PM
Donated, thank you, MOTM vote. This is a great tool.
Great thanks :):up: Still working on new features which will made it even better :D
NLP-er
08-19-2009, 05:45 PM
1.1.1 RELEASED
What's changed:
- Re-encode not translated parts, so there is no strange signs in scripts, images title etc.
- Corrected flag for Sweden
- Few harmless bug fixed in translation tracking and cache disabling
- Respecting Google conditions, default flags title have link to Google (configurable)
About last one - if you made update then it will not change your settings. So for those who like to respect Google wish this is example for flags title with Google link:
Automatic Translations made by <a target="_blank" href="http://www.google.com">Google</a>:
Megatr0n
08-19-2009, 06:00 PM
NLP-er, do we have to update all the files and import the product file for this update to take affect?
NLP-er
08-19-2009, 06:03 PM
NLP-er, do we have to update all the files and import the product file for this update to take affect?
Upload + import product file with overwrite :) Upload everything - one flag was changed.
NLP-er
08-19-2009, 06:10 PM
Okay I have updated my vBSEO url formatting code ONE MORE TIME :D
And hopefully this is the final time that it will be necessary.
I had come to the realization that I was using an old version of the vBSEO htaccess and that although the code worked okay for some people, anybody with the latest version would have problems.
The code is updated now to take both situations into account so it will work with the latest version and be backwards compatible for a few versions back :D
You can find the post here:
https://vborg.vbsupport.ru/showpost.php?p=1869296&postcount=181
Ok - It works without redirection, but still not working for main page - for all otker it's working.
When it will be ready and working also for frums which are not in main directory (http://domain/forum) then I will start working on new release where links by default will be in new format.
Do you agree if I use your code to change vbSEO? I will set your code between coments which give you credit for that and also write thanks in mod description :)
Ok - It works without redirection, but still not working for main page - for all otker it's working.
When it will be ready and working also for frums which are not in main directory (http://domain/forum) then I will start working on new release where links by default will be in new format.
Do you agree if I use your code to change vbSEO? I will set your code between coments which give you credit for that and also write thanks in mod description :)
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
imported_silkroad
08-19-2009, 07:01 PM
OWhen it will be ready and working also for frums which are not in main directory (http://domain/forum) then I will start working on new release where links by default will be in new format.
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.