• Resolved AJD

    (@ajd)


    I am trying to show conditional content for African countries only, however the only country that seems to work is the US. (site link)

    I added the IP and COUNTRY shortcodes for trouble shooting. When I use GeoedgePro to simulate different locations accessing the site, the COUNTRY name doesn’t display, and the intended content doesn’t display, though the correct IP does display.

    Also a user testing from South Africa informed me that they see the first link, which is meant for all countries outside of Africa, but not the second link, meant for countries in Africa.

    If I add US to the country code list, then it does display in the US.

    <div class="dl-box"> 
    
    <!-- content for countries outside Africa -->
    
    [CBC show="n" html="div" country="DZ, AO, SH, BJ, BW, BF, BI, CM, CV, CF, TD, KM, CG, DJ, EG, GQ, ER, ET, GA, GM, GH, GW, GN, CI, KE, LS, LR, LY, MG, MW, ML, MR, MU, YT, MA, MZ, NA, NE, NG, ST, RE, RW, ST, SN, SC, SL, SO, ZA, SH, SD, SZ, TZ, TG, TN, UG, CD, ZM, TZ, ZW, SS, CD"]
    
    Education & Community Screenings:
    <a href="http://www.greenplanetfilms.org/product/the-high-cost-of-cheap-gas/" target="_blank">Green Planet Films</a>
    [/CBC]
    
    <!-- content for countries in Africa -->
    
    [CBC show="y" html="div" country="CA, DZ, AO, SH, BJ, BW, BF, BI, CM, CV, CF, TD, KM, CG, DJ, EG, GQ, ER, ET, GA, GM, GH, GW, GN, CI, KE, LS, LR, LY, MG, MW, ML, MR, MU, YT, MA, MZ, NA, NE, NG, ST, RE, RW, ST, SN, SC, SL, SO, ZA, SH, SD, SZ, TZ, TG, TN, UG, CD, ZM, TZ, ZW, SS, CD"]Download or stream the film:
    [purchase_link id="1175" text="Add to Cart" style="button" color="green"][/CBC]
    <div style="font-size:10px; color: #888"

    >[CBC_COUNTRY /][CBC_IP /]</div></div>

    Any help getting this to work would be appreciated.

    https://wordpress.org/plugins/custom-content-by-country/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paul

    (@paultgoodchild)

    This may just be down to inconsistencies in the IP->Country database. It isn’t 100% accurate, but it is free.

    I may look soon to switching to another, but this is a non-trivial task and time really is a limiting factor here as this is all handle in my spare time.

    I’ll see what I can do though…

    Thread Starter AJD

    (@ajd)

    Hi, thanks.

    I did some testing and figured out that the problem is not the plugin. It works fine on the testing server, but the live site is not working. So it either got corrupted in transfer or the live server environment is not allowing it to work.

    Is there a way to uninstall the data and plugin, without phpMyAdmin access?

    Plugin Author Paul

    (@paultgoodchild)

    no, you’ll need to us phpmyadmin to remove the tables…

    Thread Starter AJD

    (@ajd)

    Okay.
    I see what happened now.

    When I moved WordPress from the development server to the live server, the ip2Nation tables were not transferred. Perhaps because they don’t share the database table prefix? Also, even though the database tables were not present, the plugin did not detect that they were missing.

    I imported them manually to the live site and hopefully everything will work.

    Plugin Author Paul

    (@paultgoodchild)

    The plugin honestly requires a lot of work to bring it up to speed and ensure it’s able to detect those sort of inconsistencies. That’s unfortunately significant money+time which we don’t have just now to focus on it.

    It will come in time I hope.

    Thread Starter AJD

    (@ajd)

    Indeed, thanks for putting it out.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Working only for US’ is closed to new replies.