![]() |
Quote:
|
Quote:
|
Exactly, would you delete normal posts because your DB got a big big?
No, you'd keep them and upgrade the server if needed, so what's the difference... lol. People worried about gaining too much content, that's a new one he he. |
Quote:
Nah its actually very easy to do. I have an ip database on my site which performs a similar function. I would recommend using javascript instead to read the browser language. Code:
var nav_lng="nolang"; //default language string I actually have dynamic javascript translation going on as well right now using this and it works fine. |
I was also getting the blank page when I clicked on a flag, however when I set the caching to 'false' it translated fine.
However, when I add set the cache to 'true' I get the white page again. But if I set the cache to false once again, everything translates fine, until I set the cache to 'true'... .. and then I get a blank page again. The db has been installed correctly but I'm at a loss as to why this happens. |
Quote:
|
Quote:
|
in translate.php
Code:
$enablesession = false; //ignore |
Quote:
|
yeah that fixed my white screen as well when i turned it to false it worked
if its set to true i just get the white screen |
Quote:
|
Quote:
|
v2.1
* Meta description and meta keywords now translated in the output source code, better for SEO and search engine indexing * Note no change to files To update just replace your vB Global Translator plugin code with what is below. Also change the Execution Order: to 50 Code:
// Enable UTF-8 characters |
Nice one this mod just keeps getting better :up:
|
Thank you, more to come. ;P
|
Quote:
|
Maybe throw in that API key option just to put everyone at peace if it doesnt have a performance hit :)
|
Hi just tried v2.1 and it's not translating the meta keywords or meta Description as described??
Dave, you know my forum as I've PMed you it in the past ... can you please take a look? :) Thanks, Gerald. |
Quote:
PM me the url again please. |
Quote:
|
Quote:
Thank you! |
Great, you're welcome. :up:
|
Quote:
|
i just installed a testboard, clean, no mods on it and only installed this mod here, made a post, clicked a flag and nothing is happening. what could possibly be causing this to not work?
|
Since some installations still have problems using cache and we are working on that, for those who has running vb global translator I have some optimizations :)
1. Query optimization - change in template.php code between /* Check cache for translation */ and /* -- if not found, proceed with Google Translate */ to: Code:
/* Check cache for translation */ 2. Index changes. Since for someone DB was growing fast I made some tests. It is enough to change indexes. For installed products run those queries: Code:
alter table wt_cache_short drop index tl; Code:
CREATE TABLE wt_cache ( I realized that column tl has only 28 possible values (or less if you don’t use all flags) and that is not too good for indexes. Only by changing order from (tl, originaltext) to (originaltext, tl) my database size changed from 51MB to 44,3MB without any performance lost and even with improvement. Changing it only to (originaltext) have worst results that (originaltext, tl). Here are some results of my tests (I have weak internet connection so don't look on times but on differences between performance in different configurations): WITH index (tl,originaltext) DB size=51MB TESTS RESULTS: MIN: 4484 MAX: 13266 AVG: 7823 MIN: 3188 MAX: 9703 AVG: 5848 MIN: 3797 MAX: 9594 AVG: 5683 TOTAL AVG: 6451 WITH index (originaltext,tl) DB size=44,3MB TESTS RESULTS: MIN: 2859 MAX: 10172 AVG: 6232 MIN: 2890 MAX: 9094 AVG: 6109 MIN: 3468 MAX: 9500 AVG: 5813 TOTAL AVG: 6051 WITH index (originaltext) DB size=43,2MB TESTS RESULTS: MIN: 4454 MAX: 10406 AVG: 5998 MIN: 3703 MAX: 13922 AVG: 6341 MIN: 2922 MAX: 14578 AVG: 6888 TOTAL AVG: 6409 Times are in ms. In each test 20 different cached translated pages was generated. For each setting 3 tests series at row was executed. |
For those who have problems with using cache at all - right now I suspect that there is problem with making connection to DB. Even when all settings are ok - It seems that script is waiting for connection and DB holds it. Is someone with this problem has a clue what to change (maybe some number of connections limit) It would be good if share solution with others. As long as I'm not able to reproduce this on my side, or someone will give me access to his forum, I'm not even sure does this is a problem - and it is only a suspicion.
|
Quote:
|
nice
Excellent subject of very beautiful Thank you |
my site is blocked from google adsense, would that matter in this situation?
|
Quote:
|
v2.2
* More improvements to database code, better speed and lower data size * Flag files combined size reduced from 40kb to 3kb for faster page load speed To upgrade download new package, upload new translate.php and /flags/ folder. Run the following MySQL query on your DB via phpmyadmin. Code:
alter table wt_cache_short drop index tl; |
I been on holiday since 21st Jun.
You mean I have to do this all over again? |
Quote:
|
Quote:
|
Installed.
I noticed the overloadcache file is no longer in the zip file, can I just delete the old file that is still on my server? |
Since some users complains that when cache enabled white screan apperas I made solution for that. Testes on one server with problem, if doesn't solve yours it will give at least some more information now.
Note that some IP can suffer penalties for google and translation is terribly slow then (1 known case with domain banned in AdSense). During that our connection was passing out. So this update will reestablish connection even if goole gives you really long time to wait. It allows you to fululfill cache, so after that You will not need google anymore (only for new content). NOTE: I know also one case when google give other penalty that time to wait. The penalty was - empty response to all queries. In such case It is between you and google ;) Change translate.php to this one and set up DB and other params. Dave - It would be good to have it in official release :) Code:
<?php |
Quote:
|
Quote:
IT IS IMPORTANT TO NOTE THE USER BANNED FROM THE TRANSLATE IP WAS ALREADY BANNED IN ADSENSE, THIS SCRIPT DID NOT CAUSE THE BAN! |
I'll hang on before making it an official release, seems silly to update daily.
|
Quote:
|
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|