« Torna a Portlets

IP Geocoder Portlet

Table of Contents [-]

Information #

The IP Geocoder portlet locates your geological position. This portlet is not used so much as a stand alone portlet, although it does display your location in the portlet window, but is used in conjunction with other portlets, such as the Map portlet and the Google Maps portlet. The IP Geocoder portlet utilizes Max Mind's GeoIP City Database.

Configure#

  • 1. Deploy the IP Geocoder portlet.
  • 2. Shut down your application server.
  • 3. Download the GeoIP City Database, such as the free GeoLite City Database.
  • 4. Unzip the .dat file to your desired storage path.
  • 5. Go to /{ROOT}/webapps/ip-geocoder-portlet/WEB-INF/classes/.
  • 6. Create a portlet-ext.properties file at this location.
  • 7. Add the property maxmind.database.file=(GeoIP City Database .dat file path) to this file.
  • 8. Start your application server.
0 Allegati
49536 Visualizzazioni
Media (2 Voti)
La media del punteggio è 4.0 stelle su 5.
Commenti
Commenti Autore Data
After these instructions, there is blank, grey... Jakub Liska 6 ottobre 2010 9.18
Once you've installed IP Geocoder, edit... Franck Liénard 13 febbraio 2011 9.06
Yes you are correct Franck. I had the same... Manikandan S 15 agosto 2011 21.55
Hi Franck, In my... Manikandan S 17 agosto 2011 3.01

After these instructions, there is blank, grey screen inside the portlet and I can't manage all the other porlets within the page (remove, min, max, edit)...
because of this:

16:06:18,191 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
16:06:48,193 INFO [PortalImpl:3847] Current URL /poller/send generates exception: null
16:07:18,195 INFO [PortalImpl:3847] Current URL /poller/send generates exception: null
16:07:34,706 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
16:07:39,969 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
16:08:09,969 INFO [PortalImpl:3847] Current URL /poller/send generates exception: null
16:08:39,971 INFO [PortalImpl:3847] Current URL /poller/send generates exception: null
16:08:42,645 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
16:09:04,135 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
16:09:14,498 INFO [PortalImpl:3847] Current URL /poller/receive generates exception: null
Inviato il 06/10/10 9.18.
Once you've installed IP Geocoder, edit /social-networking-portlet/map/view.jsp.
Replace these lines :
<liferay-util:html-bottom>
<script src="http://www.google.com/jsapi?key=<%= PortletProps.get("map.google.maps.api.key") %>" type="text/javascript"></script>
</liferay-util:html-bottom>

By :
<liferay-util:html-top>
<script src="http://www.google.com/jsapi?key=your-google-maps-api-key" type="text/javascript"></script>
</liferay-util:html-top>
Inviato il 13/02/11 9.06 in risposta a Jakub Liska.
Yes you are correct Franck. I had the same problem then I replaced this coding now its working fine. Thanks.
Inviato il 15/08/11 21.55 in risposta a Franck Liénard.
Hi Franck,
In my social-networking-portlet\map\view.jsp page shows like,
float latitude = ipInfo.getLatitude();
System.out.println("latitude#########"+latitude);
float longitude = ipInfo.getLongitude();
System.out.println(" longitude #########"+longitude);
Both latitude and longitude return 0.0 value. I couldn't get exact location of the user in the map.
Inviato il 17/08/11 3.01 in risposta a Mani kandan.