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-27-2009 10:00 PM

vB Global Translator - Multiply your indexed pages & put search traffic on autopilot
 
**Text Removed**

Dave Hybrid 06-28-2009 01:44 PM

v1.x Upgrade instructions:

Delete your old translate database
Delete translate.php, translateflags.php and overloadcache.txt
Delete both translate plugins
Delete code added to header, footer or navbar template
Delete /flags/ folder

Follow the install instructions above

This version requires a fresh install.

Features coming in next version:

* Meta description and meta keywords will be translated in the output source code, better for SEO and search engine indexing

dothanhtrung 06-28-2009 01:47 PM

Can you add language vietnamese ?? :D

Sweeks 06-28-2009 04:05 PM

Looks great! Sending a donation over to NLP-er in a moment :) Thanks for this Dave! Blimey it is much more faster once cached than the old script, great work!

deadlySniper 06-28-2009 04:06 PM

This is awesome! Thanks!

Dave Hybrid 06-28-2009 04:07 PM

Quote:

Originally Posted by Sweeks (Post 1838922)
Looks great! Sending a donation over to NLP-er in a moment :) Thanks for this Dave! Blimey it is much more faster once cached than the old script, great work!

Thanks, DB speed credits to NLP-er, I'm sure he will be happy with the donation.

Sweeks 06-28-2009 04:10 PM

It honestly is a vast improvement, it may take a while on the first load but once its cached the page loads in a matter of seconds :up:

There is a problem or I may be getting this wrong, the Chinese simplified shows it all like this:

电脑,游戏和技术 ( 1查看)
青少年交谈,并获得咨询有关的游戏,电脑,技术和更多的对我们的青少年论坛。

Is that right?

Dave Hybrid 06-28-2009 04:19 PM

Quote:

Originally Posted by Sweeks (Post 1838930)
It honestly is a vast improvement, it may take a while on the first load but once its cached the page loads in a matter of seconds :up:

There is a problem or I may be getting this wrong, the Chinese simplified shows it all like this:

电脑,游戏和技术 ( 1查看)
青少年交谈,并获得咨询有关的游戏,电脑,技术和更多的对我们的青少年论坛。

Is that right?

Caching will always take some time, there is work to be done, the page is being translated on the fly but this version makes caching faster to, as much as possible.

What is wrong with Chinese? Looks like Chinese to me he he.

Sweeks 06-28-2009 04:22 PM

I wasnt sure if it was chinese lol just looks like a load of odd symbols with numbers on them to me :D

It is much faster once the pages have been cached. Just tested it and it only takes a few seconds to translate not 30 seconds once cached etc :)

valdet 06-28-2009 04:38 PM

Having so many new pages (translated pages) in your website might raise red flags for Google.

Do you think this is legit with Google TOS ?

Nevertheless, this is a brilliant idea.
Thanks for your time.

Dave Hybrid 06-28-2009 04:41 PM

Quote:

Originally Posted by Sweeks (Post 1838940)
I wasnt sure if it was chinese lol just looks like a load of odd symbols with numbers on them to me :D

It is much faster once the pages have been cached. Just tested it and it only takes a few seconds to translate not 30 seconds once cached etc :)

Yep, it's pretty much perfect speed wise on my forums.

I just check your forum, Chinese and all others for that matter are working fine.

Thanks.

GoTTi 06-28-2009 04:41 PM

shouldnt you have a english flag on there? there is no way to goto english if ur in another language. if someone clicks the language by accident they wouldnt know how to go back to english.

Sweeks 06-28-2009 04:43 PM

Quote:

Originally Posted by GoTTi (Post 1838952)
shouldnt you have a english flag on there? there is no way to goto english if ur in another language. if someone clicks the language by accident they wouldnt know how to go back to english.

It is bad for SEO so it is best removed, I am sure they could easily click your logo or something to get back :)

Dave Hybrid 06-28-2009 04:46 PM

Quote:

Originally Posted by valdet (Post 1838949)
Having so many new pages (translated pages) in your website might raise red flags for Google.

Do you think this is legit with Google TOS ?

Nevertheless, this is a brilliant idea.
Thanks for your time.

It is probably a grey area, it's original content and was once created by members so is not technically automated or junk content.

There have been similar scripts before I did this for vB, the other scripts has issues but did work. A few friends and I have been using these other scripts that are out for years and never had anything bad happen.

Although this idea may be new to you and others, it's been around a long time, other coders tried using the actual Google Translate website, this was slow and buggy but did work. Goggles new Translate API service is why I thought I'd try my luck.

Dave Hybrid 06-28-2009 04:48 PM

Quote:

Originally Posted by Sweeks (Post 1838955)
It is bad for SEO so it is best removed, I am sure they could easily click your logo or something to get back :)

If you click any url is goes back to your base language anyway. Most people only view one page, so it really doesn't matter.

Sweeks 06-28-2009 04:53 PM

Dave I have a question, is this purely for the SE's or do you think foreign signed in members will find it useful too? I am considering allowing only guests to view the flags, what do you think? :)

Dave Hybrid 06-28-2009 04:57 PM

I only show the flags to guests, this is machine translation, so, the bots will love it and send you visits, but, those visits will read and understand what they can (it's pretty good but not perfect) but are unlikely to stick around for long, unless they can speak you base language. As I have said before, if you want to add different language forums to your site do just that, make the forums, get a foreign moderator and install some language packs. This is machine translation for traffic and ad revenue pretty much. I make tons extra $$ with it and it didn't take any extra work to write the 1,000's of pages of content, that was it's goal when I designed it. Nothing else. ;P

I hope this helps.

GoTTi 06-28-2009 05:18 PM

i cant get this to work. ive installed it, done the DB stuff. when i click a flag nothing happens, its just loading and does nothing. no data is being written to the mysql DB.

Dave Hybrid 06-28-2009 05:20 PM

Quote:

Originally Posted by GoTTi (Post 1838975)
i cant get this to work. ive installed it, done the DB stuff. when i click a flag nothing happens, its just loading and does nothing. no data is being written to the mysql DB.

Do you have CURL enabled on your site?

Could also ask you host to turn on php errors in the browser so you get an error message.

GoTTi 06-28-2009 05:22 PM

Quote:

Originally Posted by Dave Hybrid (Post 1838980)
Do you have CURL enabled on your site?

Could also ask you host to turn on php errors in the browser so you get an error message.

cURL support enabled
cURL Information libcurl/7.19.3 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

GoTTi 06-28-2009 05:28 PM

how long does it take to start re-writting all the data? i see now see something in the wt_cache_short table but nothing else is going on.

Dave Hybrid 06-28-2009 05:31 PM

As soon as you click a flag it should start adding data. If it's adding data it's working. 1st time translations are not instant, the words have to be sent to google and then translated, then returned and put in the DB, 2nd page load is normal speed. It will take a few weeks to cache your entire site.

What is your URL?

GoTTi 06-28-2009 05:34 PM

Quote:

Originally Posted by Dave Hybrid (Post 1838992)
What is your URL?


please check ur PM inbox.

GoTTi 06-28-2009 05:38 PM

Quote:

Originally Posted by Dave Hybrid (Post 1838992)
As soon as you click a flag it should start adding data. If it's adding data it's working. 1st time translations are not instant, the words have to be sent to google and then translated, then returned and put in the DB, 2nd page load is normal speed. It will take a few weeks to cache your entire site.


so this doesnt automatically start indexing the new language? the flags have to be clicked on by someone when they are in a thread in order to get the new language indexing to go?

Dave Hybrid 06-28-2009 05:44 PM

Quote:

Originally Posted by GoTTi (Post 1838997)
so this doesnt automatically start indexing the new language? the flags have to be clicked on by someone when they are in a thread in order to get the new language indexing to go?

The search bots follow the flags and activate the translation, you do not need to do a thing aside from test it.

dacho 06-28-2009 05:52 PM

Some questions :
  1. If you have a English board and someone write a Post/Reply in Chinese or Hebrew - what you do with that ?
    for example i have a Hebrew forums so what the members can do with other language, if someone from China write to them?
  2. what going do happen do the data if i :
    Data Usage - 1.81 GB
    Index Usage - 963.42 MB
    Members - 117,205
    Post - 266,431
    Reply - 1,479,829

Dave Hybrid 06-28-2009 05:55 PM

Quote:

Originally Posted by dacho (Post 1839009)
Some question :
  1. If you have a English board and someone write a Post/Reply in Chinese or Hebrew - what you do with that ?
    for example i have a Hebrew forums so what the members can do with other language ?
  2. what going do happen do the data if i :
    Data Usage - 1.81 GB
    Index Usage - 963.42 MB
    Post - 266,431
    Reply - 1,479,829

This is a translator, your members can still post in the same languages that you currently allow. No different. It doesn't change how vB works.

GoTTi 06-28-2009 06:07 PM

here is a error i am getting in the phmyadmin. when i goto reload the db to see if anything is being added to the 3 tables i see this error right now:

Error
SQL query:
SHOW CHARACTER SET;
MySQL said:
#5 - Out of memory (Needed 1677360 bytes)

Dave Hybrid 06-28-2009 06:12 PM

Quote:

Originally Posted by GoTTi (Post 1839017)
here is a error i am getting in the phmyadmin. when i goto reload the db to see if anything is being added to the 3 tables i see this error right now:

Error
SQL query:
SHOW CHARACTER SET;
MySQL said:
#5 - Out of memory (Needed 1677360 bytes)

It's particular to your host so send their support a message explaining that you are getting that error when running a cron. Possibly they need to up your php memory limit or something.

Legendery. 06-28-2009 06:26 PM

thank you so much

GoTTi 06-28-2009 06:26 PM

testing this on a different site on a different server i am getting this error when i click the flags:

Fatal error: Call to undefined function mysql_set_charset() in /home/SITE/public_html/forum/translate.php on line 35

Dave Hybrid 06-28-2009 06:28 PM

Quote:

Originally Posted by Legendery. (Post 1839028)
thank you so much

You're welcome! :D

jaryx 06-28-2009 06:34 PM

Hi, Dave. Are you remember me?

Great job! Now it's works on my site without change hosting.
1st time works very slow, 2nd, 3rd... works ok. Server is cheap ;)

I have only one problem but my admin can fix it.
Code:

Warning: set_time_limit() has been disabled for security reasons in [path]/translate.php on line 28
THX again.

GoTTi 06-28-2009 06:42 PM

Quote:

Originally Posted by GoTTi (Post 1839029)
testing this on a different site on a different server i am getting this error when i click the flags:

Fatal error: Call to undefined function mysql_set_charset() in /home/SITE/public_html/forum/translate.php on line 35

what would be causing this error on a different site and server?

Dave Hybrid 06-28-2009 06:43 PM

Quote:

Originally Posted by jaryx (Post 1839033)
Hi, Dave. Are you remember me?

Great job! Now it's works on my site without change hosting.
1st time works very slow, 2nd, 3rd... works ok. Server is cheap ;)

I have only one problem but my admin can fix it.
Code:

Warning: set_time_limit() has been disabled for security reasons in [path]/translate.php on line 28
THX again.

Your host is being over-protective, imo, get a new host. ;P

Fynnon 06-28-2009 07:00 PM

interesting...but people will be tempted to post in their native language
i wonder how much the database will grow...

its not very easy to install this and, i think ill wait untill you make an easier install but i`ll keep my eye on this :-)

great work and great idea so far !

Dave Hybrid 06-28-2009 07:07 PM

Quote:

Originally Posted by Fynnon (Post 1839053)
interesting...but people will be tempted to post in their native language
i wonder how much the database will grow...

its not very easy to install this and, i think ill wait untill you make an easier install but i`ll keep my eye on this :-)

great work and great idea so far !

As soon as they hit reply the script throws them back to the vbulletin database and your base language, so i doubt it. They are also smart enough to know it's a machine translation.

I don't see why people worry so much about such trivial things, users don't do it on my sites and if they did I'd just delete the post.

Your vB databases will not grow anymore than normal as this does not interfere with vB, the translate database only holds sentences so will grow no larger than a normal vbulletin DB, if not much less!

Actually the install looks more complex than it is, give it a try, you can always revert your changes.

I hope this answers your concerns. :)

Gemma 06-28-2009 07:35 PM

Nice idea but I couldn't get it to work. When I click on a flag I get a white screen :(

Dave Hybrid 06-28-2009 07:40 PM

Quote:

Originally Posted by Gemma (Post 1839077)
Nice idea but I couldn't get it to work. When I click on a flag I get a white screen :(

Is CURL enabled on your server?

Gemma 06-28-2009 07:42 PM

Yes


All times are GMT. The time now is 06:02 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.01768 seconds
  • Memory Usage 1,834KB
  • 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
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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