WordPress.org

Forums

Content By Location
[resolved] Makes other site content disappear (12 posts)

  1. zavoq
    Member
    Posted 3 years ago #

    Activating this plugin makes all other content on my site completely disappear, including content that is not on pages that use the shortcode tags.

    http://wordpress.org/extend/plugins/content-by-location/

  2. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    hi zavoq

    thanks for downloading and trying the plugin.
    because of that i can get feedbaks and detect
    bug i didn't notice them when writing this plugin.

    a new version has released upgrade from the admin panel
    if you see even a smallest problem i will be more then happy
    if you let me know.

    thanks
    yehuda.

  3. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    by the way:
    i recommend to set a message for unknow location or language
    under settings --> content by location

  4. zavoq
    Member
    Posted 3 years ago #

    Thank you fro fixing that bug. The content is no longer disappearing, however another bug has cropped up.

    Here is the shortcode I have put into a test page:

    '[cbl country="US"]
    US Residents only should see this.
    [/cbl]

    [cbl country="DE"]
    German Residents only should see this.
    [/cbl]

    [cbl country="FR"]
    French Residents only should see this.
    [/cbl]'

    This is a strange bug. Here is what happens:

    When I view the page from the US, I see the proper message for the US. When I view the page from a German IP address, I see the proper message for Germany. If I then view the page from a French IP address, all I see is the German message. If I then update the page from WordPress page and view t from the French IP address first, I see the French message. Then if I view it again from a German IP address I see the French message still.

    It seems that it locks the content to whichever the first country I view it from. If France was viewed first, all other countries only see the France message. If Germany views it first, all other countries only see the German message. I have tried viewing this from Canada and the UK as well and all seem to be behaving the same. The only country that seems to consistently work is the US.

  5. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    hi

    thanks again for your feedback.

    with wich service do you use as proxy ?
    i want to try it in my site and check it.

  6. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

  7. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    something went wrong in the above post

    i just played a bit with my plugin (didn't find something)
    but maybe i understand what you experiense.

    i wrote this php script:
    http://wpcoder.co.il/ip.php

    this script is "a debug version" of my plugin to our case,
    if you have free time surf him from the same proxy or service you use in this time each step from the real address to the proxy address are printed
    to the screen and we can understand what happen.

    if you busy just send me here the proxy you used to check.

    thanks

  8. zavoq
    Member
    Posted 3 years ago #

    That link that you sent works with no problems. The proxy links I used are:

    For Germany:
    http://www.sixe.info/

    For France:
    http://clearproxy.eu/

    For The United Kingdom
    http://123fast.co.uk/

    When I use these proxys to view my website, I only see the France message. Here is my test page:

    http://www.redbirdflightsimulations.com/geotest-3

  9. zavoq
    Member
    Posted 3 years ago #

    I figured out the issue. My site is using a Cache plugin that was preventing this plugin from updating the content. When I disabled the cache plugin, this plugin works great.

    I am sorry to make you search for a bug that was not there. Thank you for your work though!

    My site really needs a cache plugin to increase speed. Is there one that you recommend?

    Also, is there a way to make the content appear for more that one county in one shortcode snippet? For example if I wanted to make content available to residents of Germany, Norway, Finland, Poland and Austria. Is there a way to do this without copying the content multiple times?

    -Zavoq

  10. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    hi

    i don't understand why you experiense this issues.

    look in the attached link screen recording of the checking process
    of your link with the proxys you post.

    watch this

  11. zavoq
    Member
    Posted 3 years ago #

    It is working now that I have disabled the Quick Cache plugin. That plugin was making it so that your plugin could not update the content.

    Again, it is working now, but I need to find a way to make it work with the a Cache plugin to speed up my site.

  12. yehudah
    Member
    Plugin Author

    Posted 3 years ago #

    Good news !!!

    good job on the debug work.
    i didn't refresh the page so ignore the above post.

    i think all the cache plugin work in the same method more or less.
    i think i will update the plugin to your suggestion in the next few
    days, always check for plugin updates :-)

    edit:
    the all idea of cache "These snapshots are then stored ( cached ) intuitively, so they can be referenced later, in order to save all of that processing time".

    but i will check that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Content By Location
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic