News:

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

Main Menu

Location Mod

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

Previous topic - Next topic

Pureblood

Quote from: JamesWC on June 28, 2006, 11:11:47 AM
Rather than sifting through 67 pages of the thread, can anyone confirm for me whether it works for 1.0.7? I ask because of the cyptic review mentioning this version.

yea I have it working on 1.07.
getting the basic install is simple, but it didnt install the additional maps, so I had to upload them manually (although it said "installed" in the packet manager).

emrys01

Quote from: Breathwork on June 27, 2006, 07:24:26 AM
Quote from: Bigguy on June 27, 2006, 07:21:42 AM
There might have been some edits in the Subs.php file that were missed.

Thanks but how do I identify and rectify this problem?

well, you might want to consider a

find $forumtop -name "*.php"  -exec grep mm_mm {} /dev/null \;

where $forumtop equates to whatever directory Settings.php lives in.

that'll identify the files that have references to that particular message index.  you might want to expand that search out a bit by changing the search string to just 'mm_'... that should get everything related to MemberMaps.

emrys01

Quote from: Gobalopper on May 12, 2006, 12:36:50 AM
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.

do you supposed you could make the map available, and also include a (detailed) set of instructions on how to carve out a small section into its own map?  that way, people could add their own sub-maps all by themselves, without pestering you.

TIA.  and thanks for the mod itself... it rocks!


guachiman

Hi emrys01 -

Let me describe how I isolated and "showcased" a particular country. In my case I used Venezuela. I did not need the original 10MB file, but I didn't mind a little pixelation. This can be done in 10 min:

Open the regional map that shows the country you want to showcase in the best detail. In my case, Venezuela was shown in: World, Central America and South America.  World is too small therefore it pixelates too much, Central America cropped the country, so I used South_America.gif.  Open the file in any graphic editor (I used Photoshop).

The idea now is to change the size of the drawing to the size that matches the coordinates for that map. You can quickly calculate them from the Location Map Admin screen, by simply substracting the Xend - Xstart and Yend - Ystart of the map you are using.  In this example the values for South_America.gif are: Xstart=1620, Xend=2440, Ystart=1275, Yend=2575.  So the correct size should be x = 2440-1620 = 820 and y = 2575-1275 = 1300.

Change the image size from the original file (780x1237 in this case) to the actual pixel coordinates of that map: 820x1300 (calculated above). 

Next, using guidelines, create a "croping section" of the country you wish to showcase. In my case I set my guides at 150 and 400 in the X axis and 250 in the Y axis.   Crop the map and "save as" your country name (in my case "Venezuela.gif"). 

Now, calculate the coordinates X and Y by adding these numbers to the Xstart and Ystart of the original map.  In my case I got: 

new xStart = 1620+150 = 1770
new xEnd  = 1620+400 = 2020     [NOTE: USE xStart, not xEnd in the formula]
new yStart = 1275+0 = 1275    [NOTE: in my case I did not need to crop the top, so my new yStart matched the yStart of the orig. map]
new yEnd = 1275+250 = 1525    [NOTE: USE yStart, not yEnd in the formula]

Now upload the map via FTP to the directory \\yourSMFinstallation\Themes\default\images\maps

Next, you need to use your PhpMyAdmin, and access your Database.  In my case, the table for the maps is: smf_mm_maps. Open that table and create a new row with the following values (values in [brackets] represent my example's values, with explanation if needed):

ID_MAP:   mapnumber   [22]  (use next consecutive decimal number in the sequence of maps)
mapFile:   filename.gif   [Venezuela.gif]
mapName:   map name   [Venezuela]
xStart:      new xStart   [1770]
xEnd:      new xEnd   [2020]
yStart:      new yStart   [1275]
yEnd:      new yEnd   [1525]
scale:      map scale   [3.00]  (you can test several scales, start with "1.00" and simply go up or down until you find the one you like)
visible:      yes or no   [1] (1=yes, 0=no)

and Done!

You should be able to see the map appear in the Admin list of maps, and in the drop down box.  Test the scale by refreshing the map, and changing the scale in your database (via PHPmyAdmin)

I hope you find this useful!


emrys01

Quote from: guachiman on July 27, 2006, 02:23:23 AM

I hope you find this useful!


immensely so!  thanks very much, i now have the US broken into 6 smaller areas.  i should probably break canada up into provinces, as well.  (it's a hockey board, so there'll end up being a fair number of canadians hanging around...)

thanks again.  it was exactly what i needed.

emrys01

#1005
Quote from: Gobalopper on May 12, 2006, 12:36:50 AM
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.

hey gob, is this file publicly accessible anywhere?  if not, you can email it to me via the mail icon over in the user-info block.

i've created some zoomed regional maps of the us, but did it from the USA.gif file that was in the package, which was the 108k version.  i'd like to remake them from the higher-resolution file.

thanks

Dejv

#1006
Hi Guys,
I have tried to install the mod quite a few times, but still having the same problem -> only admin can view the member map, I also can't change permissions because I am missing the box for this. I found this problem a few times in this topic but not with an answer. Am using 1.1 RC2

.... edit

I solved this by installing a new test forum, installing new package and overwriting. Everything works fine. Didn't have to change anything for the babylon theme. The icon won't show, but actually I don't need it.
SMF 1.1.20

amiga

i have this message when installing (smf 1.07)
QuoteFatal error: Call to undefined function: db_query() in /home/emutribu/www/install.php on line 10

aaho

QuoteDatabase Error
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country)
WHERE ' at line 4
File: /var/www/html/forum/Sources/MemberMap.php
Line: 101 

This is the Error I am getting now...

if I try to install it without manager then I get the following error

Fatal error: Call to undefined function: db_query() in /home/emutribu/www/install.php on line 10

Its some DB error

and I am stucked!!! any help please.

Spidy

Quote from: leah on February 11, 2005, 05:02:31 PM
I've attached flags for England, Scotland, and Wales, not the best but they'll do in a pinch. ;)

Drop new flags into the flag directory, Themes/default/images/flags.

Then run this query in phpMyAdmin, being sure to replace the dbprefix with your own:

Quote
INSERT INTO dbprefix_location_country VALUES ('en', 'England', 5);
INSERT INTO dbprefix_location_country VALUES ('sx', 'Scotland', 5);
INSERT INTO dbprefix_location_country VALUES ('wa', 'Wales', 5);

Worked on mine, but use at your own risk.

worked an absolute treat 1st time nice1 :) althoug i changed the map nuber to 6 coz thats what it was in mine...


DomDom Skye

Hi!

I've install this great mod, but my member can't view the map...
Only me as admin...
http://www.john-howe.com/forum/smf/index.php?action=mm

What can I do to correct this? I've try several time to desinstall and reinstall on my 1.0.7 version but unsuccesfully.

could someone help?

A lot of thx in advance,
Dominique

guachiman

Did you authorize your users and visitors to have permission to view the map?  Check in Permissions > User Group Permissions, and click on the "regular users" group.  You should have checked the boxes for "can view users map" and "can modify its pin".  I'm using SMF in spanish, so the menu items and options might be slightly different.

DomDom Skye

 :-[ ohhh dear!
I complete forget to check this point.

Thx a lot, i will check and com back.

Regards, Dom

DomDom Skye

Hi!

All is working, execpt the gobalopper.locationmod.whoflags.zip mod.
How can I install ist on my 1.0.7 version?
Doesn't work.

Regards, Dominique

DomDom Skye

Ohh and I can't find the meaning of the 3 pin colors on the map (green, red and blue).
Could you explain me?

Regards, Dominique

WhatsUp

Mod worked great on RC2, but is incompatible with RC3.
History Hunters: http://historyhuntersinternational.org/
Enter: test/test
SMF and TinyPortal

Surferbird

Has anyone same problem, i hade it installed on RC2 but now it doesn't install anymore  :( :o
.:: Always something to ask - always grateful for assistance ::.

rebelminion

#1017
Hey All,

Been enjoying the mod. Trying to do some other work on my site and need to uninstall it for a while.

However, I found that when I did, it seemed to leave some stuff behind. For instance, if you uninstall, then go to Users Online, you get an error - it is trying to go get the flag that the MOD puts to the left of the users name on the Users Online view.

There may be more, but I am wondering what the "Approved" method of uninstalling this MOD is?

I don't want to delete it, I just want to uninstall it.

Thanks,
R

beemer

Quote from: djavet on August 23, 2006, 04:40:35 AM
Ohh and I can't find the meaning of the 3 pin colors on the map (green, red and blue).
Could you explain me?

Regards, Dominique

Male/Female/Unknown Gender
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

beemer

Quote from: WhatsUp on August 23, 2006, 05:32:42 AM
Mod worked great on RC2, but is incompatible with RC3.

What's incompatible with RC3 ?

To install re-install you will need to edit the package-info.xml to include RC3 string.

I think I replied earlier in this thread how to change for an RC2 install

I shall probably upgrade to RC3 at the weekend and see if it works  :(

http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

Advertisement: