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=216218)

SuperTaz 06-17-2009 02:31 AM

Thank you. Works nice. Installed.

Only one thing. When I click a language, it takes about a minute to load the new page in the new language. I have a fast server. What number do I set it at to load it faster?

Quote:

if(floatval(getServerLoad()) >= 1.5)

GamerPerfection 06-17-2009 04:38 AM

Quote:

Originally Posted by TimberFloorAu (Post 1830993)
Good Idea but.

1. you must constantly click the language icon of your choice, as you navigate to each page/post/thread


Yes this happens to me too.
It never happened when I had the drop down list of languages.

http://www.galaxyofstars.co.uk/forums/
If you click Arabic for example, then click anywhere on my forum it reverts back to the default language, which for me is English.

In fact, it happens on your own demo too.

EDIT: This was also causing multiple database errors during the night, which I nicely woke up to an inbox full of emails informing me about a vbulletin database error, which were all related to the languages.

Dave Hybrid 06-17-2009 09:13 AM

Quote:

Originally Posted by clarkey25 (Post 1831088)
Yes this happens to me too.
It never happened when I had the drop down list of languages.

http://www.galaxyofstars.co.uk/forums/
If you click Arabic for example, then click anywhere on my forum it reverts back to the default language, which for me is English.

In fact, it happens on your own demo too.

EDIT: This was also causing multiple database errors during the night, which I nicely woke up to an inbox full of emails informing me about a vbulletin database error, which were all related to the languages.

It is ment to do that, there was a bug in the first version.

You do not want to translate everything, do you want people posting in arabic? I'm sure you don't.

This mod is to get more traffic without doing any work, some of that traffic might convert to using your site in it's intended language or click an advert, tell a friend etc.

If you want to have you site in 30 languages for users then install language packs.

This mod is for auto generating pages and getting them indexed.

Dave Hybrid 06-17-2009 09:21 AM

Quote:

Originally Posted by TimberFloorAu (Post 1831017)
Surely tho:

To enable bots to spider all of your pages, you would need to allow guests to read all posts/threads etc.

So the reality is, based on your figures:

If you have 10,000 threads
average 5 replies per thread, and limit guest viewing to 1 view per thread, then yes you are getting potentially 280,000 indexed posts. But surely this makes no difference to the pages being indexed, because the indexing is carried out based on the language for the forum.

Your forum button doesnt change this ( icon wise )

Isnt it a bit like saying, if you have 30 styles, then it would be 30 x 10,000 x 28 languages, which would increase indexing. Which in reality it does not.?

You're totally missing the point mate.

Google doesnt index styles, or even websites. It indexes pages/urls.

Styles dont create new pages/urls, neither do language packs.

Also multiple styles are all in the same language, so again, how is that generating more original content?

This mod creates original content pages in languages you otherwise wouldnt target, with little or no effort. No need to write any content, nothing. Install and wait.

Yes if you hide pages for guests then that limits you, but that would limit your current pages too.

I dont see why people are complaining, most of you have a few thousand threads and know how hard it was to get there. This MOD multiplys those pages overnight.

Dave Hybrid 06-17-2009 09:24 AM

Quote:

Originally Posted by Warden-B- (Post 1831056)
Thank you. Works nice. Installed.

Only one thing. When I click a language, it takes about a minute to load the new page in the new language. I have a fast server. What number do I set it at to load it faster?

The speed is governed by your server spec and configuration settings.

All that vBGT setting does is stop the cache part of the script when your load gets high to avoid crashing your server.

So individual pages will still operate at the same speed whatever you set it at, it just means more can be cached at any one moment.

Dave Hybrid 06-17-2009 09:29 AM

Quote:

Originally Posted by Warden-B- (Post 1831056)
Thank you. Works nice. Installed.

Only one thing. When I click a language, it takes about a minute to load the new page in the new language. I have a fast server. What number do I set it at to load it faster?

I just checked it out on your site looks great.

Can you PM me your server specs please, it seems very fast on your setup, would really help me out as I may release a min server spec for this.

For anyone else questioning the speed etc. on a larger site...

http://www.global-gamers.net/forums/?hl=ar

Works just fine.

tansu 06-17-2009 09:49 AM

it just waits tooo long
should I increase or decrease this value?
if(floatval(getServerLoad()) >= 1.5)

doctus(dot)org btw.

Dave Hybrid 06-17-2009 09:54 AM

Quote:

Originally Posted by tansu (Post 1831172)
it just waits tooo long
should I increase or decrease this value?
if(floatval(getServerLoad()) >= 1.5)

doctus(dot)org btw.

Pages have to be cached as you are creating them on the fly, one they are cached they will load faster.

So, it may take a few days to a few months to cache your site fully, this is a long term mod. Even if the pages were cached overnight Google wouldn't index them for a few months anyway.

See here to answer you other question. https://vborg.vbsupport.ru/showpost....9&postcount=85

Dave Hybrid 06-17-2009 09:57 AM

Quote:

Originally Posted by tansu (Post 1831172)
it just waits tooo long
should I increase or decrease this value?
if(floatval(getServerLoad()) >= 1.5)

doctus(dot)org btw.


I also take it as your base language is not english you changed it to you site base language in translate.php?

Quote:

if your forums base language is different to English, change your country code.

tansu 06-17-2009 09:58 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831175)
Pages have to be cached as you are creating them on the fly, one they are cached they will load faster.

So, it may take a few days to a few months to cache your site fully, this is a long term mod. Even if the pages were cached overnight Google wouldn't index them for a few months anyway.

See here to answer you other question. https://vborg.vbsupport.ru/showpost....9&postcount=85

Hmm
Ok, thanks a lot

Calash 06-17-2009 02:14 PM

I am having no luck getting this mod to work.

After a long pageload I get the following error.

Code:

Content Encoding Error (content_encoding_error)

Server response could not be decoded using encoding type returned by server.
This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently.

For assistance, contact your network support team.

This lines up with a MySQL error that I get

Code:


Invalid SQL:

                                      UPDATE vb_session
                                      SET lastactivity = 1245251364, location = '/vb/index.php?hl=ar', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
                                      WHERE sessionhash = 'bacffa01e4fe73a708c9d524862b0472';

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Wednesday, June 17th 2009 @ 10:09:24 AM
Error Date    : Wednesday, June 17th 2009 @ 10:10:48 AM

The documentation says is likely the server timing out. I am going to check with my host and see if that can be increased.

The Realist 06-17-2009 04:06 PM

Added the code for the flags but they dont dont show up in any template I edit, any ideas?

Dave Hybrid 06-17-2009 04:20 PM

You have to add the code to the template, upload the file and setup a plugin for them to show. One or more is wrong.

The Realist 06-17-2009 05:02 PM

Code is added to the template, files are uploaded and the plugin code has been created. I think its the template Im using myself.

Dave Hybrid 06-17-2009 05:07 PM

I cant think why it would conflict, i can take a look if you want, PM me the URL if so...

The Realist 06-17-2009 05:18 PM

PM sent.

The Realist 06-17-2009 05:20 PM

Found the problem, I didnt add the 2nd plugin, flags now show.

Thanks.

RWerksman 06-17-2009 05:21 PM

How does this mod handle non-standard language responses or forums?

Bounce 06-17-2009 05:54 PM

I'm getting ....

Warning: require_once(translate.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions.php(5721) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required 'translate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/forum/includes/functions.php(5721) : eval()'d code on line 1


on my portal pages..

I'm gueessin its coz it uses Hook Location: global_complete

GamerPerfection 06-17-2009 06:02 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831154)
It is ment to do that, there was a bug in the first version.

Ah ok, didn't realise that. Cool, everything is fine then. :)

GamerPerfection 06-17-2009 07:17 PM

I keep getting emails notifying me of vbulletin database errors.

And they all seem to centre around the languages. For example:

Quote:

Database error in vBulletin 3.8.3:

Invalid SQL:

UPDATE session
SET lastactivity = 1245267656, location = '/forums/index.php?hl=de', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = '5b2512f2b64d205f4087c9b7ef3758fb';

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Wednesday, June 17th 2009 @ 08:40:56 PM
Error Date : Wednesday, June 17th 2009 @ 09:10:14 PM
Script : http://www.galaxyofstars.co.uk/forums/index.php?hl=de
Referrer :
IP Address : 72.30.79.27
Username : Unregistered
Classname : vB_Database
MySQL Version :

Quote:

Database error in vBulletin 3.8.3:

Invalid SQL:

UPDATE session
SET lastactivity = 1245267677, location = '/forums/index.php?hl=cs', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = '5b2512f2b64d205f4087c9b7ef3758fb';

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Wednesday, June 17th 2009 @ 08:41:17 PM
Error Date : Wednesday, June 17th 2009 @ 09:10:08 PM
Script : http://www.galaxyofstars.co.uk/forums/index.php?hl=cs
Referrer :
IP Address : 72.30.79.27
Username : Unregistered
Classname : vB_Database
MySQL Version :

As you can see where the script bit is it always is to do with the languages.

I just got 13 emails.

Dave Hybrid 06-17-2009 07:26 PM

Quote:

Originally Posted by clarkey25 (Post 1831478)
I keep getting emails notifying me of vbulletin database errors.

And they all seem to centre around the languages. For example:







As you can see where the script bit is it always is to do with the languages.

I just got 13 emails.

I get a few of them on my sites too, we are looking into it as we speak. So long as your site functions it is nothing to really worry about allbeit a little annoying I know. This happens when the bots try to translate a page and get bored and move on so the MySQL query gets halted and an error thrown.

Dave Hybrid 06-17-2009 07:28 PM

Quote:

Originally Posted by hIBEES (Post 1831438)
I'm getting ....

Warning: require_once(translate.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions.php(5721) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required 'translate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/forum/includes/functions.php(5721) : eval()'d code on line 1


on my portal pages..

I'm gueessin its coz it uses Hook Location: global_complete

If your portal is in a different folder to your forum you will need to upload the files to both folders.

GamerPerfection 06-17-2009 07:34 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831484)
I get a few of them on my sites too, we are looking into it as we speak. So long as your site functions it is nothing to really worry about allbeit a little annoying I know. This happens when the bots try to translate a page and get bored and move on so the MySQL query gets halted and an error thrown.

Ok, thanks for the quick response.

Yes it's not really a problem, just an annoyance, but as long as I know it's nothing major. :D

nascimbeni 06-17-2009 08:56 PM

Can I select fewer languages ? My forum will probably work well with just English and Italian for example

since my forum is a sub domain I uploaded the flag folder in both the subdomain root and main domain root .

I am getting this error
"Fatal error: Call to undefined function mysql_set_charset() in /home/vhosts/lifeinitaly.com/subdomains/my/httpdocs/translate.php on line 36"

Thanks

Dave Hybrid 06-17-2009 09:02 PM

Quote:

Originally Posted by nascimbeni (Post 1831523)
Can I select fewer languages ? My forum will probably work well with just English and Italian for example


PS since my forum is a sub domain where do I uploaf the flag folder in the subdomain root or the main domain root ?

Thanks


Sure, just open translateflags.php and remove the ones you don't want, I'd appreciate if you would leave the credit link/flag badge in.

Dave Hybrid 06-17-2009 09:18 PM

Quote:

Originally Posted by RWerksman (Post 1831422)
How does this mod handle non-standard language responses or forums?

Can you explain what you mean, I'm not sure I understand. :)

Bounce 06-17-2009 09:31 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831486)
If your portal is in a different folder to your forum you will need to upload the files to both folders.

ahhhh, thanks :up:

nascimbeni 06-17-2009 09:35 PM

Thanks for the fast answer !

Since my forum is a sub domain ( not in a folder ) I uploaded the flag folder in both the subdomain root and main domain root .

but I am getting this error
"Fatal error: Call to undefined function mysql_set_charset() in /home/vhosts/lifeinitaly.com/subdomains/my/httpdocs/translate.php on line 36"

Dave Hybrid 06-17-2009 09:53 PM

Quote:

Originally Posted by nascimbeni (Post 1831564)
Thanks for the fast answer !

Since my forum is a sub domain ( not in a folder ) I uploaded the flag folder in both the subdomain root and main domain root .

but I am getting this error
"Fatal error: Call to undefined function mysql_set_charset() in /home/vhosts/lifeinitaly.com/subdomains/my/httpdocs/translate.php on line 36"

I would ask your host, seems to be a php.ini config issue.

http://www.idealog.us/2005/01/howto_fix_fatal.html

goxy63 06-17-2009 10:06 PM

Rated, tagged
Will check it out ASAP
Thanks

RWerksman 06-17-2009 10:22 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831552)
Can you explain what you mean, I'm not sure I understand. :)

Sure - I currently have forums in Italian, Greek, French, and Spanish in addition to the main English forums. If the post is in the French forum, will this mod be able ot adjust?

Dave Hybrid 06-17-2009 10:34 PM

Quote:

Originally Posted by RWerksman (Post 1831580)
Sure - I currently have forums in Italian, Greek, French, and Spanish in addition to the main English forums. If the post is in the French forum, will this mod be able ot adjust?

I believe this only works for sites in one base language. As per the first install instruction you need to set your base language so the script knows what to tell the Google translate APi to translate from and into. So multiple languages will confuse it a lot and cause errors.

Hornstar 06-18-2009 06:15 AM

This is really great. Nice work. I was actually asking over at vbseo how I could do something similiar like this.

One question tho. If someone lands on my site from a Japanese search engine and they are viewing my site in Japanese. They then sign up and begin replying to a thread in Japanese. What will happen then? Because I believe this could cause much confusion unless the script knows what language they are typing in.

Dave Hybrid 06-18-2009 10:37 AM

Quote:

Originally Posted by hornstar1337 (Post 1831732)
This is really great. Nice work. I was actually asking over at vbseo how I could do something similiar like this.

One question tho. If someone lands on my site from a Japanese search engine and they are viewing my site in Japanese. They then sign up and begin replying to a thread in Japanese. What will happen then? Because I believe this could cause much confusion unless the script knows what language they are typing in.

Once someone clicks a next page they are forced back to the base site language.

Dave Hybrid 06-18-2009 10:39 AM

Here you can see a vBGT user has translated pages indexed after just a few hours.....

http://www.google.com/search?hl=en&s...&aq=f&oq=&aqi=

tansu 06-18-2009 10:56 AM

Quote:

Originally Posted by tansu (Post 1831172)
it just waits tooo long
should I increase or decrease this value?
if(floatval(getServerLoad()) >= 1.5)

doctus(dot)org btw.

Still same here..
it waits and waits, then internal server error

Dave Hybrid 06-18-2009 11:02 AM

Quote:

Originally Posted by tansu (Post 1831800)
Still same here..
it waits and waits, then internal server error

https://vborg.vbsupport.ru/showpost....6&postcount=89

I replied here, you did not answer.

Geraldm 06-18-2009 11:13 AM

Hi,

Great plugin!!

I've installed it on my site and it works fine ... get quite a few MySQL 2006 (server has gone away) errors but as you said above you are looking into that ...

The only issue I have is that when you change the language and then click on any link in the forum the forum reverts back to english (the default) ... is there a way so the forum keeps the language setting which the user selects rather than having to reselect the language every time you changes pages on my forum?

btw: I have vbSEO installed as well.

Thanks,
Gerald.

Calash 06-18-2009 11:22 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831484)
I get a few of them on my sites too, we are looking into it as we speak. So long as your site functions it is nothing to really worry about allbeit a little annoying I know. This happens when the bots try to translate a page and get bored and move on so the MySQL query gets halted and an error thrown.


I get this all the time on my site. I tried lowering the serverload selection but no luck. It never writes to the database or to the text file.

Any ideas or is this a hosting issue that I will not be able to resolve?


All times are GMT. The time now is 01:05 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.02312 seconds
  • Memory Usage 1,861KB
  • 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
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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