aboutalexg
Forum Replies Created
-
Hey @philsbury,
I’m sorry to bother you another time…
Now I’ve an issue with IE 11, I can’t pass the age gate and enter the website even if the age is good…and the error message “You are not old enough to view this content” doesn’t display when you’re younger
- This reply was modified 4 years, 7 months ago by aboutalexg.
hi @philsbury,
I found one bug :
To test your extension, I add 3 region to start :
- France
- United States
- Spain
- United Kingdom
- Belgium
- Swiss
- Brazil
It was working great so in a second time I add
And when I save the first 3 are erased
The only way to have it all was to create all together, if I add one more after I keep with the last one and all the others are erased
screen shotAfter that it’s Perfect !
I just need to customize the css for the select and it’s done
#ag-region {}
select .ag-region {}Thank you so much
Alexhi @philsbury
It is working with this php version, on the normal install and on the wpml install.
Is it possible on the wpml install to have another field for each language to add manually the url where I want them to go ? With you Region plugin of today even if I select France it goes on the English version…
With this version of age gate countries, I was using the ‘lang’ variable to go to the English version when ‘en’ https://www.mywebsite.com
or to go to the right language
‘/fr’ https://www.mywebsite.com/fr
‘/es’ https://www.mywebsite.com/esand it helps me to select for each country the language that I want them to see
Don’t know if I’m explaining it the right way…
ThanksHi @philsbury
Cannot install the plugin
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected ‘?’ in /myweb/html/wp-content/plugins/age-gate-region/src/FrontEnd/Display.php on line 37Perfect
Thanks Philhi Phil,
Thanks for your help last week, my 2 demos site where just to test the plugins with the default theme, and now that I’m using it the real preprod for my client, I have the same problem of passing the age gate even if I’m under 21 and that I select United States…
It’s looks like there’s a conflict with jquery.
if I delete my jquery import for the home page, the age gate work great.On others pages I load the jquery and if you try to pass the age gate on this URL
The specific ages for United States (21 years old) doesn’t work it only take the Default age (18)Is there a way to load ??jquery-3.3.1.min.js?? after the age gate validation ?
is it hard to add this editable in the back office
'fr' => [ 'age' => 18, 'name' => __('France', 'age-gate-countries'), 'lang' => '/fr'
to let the client add more countries
and if he add a new language to update the ‘lang’- This reply was modified 4 years, 7 months ago by aboutalexg.
Thanks for your quick answer and sorry for my mistake !!!
It’s working perfectly for the one language web- This reply was modified 4 years, 7 months ago by aboutalexg.
here is the link to the wpml multilingual web.
where it’s steal working with javascript, there just a little lag when its changing of language, it display English first when you pass the age gate and load the French, just after.
In this version, I’ve used your Age Gate Countries with juste a little modification on the ‘lang’ info where I put a “/” before the language that have specific folder…
function ag_get_countries(){ return [ 'fr' => [ 'age' => 18, 'name' => __('France', 'age-gate-countries'), 'lang' => '/fr' ], 'es' => [ 'age'=> 18, 'name' => __('Spain', 'age-gate-countries'), 'lang' => '/es' ], 'gb' => [ 'age' => 18, 'name' => __('United Kingdom', 'age-gate-countries'), 'lang' => 'en' ], 'us' => [ 'age'=> 21, 'name' => __('United States', 'age-gate-countries'), 'lang' => 'en' ],
don’t know if it’s done the right way
here is the link to the one language web.
where it doesn’t work with javascript
and I’ve used your Age Gate Canadian Province extensionHi,
I’ve found the solution :
with one language I’ve used your Age Gate Canadian Province extension
with wpml I’ve used your Age Gate Country extension
One more thing for both it works with the classic version but it doesn’t work with the Javascript Age gate. With Javascript it only take the age restriction display in the back office (18 in my case)
I think it is due to the javascript age-gate-js-extra that only store the 18
<script type="text/javascript" id="age-gate-js-extra"> /* <![CDATA[ */ var age_gate_params = {"ajaxurl":"http:\/\/localhost:8888\/myweb\/wp-admin\/admin-ajax.php","settings":{"age":18,"type":"all","bypass":"","restrict":"","title":false,"current_title":"","screen":"front","ignore_logged":1,"rechallenge":1,"has_filter":false,"viewport":"1","anon":0,"transition":"fade"},"misc":{"i":2,"t":"front","qs":"1"},"errors":{"invalid":"Your input was invalid","failed":"You are not old enough to view this content","generic":"An error occurred, please try again","cookies":"Your browser does not support cookies, you may experience problems entering this site"}}; /* ]]> */ </script>
Let me know how to fix this
- This reply was modified 4 years, 7 months ago by aboutalexg.
Forum: Plugins
In reply to: [Custom Post Type Permalinks] CUSTOM POST TYPE TRANSLATIONthe slug is “paysbasque”
it have a rewriting rules in the custom post “notre-pays-basque”
and a translation in WPML for the English version “our-basque-country”- This reply was modified 5 years, 11 months ago by aboutalexg.
Forum: Plugins
In reply to: [Age Gate] MULTILINGUAL WITH COUNTRY DIFFERENT AGESThanks for your update but I work with wmpl
Forum: Plugins
In reply to: [Age Gate] MULTILINGUAL WITH COUNTRY DIFFERENT AGEShi @philsbury
Thanks for your answerHere is the extension of your age gate countries
(https://we.tl/t-XllM1K2mdw)I’ve found another problem
my default language is English https://www.mywebsite.com/en
When I use the age gate on the home page https://www.mywebsite.com/en
no problem it can redirect to my 3 languages
https://www.mywebsite.com/en
https://www.mywebsite.com/es
https://www.mywebsite.com/frbut when I use it on this url https://www.mywebsite.com/fr or https://www.mywebsite.com/es
it works for this 2 languages, it can redirect to my french and spanish
https://www.mywebsite.com/es
https://www.mywebsite.com/frbut if I choose english in the age gate it stays in the french if I’ve load the https://www.mywebsite.com/fr or stays in spanish if I’ve load the https://www.mywebsite.com/es