vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB Global Translator - Multiply your indexed pages & put search traffic on autopilot (https://vborg.vbsupport.ru/showthread.php?t=217329)

NLP-er 06-30-2009 02:54 PM

Quote:

Originally Posted by GoTTi (Post 1840177)
ok i left it installed overnight and i checked the mysql tables and this is what it looks like

https://vborg.vbsupport.ru/attachmen...1&d=1246373739

still not loading anything in the cache table. and when i click any flags, nothing is loading for me. any ideas?

You can always set $enablecache = false; in translate.php - then you will know does your page translates at all. I'm quite sure that cache is not an issue here and we can be sure by temporary disabling it.

NLP-er 06-30-2009 02:58 PM

Quote:

Originally Posted by Geraldm (Post 1840203)
Well I installed the new version 2.0 script yesterday.

My forum currently has 4,745 threads and 17,052 posts and today my DB looks like this:

http://www.delphi-php.net/images/records24.jpg

34.7MB in 24 hours ?!!?!? I'll let you know how big this DB gets after a week.....

Cheers, and thanks for the great script!

Regards,
Gerald.

Well - in vb you have 1 content. Here it is multiplied for each translation. As long as you have space on server - who cares?... ;)

Dave Hybrid 06-30-2009 05:09 PM

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.

T2x 06-30-2009 05:16 PM

Quote:

Originally Posted by tpearl5 (Post 1840175)
You certainly can't be hurting anything by including an API key.

Here's another question... How about displaying flags based on where the IP is from? I understand this would involve a small index of IP's, but perhaps it could be an exclusion. For example, 'if not from US, display flags'

edit - nevermind - that would be a very large index either way that would have to be referenced on every visit, which sounds very expensive


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
if(navigator.language)nav_lng=navigator.language;
else if(navigator.browserLanguage)nav_lng=navigator.browserLanguage;
else if(navigator.userLanguage)nav_lng=navigator.userLanguage;
else if(navigator.systemLanguage)nav_lng=navigator.systemLanguage;
else if(window.navigator.language)nav_lng=window.navigator.language;

for example, for english visitors the nav_lng variable will then contain either en-US or en-GB(for users from the UK or AU)


I actually have dynamic javascript translation going on as well right now using this and it works fine.

burlesque 06-30-2009 05:55 PM

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.

music legend 06-30-2009 06:54 PM

Quote:

Originally Posted by burlesque (Post 1840287)
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.

where is the caching option you turned off?

NLP-er 06-30-2009 07:01 PM

Quote:

Originally Posted by Dave Hybrid (Post 1840265)
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.

:D exactly I'm very happy when new posts arrives on my forum - more is better, or people will go somewhere where they will find what they are looking for...

burlesque 06-30-2009 07:01 PM

in translate.php

Code:

$enablesession = false; //ignore
$enablecache = false; //true - enable cache setting, false - disable cache setting


NLP-er 06-30-2009 07:07 PM

Quote:

Originally Posted by burlesque (Post 1840287)
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.

In such case cache is an issue here. Can you PM to me some more details? I will gladly see what is gooing on :)

music legend 06-30-2009 07:12 PM

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


All times are GMT. The time now is 07:52 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
  • Page Generation 0.01584 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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