vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - vB Enterprise Translator (https://vborg.vbsupport.ru/showthread.php?t=220886)

NLP-er 11-22-2009 07:15 PM

Quote:

Originally Posted by imported_silkroad (Post 1919070)
Yes, they should be ashamed of themselves. I think you will see a blog post on this topic soon, and you can point people to that blog article. When I see that article, I will let you know ...

Thanks :):up:

NLP-er 11-22-2009 07:18 PM

Quote:

Originally Posted by isatice (Post 1919104)
wow ur the best , works amazing
actually it's because in my forum main language is not English and it's against Google adsense rules to put ads
but now i can put ads in my English pages with ur great addon

Can you please tell me more about this AdSense rule? I'm surprised to hear something like that and would like to check it.

isatice 11-22-2009 07:37 PM

Quote:

Originally Posted by NLP-er (Post 1919107)
Can you please tell me more about this AdSense rule? I'm surprised to hear something like that and would like to check it.


here it is : What languages does AdSense support?

there are only a few languages supported by google adsense , otherwise google will close the publisher's account

imported_silkroad 11-22-2009 07:51 PM

Quote:

Originally Posted by isatice (Post 1919118)
here it is : What languages does AdSense support?

there are only a few languages supported by google adsense , otherwise google will close the publisher's account

That is not (edit: completely) true. Google's policy states:

Quote:

Please also be aware that placing the AdSense code on pages with content primarily in an unsupported language is not permitted
And there are certainly more than a few languages supported as both primary and secondary languages:


Quote:

Arabic French Polish Bulgarian German Portuguese Chinese (simplified) Greek Romanian Chinese (traditional) Hebrew Russian Croatian Hungarian Serbian Czech Italian Slovak Danish Japanese Spanish Dutch Korean Swedish English Latvian Thai Finnish Lithuanian Turkish Norwegian Ukranian

KrisP 11-23-2009 01:52 AM

Response from Google:

Quote:

You were sending a high volume of traffic to the Language API which looks like it may be abuse or the result of a programming error. Because you failed to identify yourself with an (optional) API key or by correctly setting your HTTP referer (as required by the Terms of Use), we were unable to contact you about this traffic.

I urge you to take a look at our Terms of Use:
http://code.google.com/apis/ajaxlanguage/terms.html

Please pay particular attention to the sections which require that every query be at the direct request of an end user and that the results must be shown to the user (unmodified). Also notice the requirements around identification.

I appreciate the fact that you are only caching results for <15 days. However, please note that it is in violation of the terms to refresh your cache automatically. Instead, you should wait until a specific translation is requested by an end user. When this happens, you can perform the request to the API, then temporarily cache the results (as you're currently doing) in addition to displaying them to the user who requested the translation.

Once you make that change to your system - as well as add the required identification - please provide me with the IP address of your server, and I'll be able to unblock your access to the API.
Seems from the response:

You cannot populate the cache beforehand - it must be the end user (or Googlebot) doing that.

jaryx 11-23-2009 04:31 AM

Quote:

Originally Posted by NLP-er (Post 1918624)
Yes - simply edit your templates and add:
Code:

<if condition="!$_GET[language]">THIS WILL BE SHOWN ONLY ON NOT TRANSLATED PAGE</if>

Quote:

Originally Posted by imported_silkroad (Post 1919124)
That is not (edit: completely) true. Google's policy states:

And there are certainly more than a few languages supported as both primary and secondary languages:
Code:

    Arabic French Polish Bulgarian German Portuguese Chinese (simplified) Greek Romanian Chinese (traditional) Hebrew Russian Croatian Hungarian Serbian Czech Italian Slovak Danish Japanese Spanish Dutch Korean Swedish English Latvian Thai Finnish Lithuanian Turkish Norwegian Ukranian

What would be code for a specific language(s)?

For example, I would just turn off the Belarusian and Catalan?

imported_silkroad 11-23-2009 08:03 AM

Quote:

Originally Posted by KrisP (Post 1919274)
Response from Google .....

Hi Kris,

Great job! Glad to see you back up again soon.

Google is fair.

OBTW, a long time ago (well, around 5 months ago), there was a member of these forums called T2x. He was the first person to insist that people need to add the referral header code and to use the Google API key. He also was the first person to crack the code on rewriting the URLs to get rid of the question mark in the query.

At the time, the guy who paid for the code for the first translation mod (whom NLP-er worked with to make the code actually and the database work properly) really ridiculed T2x for warning people to add the referral header to Google and to add the optional AJAX search API.

It turns out that T2x is the hero for all of us. He was the first to work out these issues. We have been running T2x's code for months and never had any problems because we have always had the referral headers, etc. We followed T2x completely because what he said corresponded directly with the Google TOS.

My public praise for T2x takes nothing away from NLP-er who has done a great job too, without a doubt.

However, I think it is important to remind everyone that it was fellow forum team member T2x that was the first person to work out all the Google TOS issues and provide the original code fixes.

Everyone here owes T2x and word of thanks, including me.

Thank you T2x!

You are 'da man! :up: :up: :up:

imported_silkroad 11-23-2009 08:07 AM

Quote:

Originally Posted by jaryx (Post 1919322)
What would be code for a specific language(s)?

For example, I would just turn off the Belarusian and Catalan?

In NLP-er's code, all languages are configurable in the UserCP for this mod.

In addition, some people use 301 redirection if they have an issue with any language and want to redirect the traffic to that language.

imported_silkroad 11-23-2009 04:43 PM

Here are a few examples of Geotargeting by country and some examples with $_GET[language]. Requires Apache2, this plugin and Apache mod_geoip.

Quote:

<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' ))">
<!-- Your CPM Ad Code Here -->
<else />
<!-- Your Adsense Ad Code Here -->
</if>
Here is another example (for postbit)

Quote:

<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) AND is_member_of($vbulletin->userinfo, 1,3,4,11,21)">
<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('UK','GB'))">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your CPM Ad Code for the UK Here) -->
</span>
</div>
</if>
<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','CA','IN','AU','MY','SG','HK'))">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your CPM Ad Code for the US, Canada, etc Here) -->
</span>
</div>
</if>
<if condition="!in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' )) AND !$_GET[language]">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your Rest-of-the-World CPM Code in Your Standard Forum Language Here) -->
</span>
</div>
</if>
<if condition="!in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' )) and $_GET[language] ">
<!-- Your World Adsense Ad Code for all your Translated Languages Here) -->
</if>
</if>
Enjoy.

jaryx 11-23-2009 05:55 PM

Quote:

Originally Posted by imported_silkroad (Post 1919388)
In NLP-er's code, all languages are configurable in the UserCP for this mod.

In addition, some people use 301 redirection if they have an issue with any language and want to redirect the traffic to that language.

I took a little bad.
I just want traffic from these countries and their languages, but do not want to display ads on pages in their languages.

Quote:

Originally Posted by imported_silkroad (Post 1919608)
Here are a few examples of Geotargeting by country and some examples with $_GET[language]. Requires Apache2, this plugin and Apache mod_geoip.

Here is another example (for postbit)
Enjoy.

Thank you. Dziękuję ;)
I'll check it.


All times are GMT. The time now is 09:01 AM.

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.05157 seconds
  • Memory Usage 1,767KB
  • 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
  • (15)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