Coding Problem in NGO Website
-
Hi! My name is Raquel. With a friend, we started a HHSN(Helping Hand Social Network) International, NGO website whose aim is to help those less fortunate and those who are in need of any help we can provide. Due to the fact that we are currently lacking necessary fund to hire a professional that we are currently doing all these coding and learning it only thru web searching. And currently our website is still in test mode as we are currently struggling to learn how to code and use wordpress. As of now, we are really needing of some help with some of our code as we are having trouble in coding some of our stuff.
https://hhsni.org/test-button-link/?v=a25496ebf095
We wanted to show a single html button link depending on the country of viewer. We are currently using wordpress 4.4.1 and GeoIP Detection plugin. And here is our code :
<div> <script type="text/javascript"> var a = ["SU", "FX", "TF", "GB", "GP", "GU", "UM", "VG", "VI", "US"] var c = ["AU", "CA", "NZ", "AE", "UK", "SA", "ZA", "QA", "FR", "DE"] if ([geoip_detect2 property="country.isoCode"] = a) { <button style="color: #ff0000;"><strong><a style="color: #ff0000;" href="https://www.google.com/">Link X1</a></strong></button> } else if ([geoip_detect2 property="country.isoCode"] = c) { <button style="color: #ff0000;"><strong><a style="color: #ff0000;" href="https://www.yahoo.com/">Link Y1</a></strong></button> } else { <button style="color: #ff0000;"><strong><a style="color: #ff0000;" href="https://www.msn.com/">Link Z1</a></strong></button> } </script> </div>
Please kindly help us. We will be grateful for any feedback comments, suggestions,and corrections to our coding problem. We will be forever thankful to those who can help us. Thank you very much.
- The topic ‘Coding Problem in NGO Website’ is closed to new replies.