News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Location Mod

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

Previous topic - Next topic

mikemotorcade

Hey this is an AWESOME mod I love it!!! Just a quick request: Is there any way I can get a map of the West Coast of America? Like, maybe, Oregon and surrounding areas or something like that? Just about ALL of my members are from southern Oregon and surrounding areas and it doesn't do too much good to have a map that just has a jumble of dots all in one area that you can't distinguish from or zoom in. If this is at all possible I would GREATLY appreciate it.
Many Thanks!!
-Mike
P.S. And if you really want to you could even do a map of the Rogue Valley, OR (Medford, OR - Central Point, OR, Etc.) If you want to, You don't have to. Thank you very much!

Dennisronja

hi galopper,
did you any updates in this mod?
i tryed to install but in 1.0.7 and 1.1.RC2 it says check file permissions ,but i gave every one 777.
pls check it.

spathi

Hi All,

I've installed this mod via the package manager, but am receiving the following error when selecting the 'member map' button from the main forum index:


Database 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/forums/Sources/MemberMap.php
Line: 101


Any ideas on what is causing this? Im using SMF 1.0.7 and the installation didnt advise of any errors. I was unable to find anything via search of the forums.

Any help is very much appreciated :)

Thanks for your time!

Gambi

Okay, I really tried to search throughout the thread but at 62 pages and having to get up early in the morning I figured it wouldn't hurt to ask. My apologies if it has come up alot as it could be a common question/request.

Is it possible to insert the flag input information from the Member Map and place it on the profile page? Like in this picture (with the flag coming up too, possibly)


(I was in a rush so pretend city meant flag) ;)

Since we just converted to SMF from Invision, we had a cool flag feature that we could setup through the profile, yet having to do it through the World Map would be confusing for the members so if possible, if someone could provide the correct code (of course after they've confirmed it can be done or not :P) then I would be very appreciative.

Thank you in advance, oh and excellent mod!

Gambi

I know the whole "Does anyone know this" type bump is annoying and I understand that some people may have seen this question and are working on it right now. Yet in another way it's hoped that I'm not ignored aswell, sorry about the bump yet I would really like to know. I've tried countless of times to adapt the script from the Membermap template into the profile template yet the closest I get is the drop down select box with nothing in it. Could anyone share any light on this?

Thanks in advance,
Broomie

DemonicInfluence

Okay. i can help with the flag but not the other part with country next to the flag..

Also, this is using the Location Mod stuff so if they lie there it might mess the thing up.. Anyway:

In profile.template.php

find:
<tr>
<td width="40%"><b>', $txt[231], ': </b></td>
<td>
<select name="gender" size="1">
<option value="0"></option>
<option value="1"', ($context['member']['gender']['name'] == 'm' ? ' selected="selected"' : ''), '>', $txt[238], '</option>
<option value="2"', ($context['member']['gender']['name'] == 'f' ? ' selected="selected"' : ''), '>', $txt[239], '</option>
</select>
</td>
</tr>


Add after:
<tr>
<td width="40%"><b>Flag: </b></td>
<td>
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />
</td>
</tr>


I have not tested this. But I think it should work.

Gambi

Well I added it but wouldn't that display the flag once it's selected? Since there is no flag to select I'm guessing nothing will come up, is there a way for the drop down menu which is on the member map to be displayed on the profile and saved?

Thanks anyway, much appreciated.

DemonicInfluence

LOl. That is beyond me :(

Gobo

the drop down list ur looking to add can be done using [unknowns] tutorial

check it out and lemme know if it makes any sense?

I made something similar but with "religion icons" 

But for country icons the drop down option list will be pretty huge with over 140 entries (140 countries) additionally ull have to rename 140 flag files exactly the same as in the drop down list options so it will be a head ache to make

But still have a loot at the tutorial

Gambi

I did it! I'll post it as a package later on.

Thank you everyone, especially akulion (or is that [unknown]  :P) since that tutorial really helped.

fortify

Does anyone know how to manual install the whoflags mod. Thanks  :P :P :P

Gobo

Quote from: Broomie on May 01, 2006, 04:55:30 PM
I did it! I'll post it as a package later on.

Thank you everyone, especially akulion (or is that [unknown]  :P) since that tutorial really helped.

great job!
really looking forward to ur mod post! i also need it :D lol

DHC

Users of the forum are consistently getting an error message - as follows:

An Error Has Occurred!
You cannot view the member map.

Members have reported the problem occurs no matter which browser they are using.

Fix??

- Dan

DHC

Quote from: DHC on May 02, 2006, 09:07:59 PM
Users of the forum are consistently getting an error message - as follows:

An Error Has Occurred!
You cannot view the member map.

Members have reported the problem occurs no matter which browser they are using.

Fix??

- Dan

Nevermind - I found the answer (simple).

- Dan

SergeantAsh

#934
Guys, as with another guy that posted here, I'm getting this error message...

Not unique table/alias: 'pin'
File: /home/forum/Sources/Load.php
Line: 788

How can I correct this? Also I have uploaded all three packages and yet only have to install one for them all to state that they're installed?? whats going on there?

Finally, I have three instance of 'Member Map' across the top navigation bar, what file do I have to edit to change that? I'm using the Default Theme.

Appreciate your help with this great mod!

Cheers, Ash
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Gambi

With the flag code, I'm having trouble making it into a package. If I give someone the code and the flags would they be able to make it into a package?

Thanks,
Broomie

DemonicInfluence

Quote from: ashleyhall on May 04, 2006, 04:35:52 PM
Guys, as with another guy that posted here, I'm getting this error message...

Not unique table/alias: 'pin'
File: /home/forum/Sources/Load.php
Line: 788

How can I correct this? Also I have uploaded all three packages and yet only have to install one for them all to state that they're installed?? whats going on there?

Finally, I have three instance of 'Member Map' across the top navigation bar, what file do I have to edit to change that? I'm using the Default Theme.

Appreciate your help with this great mod!

Cheers, Ash

3 instances remove the 2 extra member map things in your index.template.php lol.

SergeantAsh

Spotted that one last night, but thanks anyway, all sorted now, just a shame the install routine doesn't work properly.
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Vinspire^

What does this mod actually do ? Show the members location ?

Bigguy

It shows the members location on a world map or several others you can choose from.

Advertisement: