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 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 10:02 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.02563 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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