Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Announcements:
The Jamroom Geo Locate module has been released!
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 04/13/09 09:59 
I have just updated the Jamroom Marketplace Modules section with a new FREE Jamroom Module - jrGeoLocate:

http://www.jamroom.net/index.php?m=td_market&o=browse&category=Jamroom+4+Modules

This new module allows you to get the approximate location of the viewing user based on a lookup of their IP Address. The module is super easy to install (simply unzip it into your Jamroom directory), and once installed you'll have access to a new Template function called {jr_geo_locate}:

http://www.jamroom.net/Jamroom4_jr_geo_locate

Which can be embedded into any Skin template. Make sure and check out the linked document for the different options you can use.

If anyone has any questions about the new module, feel free to post here, otherwise I hope you find it useful!

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation

Last edited by Brian on 06/23/09 07:40; edited 1 time in total
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/13/09 10:03 
Sweet!


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 04/13/09 10:28 
Cool! Cool

Thankyou Brian!


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
audiocandy
Beta Team


Joined: 23 Nov 2004
Posts: 945

Posted: 04/13/09 11:12 
I added it to my jr_index_online.tpl
But it lists every user as being in the same city (even though they are not)


Code
<br>
<font size="1" face="Arial">{if $NUM_USERS_ONLINE < 25}

  {foreach from=$USERS item="_usr"}
    <a href="{$_usr.ARTIST_URL}">
<img src="{$_usr.USER_IMAGE_URL}&height=30&width=30&skin=Nova" alt="{$_usr.USER_NICKNAME}" class="m_outline"></a>
    &nbsp;<a href="{$_usr.ARTIST_URL}">{$_usr.USER_NICKNAME}</a> {jr_geo_locate}<br>
  {/foreach}

{else}

  {jr_lang id="116" default="Artists"}: {$NUM_ARTISTS_ONLINE}<br>
  {jr_lang id="117" default="Fans"}: {$NUM_MEMBERS_ONLINE}<br>
  {jr_lang id="188" default="Visitors"}: {$NUM_VISITORS_ONLINE}

{/if}</font>


What did I muck up?

Thanks!
...Bill


_________________
Boundless insanity at www.audiocandy.com

Last edited by audiocandy on 04/13/09 11:23; edited 1 time in total
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 04/13/09 11:18 
I think you are using this incorrectly, or maybe not understanding how it is used. Note to that due to "caching" you may have a problem, and would not want to include it in templates that are going to be cached.

The {jr_geo_locate} module will report the geo location of the VIEWING user - i.e. the person who's browser is looking at your page - based on where you have it in your template, it looks like you are trying to get it to show the location of EACH user on your site - it's not going to do that (at least not now - maybe in a future version). So for example, create a small template called "geo.tpl" in your active skin directory, with this inside:


Code

{jr_geo_locate}


Then load that page up: http://yoursite.com/index.php?t=geo

It will show you YOUR location. If someone else viewed that same page, it would show them THEIR location (not yours).

Let me know if that makes sense.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
audiocandy
Beta Team


Joined: 23 Nov 2004
Posts: 945

Posted: 04/13/09 11:24 
Gotcha

So it just tells me... where I am! haha! I need that alot some days!

Thanks!

..Bill


_________________
Boundless insanity at www.audiocandy.com
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 04/13/09 11:28 

audiocandy:
Gotcha

So it just tells me... where I am! haha! I need that alot some days!

Thanks!

..Bill


Basically yes - but then you can use that info as the search_string for Jamroom Ranking System calls.. Wink

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 04/13/09 12:23 
Cool addon - Thanks Brian.
Is there any way to get the visitors time zone instead of, or as well as the city?
Cheers
Pa

EDIT - Just noticed that lat and long are available some I could just do a few sums using smarty.now and longitude?


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
serjoka



Joined: 24 Feb 2007
Posts: 175

Posted: 04/14/09 00:10 
Great piece of work Brian. Smile

Back to top
CAPER



Joined: 01 Jul 2006
Posts: 1554
Location: BRONX,NYC

Posted: 04/14/09 00:57 
this is great

Back to top
american



Joined: 06 Apr 2006
Posts: 1417
Location: The Americas

Posted: 04/18/09 14:16 

bigguy:

audiocandy:
Gotcha

So it just tells me... where I am! haha! I need that alot some days!

Thanks!

..Bill


Basically yes - but then you can use that info as the search_string for Jamroom Ranking System calls.. Wink

Hope this helps!

- Brian


What would this give

Quote:
...Jamroom Ranking System calls..
info on...


_________________
If This was helpful... Buy me a beer!

Fresh Water is a Human Right!

"Migration is a human right"
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 04/18/09 14:23 

american:

bigguy:

audiocandy:
Gotcha

So it just tells me... where I am! haha! I need that alot some days!

Thanks!

..Bill


Basically yes - but then you can use that info as the search_string for Jamroom Ranking System calls.. Wink

Hope this helps!

- Brian


What would this give

Quote:
...Jamroom Ranking System calls..
info on...


You would use it as a parameter, so you could get gigs in city X, country X, region X or post code X. Or bands in... Or store items available in...


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
american



Joined: 06 Apr 2006
Posts: 1417
Location: The Americas

Posted: 04/18/09 14:33 

bigguy:

audiocandy:
Gotcha

So it just tells me... where I am! haha! I need that alot some days!

Thanks!

..Bill


Basically yes - but then you can use that info as the search_string for Jamroom Ranking System calls.. Wink

Hope this helps!

- Brian


So, I would create a call, with the parameter, and I would get a list, of cities etc., that viewers to the site came from...

Would artists have access to this call..


_________________
If This was helpful... Buy me a beer!

Fresh Water is a Human Right!

"Migration is a human right"
Back to top
GiorgioSlump



Joined: 16 Mar 2006
Posts: 734

Posted: 05/12/09 10:44 
Hi
This module is what I was looking for, thanks Brian.
Just I don't exactly understand where to put the files
there are two include.php and function.jr_geo_locate.php
Can you tell me where to put them?
Thanks

Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 05/12/09 10:47 
There is a file in the download with instructions for installation which you can read. It looks like this;


Quote:
Installing the jrGeoLocate module is very easy - simply upload the contents
of the downloaded archive into your Jamroom directory, and you're set.

Once installed, you will have access to a new Template function:

{jr_geo_locate}

That can be used to get the physical location (approximate) of the viewing
user. You can either display this information, or store it and use to
generate lists from the Jamroom Ranking system based on location.

For full defaults on the {jr_geo_locate} template function, make sure and
check out the documentation:

http://www.jamroom.net/Jamroom4_jr_geo_locate

If you run into any issues installing or setting up, make sure and post
to the Jamroom User Support forum:

http://www.jamroom.net/phpBB2/index.php

and we can get you fixed up quickly Wink

Thanks again

- The Jamroom Team


So... login to your site via ftp, navigate to your root jamroom folder, and upload the modules folder in the archive you downloaded and unzipped...easy easy


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Announcements

123Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.