NP_Geotargeting.php

Lets you geotarget individual blog posts

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin…
  3. Download the files geoip.inc and Geoip.dat.gz, gunzip the second one, and put them in the plugin dir

- in skins, change <%blog(default/index,10)%> to <%Geotargeting(default/index,10)%>. In skins that are to display pages that are accessible for the entire world (e.g. in feeds uploading to Facebook), use syntax such as <%Geotargeting(feeds/rss20,grey/short,10,1,DESC,global)%> (“global” is the keyword, everything else are just options of ShowBlogs framework.)

How to use the plugin

You will be given the option for each to article to either just show it in certain countries or not to show it in certain countries. Provide countries codes as a comma-separated list (us, ni, at, de, …)

History

  • [Version 0.3, released May 18th 2008 ]
    • created option to list worldwide accessible items
  • [Version 0.2, released May 18th 2008 ]
    • fixed all known bugs
    • no longer handles item skins, uses PreParseSkin instead
    • now works with feeds (remember to update feed skins as well!)
  • [Version 0.1, released May 17th 2008 ]
    • imported NP_ShowBlogs on whose code this is based.
geotargeting.txt · Last modified: 2008/06/14 02:56 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki