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)

Dave Hybrid 06-29-2009 11:50 AM

Quote:

Originally Posted by Calash (Post 1839488)
Well I am still getting the database errors I quoted from the previous version, however the database is being populated and I actually finally got a page to show up in another language.

I will let this run for a bit now and see if I get more translated pages. Great job with this mod :)

I checked your site, seems to be working fine.

The DB errors will happen, you can reduce them but upping the time out limit of MySQL.

Some pages take some time to translate due to the amount of text on the page and MySQL get's impatient, they will stop eventually as translations load from cache and do not impact the working of your site.

jaryx 06-29-2009 12:30 PM

Is it possible to do that?:

When the page will be translated for the first time, user will see the message "Please wait ... Loading ..."

Dave Hybrid 06-29-2009 12:40 PM

Quote:

Originally Posted by jaryx (Post 1839511)
Is it possible to do that?:

When the page will be translated for the first time, user will see the message "Please wait ... Loading ..."

I think you're missing the point, any current users on your site are not interested in other languages so they aint gonna click anything often.

The users that come from google to your translated pages will see the page load instant, because for the page to be indexed in the first place the search bot would of already translated it and cached it for you.

So it really isn't necessary imo.

Calash 06-29-2009 12:50 PM

Quote:

Originally Posted by Dave Hybrid (Post 1839496)
I checked your site, seems to be working fine.

The DB errors will happen, you can reduce them but upping the time out limit of MySQL.

Some pages take some time to translate due to the amount of text on the page and MySQL get's impatient, they will stop eventually as translations load from cache and do not impact the working of your site.

I think it is a limit of the hosting unfortunately. I can check to see if the MySQL limits can be altered but I may not have much of a choice.

What would be the best way to limit the script to only vB pages? Since I have so many different mods that it will not work with I think it would be best to wrap the flag code in conditionals. Has anybody done this yet?

ShawneyJ 06-29-2009 12:59 PM

Quote:

Originally Posted by Sweeks (Post 1839341)
PHP Code:

<!-- <a rel="novbseo"href="<?php echo (strstr($_SERVER["VBSEO_URI"],'?hl='.@$_GET['hl'])) ? str_replace('?hl='.@$_GET['hl'], ''$_SERVER["VBSEO_URI"]) . '?hl=en' str_replace('?hl='.@$_GET['hl'], ''$_SERVER["VBSEO_URI"]) . "?hl=en"?>"><img src="/flags/United States.gif" alt="English" border="0" /></a> -->


hey mate you talking to me or what??? speak! if so thx.

Dave Hybrid 06-29-2009 01:03 PM

Quote:

Originally Posted by Calash (Post 1839525)
I think it is a limit of the hosting unfortunately. I can check to see if the MySQL limits can be altered but I may not have much of a choice.

What would be the best way to limit the script to only vB pages? Since I have so many different mods that it will not work with I think it would be best to wrap the flag code in conditionals. Has anybody done this yet?

Yes, wrap them in conditionals so the flags only show on certain pages, i only put them on my showthread pages and to guests because those are the one that will pull the traffic and use the flags.

----------------------------------------

<if condition="is_member_of($bbuserinfo,1)">
<if condition="(THIS_SCRIPT == 'showthread')">
-code-
</if>
</if>

Dave Hybrid 06-29-2009 01:05 PM

Quote:

Originally Posted by jaycob (Post 1839536)
hey mate you talking to me or what??? speak! if so thx.

I believe they were, basically you need to remove the flag your base language is in.

So find the line for english and put

<!--

at the start. and

-->

at the end.

Or just delete the line altogether, same thing happens, the flag will not display.

Calash 06-29-2009 03:55 PM

Quote:

Originally Posted by Dave Hybrid (Post 1839540)
Yes, wrap them in conditionals so the flags only show on certain pages, i only put them on my showthread pages and to guests because those are the one that will pull the traffic and use the flags.

----------------------------------------

<if condition="is_member_of($bbuserinfo,1)">
<if condition="(THIS_SCRIPT == 'showthread')">
-code-
</if>
</if>

That works perfectly. The translation also seems to work better on the showthread in general, probably because there are less mods than on Forumhome.

Still getting some database errors but once on the first access. After that everything comes up.

Thanks again :)

T2x 06-29-2009 05:05 PM

Hey is there a way to block certain parts of the page from being translated?

This sort of functionality would be VERY nice.

For example

Text that gets translated here
<!--notranslatestart-->
This text doesnt get translated
<!--notranslateend-->
text that gets translated here

Do you think it can be done?

Dave Hybrid 06-29-2009 05:12 PM

Not yet, we may do it in the future. Working on some other features right now but it's been noted, thanks.


All times are GMT. The time now is 12:29 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.01498 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_php_printable
  • (7)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
  • (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