vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - vB Enterprise Translator (https://vborg.vbsupport.ru/showthread.php?t=220886)

NLP-er 09-29-2009 07:05 AM

Quote:

Originally Posted by jmpa (Post 1890342)
Hello Khamis. Well its not really solved. This is a pain in the ass to put to work with VBSEO.

For instance, where should one add the new rules on htaccess?

On the beginning or on the end? It gives different results.

Just read first post where it is clearly described:
Above all rules to vbseo.php put this rules

I suppose that it can be pain in the ass if you don't fallow the instructions, but in this case it is your choice to have pain in the ass...

NLP-er 09-29-2009 07:08 AM

Quote:

Originally Posted by jmpa (Post 1890353)
Have been trying for hours using all possible combinations.

I think this will never work with vbSeo AND /en/address... if anyone was able to do it, plz explain how, vbseo versions, vb version, and htaccess file.

Just read carefully FAQ and all mod options descriptions :) You miss it and complain. Just take attention of what you are reading.

Also PM me if you still have a problem :)

NLP-er 09-29-2009 07:10 AM

Quote:

Originally Posted by CThiessen (Post 1890731)
Hi,
for all that a wondering what this AddOn will do to the traffic.
Please find this graphic:
Attachment 104773
I leave out the first ones because they are stable, in German.
So if you see: .co.jp, com.ar, co.jp - thats the result of this mod.
Also the AdSense spider read this pages, but, on my side, the search engine spider is 10 times faster than the Adsense spider and Ads sens will update the ads after he see the access also form that regions.
So the Addsense graph is more flat but following the same direction. :)

So once again thanks for that mod.
Christian

You are welcome :)

NLP-er 09-29-2009 07:15 AM

Quote:

Originally Posted by GoTTi (Post 1890930)
can you make the flags show in a drop down menu, like the style chooser or if you have the moods mod similar to that, instead of having the flags just out there?

my idea would be to have the drop down option, then the flags, and then the flags language shown after it:

FLAG - USA

possible?

Flags are generated by templates, so everyone can customize the look according to its own requirements. Just edit 3 templates for flags and use custom place :)

FLAG - USA - just override the gif with England flag and that's it. The description says what is the language, and in USA it is still English.

NLP-er 09-29-2009 07:19 AM

Quote:

Originally Posted by GoTTi (Post 1890931)
this doesnt work with vbseo fully i dont think...when i am on a thread, and i change the language, i cant change the language to something else while on the thread. it just reloads the first language i switched to

Details please. Give me link of your forum. Also if this happens then most probably it have nothing common with vbseo. This mod have functionality to obey redirections and what you describing can be a bug in this mod. Once again - please give me exact link where it happens.

NLP-er 09-29-2009 07:20 AM

Quote:

Originally Posted by chaoyueh (Post 1891136)
Thanks for great mod

I have one question.

The main language of my website is Chinese. It also includes some English for company names, or product names. When the mod translate my website to the other languages, it translates both Chinese and English. Can I translate only Chinese part and leave English unchanged?

Thank you!!

It is very easy - just use not translated areas. See list of features in mod description for details :)

NLP-er 09-29-2009 07:24 AM

Quote:

Originally Posted by chaoyueh (Post 1891394)
just want to clarify my question.

My titles and posts usually include both Chinese and English. How can I automatically prevent English be translated?

Thanks for the answer

Automatically in 3.0.0 - this version is in progress :) Also when it will be ready, you will still need to make changes in existing posts. It will be automatic for new ones according to users default language, and it will allow to even write in many languages in one post :D (I have it already working).

Zi55 09-29-2009 08:32 AM

Hello ,
I discover a bug in the hack , when a visitor choose any language and he want to register in forum and you have the registetion rules on he will see an error message , i try it in my 3 forums .
Thanks ..

KrisP 09-29-2009 06:39 PM

Installed on my testforum! - looks like a very intelligent mod :)

Just a quick question: I am considering running this for the time beeing on my testforum only. So question is - is there a method to omit the source language pages from Google search results on the testforum, to avoid duplicate content?

KrisP 09-29-2009 10:22 PM

Is it possible to tag the source language with =sourcelanguage or /sourcelanguage/ ?

Megatr0n 09-29-2009 10:29 PM

Quote:

Originally Posted by NLP-er (Post 1892182)
Automatically in 3.0.0 - this version is in progress :) Also when it will be ready, you will still need to make changes in existing posts. It will be automatic for new ones according to users default language, and it will allow to even write in many languages in one post :D (I have it already working).

Awesome!

What languages?

KHALIK 09-29-2009 11:06 PM

When I click on a flag, I get the following message;

Quote:

Database Error: Unable to connect to the database:Could not connect to MySQL

how do I fix this ?

NLP-er 09-30-2009 06:26 AM

Quote:

Originally Posted by Zi55 (Post 1892205)
Hello ,
I discover a bug in the hack , when a visitor choose any language and he want to register in forum and you have the registetion rules on he will see an error message , i try it in my 3 forums .
Thanks ..

Not on my board - please give me your forum address so I can see it :)

NLP-er 09-30-2009 06:37 AM

Quote:

Originally Posted by KrisP (Post 1892436)
Installed on my testforum! - looks like a very intelligent mod :)

Just a quick question: I am considering running this for the time beeing on my testforum only. So question is - is there a method to omit the source language pages from Google search results on the testforum, to avoid duplicate content?

Don't understand the question. What duplicate content - there is no duplicate content, because each translation have content in different language and for original content mod doesn't create new URLs

NLP-er 09-30-2009 06:38 AM

Quote:

Originally Posted by KrisP (Post 1892568)
Is it possible to tag the source language with =sourcelanguage or /sourcelanguage/ ?

Mod don't do anything with the original content pages URLs.

NLP-er 09-30-2009 06:54 AM

Quote:

Originally Posted by Megatr0n (Post 1892572)
Awesome!

What languages?

All 52. + I already have implemented functionality for users default languages set in registration and configurable in profile. But still tons of things to do and bugs to fix. 3.0.0 seems like full time job right now :erm:

NLP-er 09-30-2009 06:57 AM

Quote:

Originally Posted by KHALIK (Post 1892585)
When I click on a flag, I get the following message;




how do I fix this ?

Are you using SEO links and vbSEO + are you using subdirectory in forum URL? If yes then most probably you didn't fallow instructions for .htaccess file.

Otherwise PM me details.

Megatr0n 09-30-2009 07:03 AM

Rough idea when it'll be released? :D

KHALIK 09-30-2009 10:31 AM

Quote:

Originally Posted by NLP-er (Post 1892693)
Are you using SEO links and vbSEO + are you using subdirectory in forum URL? If yes then most probably you didn't fallow instructions for .htaccess file.

Otherwise PM me details.


This is right at the top of my .htaccess file before anything else. (copied and pasted it here)

Quote:

RewriteEngine On

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

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



This is my website: http://www.fragmasters.co.uk/forum

KrisP 09-30-2009 11:38 AM

Quote:

Originally Posted by NLP-er (Post 1892688)
Don't understand the question. What duplicate content - there is no duplicate content, because each translation have content in different language and for original content mod doesn't create new URLs

I would like to have my original forum on domain A - and the rest of the languages on domain B. So I need a way to identify the original language on domain B, so it can be omitted from robots, but perhaps I can use robots.txt on domain B for this allowing the appropriate language folders and default disallowing rest, like this ??:

User-agent: *
Allow: /lang1/
Allow: /lang2/
etc.
Disallow: /

Also is there a conditional / variable that tells what language beeing browsed by a user?

KrisP 09-30-2009 10:35 PM

Quote:

//additional code
$alanguages = array ('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','sr','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');
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
Seems: ca dl et hi id lv lt mt sl sq tl uk vi
are duplicates.

Correct:
Quote:

//additional code
$alanguages = array ('af','ar','be','bg','ca','cs','cy','da','de','el' ,'en','es','et','fa','fi','fr','ga','gl','hi','hr' ,'hu','id','is','it','iw','ja','ko','lt','lv','mk' ,'ms','mt','nl','no','pl','pt','ro','ru','sk','sl' ,'sq','sr','sv','sw','th','tl','tr','uk','vi','yi' ,'zh-CN','zh-TW');
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

dai-kun 09-30-2009 10:45 PM

Quote:

Originally Posted by KHALIK (Post 1892747)
This is right at the top of my .htaccess file before anything else. (copied and pasted it here)





This is my website: http://www.fragmasters.co.uk/forum

You did not follow instructions, look at my post.

https://vborg.vbsupport.ru/showpost....&postcount=636

Lautaro 10-01-2009 03:38 AM

I'm always getting this error message at the top of my forum:

Code:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in [path]\includes\vbenterprisetranslator_functions.php on line 184
Im running my forum on a dedicated server:

- Windows Server 2003 Enterprise SP1
- For the webserver I'm using XAMPP
- vB 3.8.4

any idea why?

profanitytalker 10-01-2009 04:13 AM

reserved

dai-kun 10-01-2009 04:15 AM

Quote:

Originally Posted by Lautaro (Post 1893141)
I'm always getting this error message at the top of my forum:

Code:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in [path]\includes\vbenterprisetranslator_functions.php on line 184
Im running my forum on a dedicated server:

- Windows Server 2003 Enterprise SP1
- For the webserver I'm using XAMPP
- vB 3.8.4

any idea why?


Turn off SAFE_MODE in your php.ini configuration either by ssh or contacting your host.

Zi55 10-01-2009 07:28 AM

Quote:

Originally Posted by NLP-er (Post 1892686)
Not on my board - please give me your forum address so I can see it :)

Hello ,
The bug also in your forum , you can try it using Avant Explorer , In firefox it seems to be fine .
Thanks ,
Zi5

KrisP 10-01-2009 04:47 PM

If we could have built in population of cache control in vboptions I am willing to chip in with a donation for this.

KrisP 10-01-2009 11:45 PM

I have run wget -b -O /dev/null -i detest2.txt -o links.txt and I can see in links.txt:

Quote:

--02:22:53-- http://www.myforum.org/showthread.ph...53&language=de
Connecting to www.myforum.org|xx.xx.xx.xxx|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'

0K .......... .......... ........ 450M=0s
also I have installed datastore on forum.

If I copy/paste a link from links.txt it takes a long time to load - then if I paste same link second time in another browser it loads fast.

Shouldnt the link from links.txt load fast the first time after running wget ?

another problem: if I manually run : that yields:

Quote:

Connecting to www.myforum.org|xx.xx.xx.xxx|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `showthread.php?t=3172'

[ <=> ] 29,128 --.-K/s in 0s

03:46:35 (130 MB/s) - `showthread.php?t=3172' saved [29128]
Still it dosent get cached - takes long time to load ...

Quote:

Originally Posted by imported_silkroad (Post 1868330)
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:

Code:

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:


NLP-er 10-02-2009 12:11 AM

Quote:

Originally Posted by Megatr0n (Post 1892695)
Rough idea when it'll be released? :D

Still have no idea - lot, lot, lot work to do. But today I finished translations for RSS channels :)

NLP-er 10-02-2009 12:15 AM

Quote:

Originally Posted by KHALIK (Post 1892747)
This is right at the top of my .htaccess file before anything else. (copied and pasted it here)





This is my website: http://www.fragmasters.co.uk/forum

As I wrote - You didn't fallow instructions for .htaccess. Please read it again - WHOLE - then apply and it will solve the issue :)

NLP-er 10-02-2009 12:22 AM

Quote:

Originally Posted by KrisP (Post 1892760)
I would like to have my original forum on domain A - and the rest of the languages on domain B. So I need a way to identify the original language on domain B, so it can be omitted from robots, but perhaps I can use robots.txt on domain B for this allowing the appropriate language folders and default disallowing rest, like this ??:

User-agent: *
Allow: /lang1/
Allow: /lang2/
etc.
Disallow: /

Also is there a conditional / variable that tells what language beeing browsed by a user?

You can play with robots.txt if you want and check the results.

About variable in SEO lins language is inside of the path. In old way links (you can choose which one you like in mod options) you have language param in URL. In booth ways language param exists in $_GET on server side (.htaccess cares about it for SEO links). So in your server B you can add plugin which will send error header for requests without language param - just in case if you mess something in your robots.txt file.

KrisP 10-02-2009 12:34 AM

Quote:

Originally Posted by NLP-er (Post 1893528)
You can play with robots.txt if you want and check the results.

About variable in SEO lins language is inside of the path. In old way links (you can choose which one you like in mod options) you have language param in URL. In booth ways language param exists in $_GET on server side (.htaccess cares about it for SEO links). So in your server B you can add plugin which will send error header for requests without language param - just in case if you mess something in your robots.txt file.

Ok, I decided to go with the language= option with robots.txt

Quote:

User-agent: *


Disallow: /*1$
Disallow: /*2$
Disallow: /*3$
Disallow: /*4$
Disallow: /*5$
Disallow: /*6$
Disallow: /*7$
Disallow: /*8$
Disallow: /*9$
Disallow: /*0$
Disallow: /*.php$
This way I omit the source language.

NLP-er 10-02-2009 12:51 AM

Quote:

Originally Posted by KrisP (Post 1893057)
Seems: ca dl et hi id lv lt mt sl sq tl uk vi
are duplicates.

Correct:

Thanks for note - corrected :)

NLP-er 10-02-2009 12:52 AM

Quote:

Originally Posted by Lautaro (Post 1893141)
I'm always getting this error message at the top of my forum:

Code:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in [path]\includes\vbenterprisetranslator_functions.php on line 184
Im running my forum on a dedicated server:

- Windows Server 2003 Enterprise SP1
- For the webserver I'm using XAMPP
- vB 3.8.4

any idea why?

Please read the FAQ in first post - it is already answered there :)

NLP-er 10-02-2009 01:01 AM

Quote:

Originally Posted by Zi55 (Post 1893187)
Hello ,
The bug also in your forum , you can try it using Avant Explorer , In firefox it seems to be fine .
Thanks ,
Zi5

I even didn't hear about Avant Explorer before ;)

Thanks for note. In 3.0.0 I will check does it works on Avant Explorer. Also add in TODO list for 2x.

NLP-er 10-02-2009 01:05 AM

Quote:

Originally Posted by KrisP (Post 1893352)
If we could have built in population of cache control in vboptions I am willing to chip in with a donation for this.

What do you mean by 'population of cache control'?

If number of data then it is already controlled by Cache TTL.

It adding data to cache by some robot - it is against Google conditions.

NLP-er 10-02-2009 01:11 AM

Quote:

Originally Posted by KrisP (Post 1893532)
Ok, I decided to go with the language= option with robots.txt



This way I omit the source language.

I didn't know that you can use * for Disallow in robots.txt... Does it work?

NLP-er 10-02-2009 01:14 AM

Quote:

Originally Posted by KrisP (Post 1893518)
I have run wget -b -O /dev/null -i detest2.txt -o links.txt and I can see in links.txt:



also I have installed datastore on forum.

If I copy/paste a link from links.txt it takes a long time to load - then if I paste same link second time in another browser it loads fast.

Shouldnt the link from links.txt load fast the first time after running wget ?

another problem: if I manually run :
that yields:



Still it dosent get cached - takes long time to load ...

I'm not using wget at all so I cannot help. imported_silkroad wrote about it - maybe PM him :)

imported_silkroad 10-02-2009 07:37 AM

Quote:

Originally Posted by KrisP (Post 1893518)
I have run wget -b -O /dev/null -i detest2.txt -o links.txt and I can see in links.txt:



also I have installed datastore on forum.

If I copy/paste a link from links.txt it takes a long time to load - then if I paste same link second time in another browser it loads fast.

Shouldnt the link from links.txt load fast the first time after running wget ?

another problem: if I manually run :
that yields:



Still it dosent get cached - takes long time to load ...

If you can see the links and the HTML 200 success return codes, then all is well, as far as fetching links with wget.

Caching language translation results is a totally different process than fetching links. First you need to make sure you are actually fetching links.

Did you edit your URL files, -i detest2.txt, to include the language?

Please post a sample of your -i detest2.txt file and the corresponding output file -o links.txt.

Cheers.

KrisP 10-02-2009 04:05 PM

Quote:

Originally Posted by imported_silkroad (Post 1893619)
Caching language translation results is a totally different process than fetching links.

Ok, thanks - but I thought the purpose of wget was to filling up the cache, then what is the purpose of fetching links?

With regards to filling up the cache I am now using "Website downloader for windows" - it works, but of course taking up some bandwith while doing it.


All times are GMT. The time now is 08:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02443 seconds
  • Memory Usage 1,876KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (39)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete