<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ModulesGarden Blog &#187; MaxMind</title>
	<atom:link href="https://www.blog.modulesgarden.com/tag/maxmind/feed" rel="self" type="application/rss+xml" />
	<link>https://www.blog.modulesgarden.com</link>
	<description>Where Creativity Meets Technology</description>
	<lastBuildDate>Wed, 01 Apr 2026 11:59:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Automatic Currency, Language And Template Setup For WHMCS &#8211; Updated</title>
		<link>https://www.blog.modulesgarden.com/automatic-currency-language-template-setup-whmcs</link>
		<comments>https://www.blog.modulesgarden.com/automatic-currency-language-template-setup-whmcs#comments</comments>
		<pubDate>Wed, 16 Jan 2019 15:30:02 +0000</pubDate>
		<dc:creator>Piotr Dołęga</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[MaxMind]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WHMCS]]></category>

		<guid isPermaLink="false">https://www.blog.modulesgarden.com/?p=230</guid>
		<description><![CDATA[The recognition of our Geolocation Hook For WHMCS has been continuously growing among the global community of WHMCS users. Having this exhilarating trend in mind, we felt extremely tempted to breathe new life into the original Blog post dated March &#8230; <a href="https://www.blog.modulesgarden.com/automatic-currency-language-template-setup-whmcs">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The recognition of our <a href="https://www.modulesgarden.com/products/whmcs/geolocation-hook"><strong style="color: #5e90b1;">Geolocation Hook For WHMCS</strong></a> has been continuously growing among the global community of WHMCS users. Having this exhilarating trend in mind, we felt extremely tempted to breathe new life into the original Blog post dated March 2013, and show the current potential lying within this simple, yet undoubtedly powerful tool.<strong><span id="more-230"></span></strong></p>
<p style="text-align: justify;">One of the most interesting novelties as compared to the then hook&#8217;s advantages is the addition of support for <a href="https://www.modulesgarden.com/products/whmcs/polish-language-translation"><strong style="color: #cb7d34;">Polish Language Translation For WHMCS</strong></a>. With it, all Polish clients will enjoy a detailed localization of your entire system into their very own mother tongue.</p>
<p style="text-align: justify;">What we present below is the catalog of most essential maneuvers you may carry out thanks to our hook. To help you find your way through the particular features more easily, the article has been supplemented with the exact code lines and clear guidelines on how to adjust them.</p>
<ol>
<li><strong>Configure the rules of currency, language and template changes</strong></li>
<p>
<p style="text-align: justify;">Adjustment of the client area pages depending on your clients location has been simplified to the maximum possible level. Edit the code with the provided in the commented areas tips to achieve any configuration of currency, language and templates.</p>
<p></p><pre class="crayon-plain-tag">/**
* Define relations between countries and currencies.
* Enter the currency code for each country (codes used), use the below pattern, edit it or add new entries below:
*/
$countryToCurrency = array(
'default' =&gt; 'USD',
'US' =&gt; 'USD',
'GB' =&gt; 'GBP',
// NOTE: You can add more below
);</pre><p></p><pre class="crayon-plain-tag">/**
* Define language rules by assigning a language to a single country.
* Use the below pattern (language name for country code) edit it and/or add new entries below:
*/
$countryToLanguage = array(
'default' =&gt; 'english',
'US' =&gt; 'english',
'DE' =&gt; 'german',
'NO' =&gt; 'norwegian',
// NOTE: You can add more below
);</pre><p></p><pre class="crayon-plain-tag">/**
* Configure additional settings:
* Firstly assign a WHMCS template to each country used.
* Use the below pattern (template name for country code) edit it and/or add new entries below:
*/
$countryToTemplate = array(
'US' =&gt; 'six',
'default' =&gt; 'six',
// NOTE: You can add more below
);</pre><p></p><pre class="crayon-plain-tag">/**
* Now, define the language for each WHMCS template used.
* Please note that a template available in WHMCS V7 is: 'six'.
* It is important to use a template that exists within your WHMCS system.
* Not Logged In Users
*/
$templateToLanguage = array(
'english' =&gt; 'six',
'german' =&gt; 'six',
'default' =&gt; 'six',
// NOTE: You can add more below
);</pre><p></p>
<li style="padding-top: 10px;"><strong>Select a template depending on a mobile device or a domain used</strong></li>
<p>
<p style="text-align: justify;">You may point a template that shall be called, following the device type used, a tablet or a mobile. In the very same way, point the domain names that your visitors are redirected from, to turn on a specific template for them. Uncomment the lines and provide required templates names.</p>
<p></p><pre class="crayon-plain-tag">/**
* You may define a mobile template per a mobile device: mobile and tablet types.
* Use the below pattern (template name for mobile device) and edit the entries.
* Comment out to disable the option.
*/
$mobileToTemplate = [
// 'mobile' =&gt; 'mobile_template',
// 'tablet' =&gt; 'tablet_template',
];</pre><p></p><pre class="crayon-plain-tag">/**
* You may define templates per domain name. Enter a domain name and assign a template to each one of them.
* Uncomment the below examples to turn on.
*/
$domainToTemplate = [
//'www.example.mobi' =&gt; 'mobile_template',
//'www.example.com' =&gt; 'six',
];</pre><p></p>
<li style="padding-top: 10px;"><strong>Select adjustable pages of your client area</strong></li>
<p>
<p style="text-align: justify;">The hook offers huge flexibility when it comes to personalizing a whole or just a specific part of your client area. You are free to select the exact pages where the alterations should be performed.</p>
<p></p><pre class="crayon-plain-tag">/**
* Enter pages in your WHMCS which the hook will be active for.
* Add more pages at the bottom of the list, comment out single pages to disable the hook for them:
*/
$allowedScripts = array(
'p1.php',
'index.php',
'clientarea.php',
'cart.php',
'knowledgebase.php',
'announcements.php',
'serverstatus.php',
'affiliates.php',
'contact.php',
// NOTE: You can add more below
);</pre><p></p>
<li style="padding-top: 10px;"><strong>Disable the hook with ease</strong></li>
<p>
<p style="text-align: justify;">There might be cases when you do not wish the hook to alter the client area. You are given a wide range of possibilities to turn off the hook for specific IP addresses, IP pools or certain user agents &#8211; all is up to you!</p>
<p></p><pre class="crayon-plain-tag">/**
* Point single IP addresses. The hook will be turned off for these addresses.
* Uncomment the below list and edit the exemplary addresses, add more at the bottom of the list:
*/
$disabledForIPs = array(
// '91.192.166.22',
// '192.168.0.39',
// NOTE: You can uncomment or add more below
);</pre><p></p><pre class="crayon-plain-tag">/**
* Point full IP pools. The hook will be turned off for the addresses in these pools.
* Uncomment the below list and edit the exemplary addresses, add more at the bottom of the list:
*/
$disabledForCidrIPs = array(
// '192.168.56.0/24',
// '192.168.0.39/24',
// NOTE: You can uncomment or add more below
);</pre><p></p><pre class="crayon-plain-tag">/**
* Point user agents. The hook will be turned off for the enumerated here devices/browsers.
* Enter a short or a full user agent name like in the examples below.
* Uncomment the below list and edit the exemplary entries, add more at the bottom of the list:
*/
$disabledForBrowsers = array(
// 'Chrome',
// 'Firefox',
// 'Google-Site-Verification',
// 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html )',
// 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 7.1; Trident/5.0)',
// NOTE: You can uncomment or add more below
);</pre><p></p>
<li style="padding-top: 10px;"><strong>Get the country with MaxMind GeoIP2</strong></li>
<p>
<p style="text-align: justify;">In order to track your clients’ locations, either use the included in the package submodule, or add your own submodule.</p>
<p></p><pre class="crayon-plain-tag">/**
* Get the country using an external service, e.g. MaxMind GeoLite
* http://dev.maxmind.com/geoip/geolite
* NOTE: You can also create your own submodule, edit the below line in such case as only one submodule can work at a time.
*/
$submodule = 'GeoIP2';</pre><p></ol>
<p style="text-align: justify; padding-top: 10px;">If the article does not cover the configuration scheme you look for, it most likely can be found <strong style="text-decoration: underline; color: #5e90b1;"><a href="https://www.docs.modulesgarden.com/Geolocation_Hook_For_WHMCS">in our Wiki article</a></strong>. Apart from detailed instructions on how to upload and configure the tool, you will find there several visualizations of how the client area may be adapted with this neat, completely free of charge hook.</p>
<p style="text-align: justify;"><span style="display: block; text-align: center;"><a style="text-decoration: none; display: inline-block; margin: 28px 0px 28px 0px;" href="https://www.modulesgarden.com/products/whmcs/geolocation-hook"><span style="-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background: #5e90b1; color: #ffffff; padding: 15px 20px; text-decoration: none;"><strong>Get the Hook!</strong></span></a></span></p>
]]></content:encoded>
			<wfw:commentRss>https://www.blog.modulesgarden.com/automatic-currency-language-template-setup-whmcs/feed</wfw:commentRss>
		<slash:comments>213</slash:comments>
		</item>
	</channel>
</rss>
