• Welcome to Simple Machines Community Forum. Please login or sign up.
September 28, 2021, 12:13:58 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Location Mod

Started by Gobalopper, November 19, 2004, 01:43:12 AM

Previous topic - Next topic

Gobalopper

November 19, 2004, 01:43:12 AM Last Edit: June 20, 2011, 05:53:03 PM by Gobalopper
I am no longer using the SMF software and as such this mod is no longer supported. If someone is interested feel free to take the code and port it to newer versions of SMF.




Link to Mod

gobalopper.locationmod.zip => the *required* base install, this provides you the member map
gobalopper.locationmod.additionalmaps.zip => this will install extra maps for you to use
gobalopper.locationmod.whoflags.zip => this provides the ip2country database and the ability to see the users flag on the who's online page

For more details please see the discussion thread:
http://www.simplemachines.org/community/index.php?topic=20168.0

Images of the mod in action can be seen here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3021;image
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3022;image

Gobalopper

November 19, 2004, 01:47:48 AM #1 Last Edit: February 10, 2007, 05:46:17 PM by Gobalopper
Here are the files you need to chmod if you have permission problems when installing:
QuoteDirectories:
./Sources/
./Themes/default/
./Themes/default/images/
./Themes/default/images/english/
./Themes/default/languages/

Files:
./index.php
./Sources/Display.php
./Sources/Load.php
./Sources/ManageMembers.php
./Sources/ManagePermissions.php
./Sources/Subs.php
./Sources/Who.php
./Themes/default/languages/Modifications.english.php
./Themes/default/Display.template.php
./Themes/default/Who.template.php
./Themes/default/script.js

If you are looking for extra maps that have a closer zoom level download gobalopper.locationmod.additionalmaps.zip. It includes these maps:
QuoteAfrica.gif - Africa
Australia.gif - Australia
BE-LU-NL.gif - Belgium, Luxemburg, Netherlands
Canada.gif - Canada
CZ-SK.gif - Czech Republic, Slovakia
DE-AT-CH.gif - Germany, Austria, Switzerland
DE.gif - Germany
East_Asia.gif - Eastern Asia
Europe.gif - Europe
FR.gif - France
GB-IE.gif - United Kingdom, Ireland
IT.gif - Italy
Middle_America.gif - Middle America
NO-SE-FI.gif - Scandinavia
North-West_Europe.gif - North-West Europe
Russia.gif - Russia
South_America.gif - South America
UA.gif - Ukraine
USA.gif - United States of America
West_Asia.gif - Western Asia

previous download counts:
location mod (additional maps) - 2500
location mod (who flags) - 3574
location mod - 6386

Racenut

November 19, 2004, 06:37:00 AM #2 Last Edit: November 19, 2004, 09:27:26 AM by Racenut
Installed this on RC 2. Says it installed successfully but never saw anything added

TheDel

Yay!!!!!!!!!!!!!!!!!!!!!!!
Thank you- its finally here!!!  ;D

Gobalopper

If you want a link to the member map use ?action=mm. You will have to create a button to add to your menu.

ElLizzardo

Been waiting a while for this bad boy...maps look great.
Only thing is when I try to place a pin nothing happens (crosshairs on the map and click).
What am I missing, anyone else having this issue?
Thanks
King Lizzard Las Vegas
http://www.kinglizzard.com [nofollow]

Gobalopper

You may have to refresh the javascript file in your cache. It is updated by the mod and most browsers won't notice the new functions until you do.

Alisha

Wild, I was talking to one of my members about this in VB less than 3 hours ago.  I was planning on looking this up and seeing if it was mentioned in Feature Requests.  A must install for our site.


Gobalopper

I know someone ported my older version of this mod for YaBB SE to either phpBB or VB... or maybe it was another one... Anyway, this version is a lot different and has a number of improvements.

I've attached two screenshots for those of you who have never seen the member map portion in action before.

NayNay

This has to be the stupidest question but here goes...

why, for the life of me, can I not find the .smm file?


Gobalopper

Because it uses the Package Manager to install. If you want to do it by hand you can look at the the three install files. ie install.php, install.xml and install.txt. And of course package-info.xml to see where things go.

NayNay

Ah okay.  I am getting a directoy permission error.  Which directories does this mod need to write to so that I can CHMOD correctly?

Gobalopper

Hmm...

Well it puts things in these directories:

./Sources/
./Themes/default/
./Themes/default/images/

And these are the files it will edit:
index.php
./Sources/Display.php
./Sources/Load.php
./Sources/ManageMembers.php
./Sources/ManagePermissions.php
./Sources/Who.php
./Themes/default/languages/Modifications.english.php
./Themes/default/Display.template.php
./Themes/default/Who.template.php
./Themes/default/script.js

Kindred

And if you have a non-default theme, you will have to insert the 3 lines into Display.template.php in your chosen theme(s).

(which I did, but I prefer my flag to show below the stars)

Globalopper....   very nice mod!!!

one quick question; What determines the colour of the pin to mark your location?

Ok.. another quick question,   any way to have this read (or write to) the location string in the user's profile?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

TheDel

Quote from: Gobalopper on November 19, 2004, 02:18:16 PM
Because it uses the Package Manager to install. If you want to do it by hand you can look at the the three install files. ie install.php, install.xml and install.txt. And of course package-info.xml to see where things go.
Oh man- you can install this via PacMan?
Yes!
I remember manually adding your SE version and having to do it over and over after each new SE version that was getting released.

Gobalopper

Quote from: kindred on November 19, 2004, 04:09:28 PMone quick question; What determines the colour of the pin to mark your location?

Ok.. another quick question, any way to have this read (or write to) the location string in the user's profile?

Color is based on the gender. So blue for male, red for female and green for n/a.

I could do that... in YaBB SE version it actually used the location field to store the data. I will look at improving the profile information in the next release.



Quote from: TheDel on November 19, 2004, 04:12:26 PMOh man- you can install this via PacMan?

Yep. I didn't trust the old package manager but this new one is great.

Alisha

OK, I don't want to be RUDE, its not meant that way, but I need to ask because of my own lack of knowledge.

Does this MOD have some hard bugs to figure out? I see lots a new MODs come out with pages of bugs. I can handle that. lol I would be sooo lost! I spent hours last night trying to solve a problem that could have been corrected my changing a setting I never should have touched... So, please do not take this the wrong way, but I want this mod now, although, should I wait for corrections or its it good to go?

NayNay

I've CHMOD'd every file that gets edited...and I am still unable to upload.  Odd.

I'll have to look into it further on my end.  Though, other packages upload just fine. 

Gobalopper

Quote from: Alisha on November 19, 2004, 05:20:56 PMOK, I don't want to be RUDE, its not meant that way, but I need to ask because of my own lack of knowledge.

Does this MOD have some hard bugs to figure out? I see lots a new MODs come out with pages of bugs. I can handle that. lol I would be sooo lost! I spent hours last night trying to solve a problem that could have been corrected my changing a setting I never should have touched... So, please do not take this the wrong way, but I want this mod now, although, should I wait for corrections or its it good to go?

Well I've been using this mod since before SMF was even publically available and charter members have had access to it since early beta. So it should be fine to go. There are no known bugs, just some features I still would like to add.


Quote from: NayNay on November 19, 2004, 05:37:00 PMI've CHMOD'd every file that gets edited...and I am still unable to upload. Odd.

I'll have to look into it further on my end. Though, other packages upload just fine.

Ya I had the same issue when I was installing it but it was my local test server so I could just chmod everything 777. :)
That is one thing that would be nice to have the package manager tell you, exactly what files to chmod.

Alisha

Ok, then... I will do it... :) Thanks :)

Advertisement: