![]() |
trying this again....
|
Quote:
ah yes thanks ;)EN flag seems to be gone and so far working great. cheers ;) |
i have curl enabled
https://vborg.vbsupport.ru/ and i get a white screen whenever i press a flag button |
Quote:
|
Alright I have updated the translation exceptions a little bit.
Basically go to your plugins in VB, and if you remember you created one that hooked "global_complete". Find that plugin, and edit it. Replace that plugin with this: Code:
// Enable UTF-8 characters What you can do with this is if you have some piece of information that you dont want to be translated, wrap it in those tags. You can do so in your templates or php files or whatever. You should never see those tags in your actual html page as they will be removed. I have also made some improvements in regards to translating numbers and times. I've found that by disabling translation of time likes 01:30 PM and by disabling translation of numbers like 32,423, you sacrifice a bit of readibility for foreign users but the pages load MUCH faster. I haven't included this in any of my posts yet but I will soon. |
I want to mainly know how to avoid Google being unhappy, how do I implement the API key? Thanks
|
Ok sorry, first of all here is a small bug fix of what i posted earlier, as it was slightly bugged.
Code:
// Enable UTF-8 characters As far as making google happy, ( This code will ONLY work if you have VBSEO) Do this: 1. Open up your translate.php. find these lines: Code:
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); Code:
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); Go to http://code.google.com/apis/ajaxsearch/signup.html Get an api key for your site, copy it find: Code:
@curl_setopt($ch, CURLOPT_URL, "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=".urlencode($fl.'|'.$tl)."&q=".urlencode($text)); change it to Code:
@curl_setopt($ch, CURLOPT_URL, "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&key=COPYYOURKEYHERE&langpair=".urlencode($fl.'|'.$tl)."&q=".urlencode($text)); That's all. Easy as pie. This will ensure google knows where the requests are coming from and that they can contact you in case of problems instead of just banning you from all of google by ip. |
FYI we have never had a site banned, after years of running these and similar scripts.
At most google will ban your IP from the API service for 24hrs, no big deal. |
Quote:
I would not be able to easily change the ip of my site. I always say better safe than sorry. |
Quote:
|
All times are GMT. The time now is 07: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|