News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Location Mod

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

Previous topic - Next topic

anunlike

Hi.

I get a problem with this as well. I'm using 1.1 RC1.

I've installed and uploaded everything and everything is schmoded correctly. But, when I (admin) click on "Place Your Pin", I don't get a map, at all. I get it in the previous screen, when I click on the button to get to '?action=mm', but not on this page.

I went a head and put in a name for the city and after I submit it, I get "You have to click somewhere on the map to place your pin."

In my forum error log, I get 10 errors just by clicking on "Place Your Pin":
Quotehttp://forum.anunlikeworld.info/index.php?action=mm;sa=edit 
8: Undefined index: map
File: /home/xxxx/public_html/forum/Themes/mydefault/MemberMap.template.php (eval?)
Line: 183, 182, 181, 180, 179, 178, 169 (3 instances), 115

I can't figure this out (still relatively new to all this).


Any help would be great. Thanks much.

oscar2001

Check that membermap.php in your themes directory isnt showing 0kb and that all your maps,flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned)  I also had to  populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
Bit of a pain but it does work in rc1
Quote from: Brasileira on October 15, 2005, 04:51:52 AM
Quote
So after clicking ''Place Your Pin' you dont get the cross hair "+" when you run the cursor over a chosen map?

But thats what I am trying to say. I don´t get a "Place your pin" button, just
"Save my pin" and "remove my pin"
Its actually a text link and not a button as such,, maybe if you recheck all your files are there etc to,,

digit

#622
Hi,

I am TRYING to install the location mod...

http://www.treasurenet.com/f/index.php?action=mm

I too am unable to place pins - I have it set to guests can place pins...  can someone please test it for me?

I also had the following problem...

Not unique table/alias: 'pin'
File: /users/treasure/pages/f/Sources/Load.php
Line: 716

so I reloaded my old Load.php :(

I also only have the world map - even though I've installed the additional maps and they ARE in the maps directory.???  Any idea why?  What does oscar2001 mean by "had to  populate the table location_ip2country"?  I don't see that field in phpmyadmin. :(

In the admin panel, I only see the world map.


Thx.
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

digit

I have fixed the problem with Load.php...

this is what I found... 



LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";



I removed those duplicate lines, now I have.... 



$select_tables = "
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";




but I still can't place pins. :-(

http://www.treasurenet.com/f/index.php?action=mm

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

AtariKid

Does any know if this Mod has been modified to fit SMF 1.1 RC1?
I upgraded and it doesn't work.
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1

digit

#625
OK, I'm making progress...

for some reason, when I installed the additional maps mod, the mm_maps field wasn't getting the data inserted. :( So, I did that manually - now I have the additional maps...

but I still can't place pins...  if someone could PLEASE take a look ....

http://www.treasurenet.com/f/index.php?action=mm

and tell me what's missing...  (do I have some messed up javascript or something?)

I SURE would appreciate it!

Thanks.
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

beemer

Did the installer update your themedir/script.js with some code at the end of the file?
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

digit

actually, that WAS the problem, my javascript file wasn't updated - so it's FIXED!  YEAH!

I have a member map!  Thanks Gobalopper!
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

beemer

Quote from: AtariKid on October 17, 2005, 02:40:07 PM
Does any know if this Mod has been modified to fit SMF 1.1 RC1?
I upgraded and it doesn't work.

What do you mean it doesnt work?
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

anunlike

QuoteCheck that membermap.php in your themes directory isnt showing 0kb and that all your maps, flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned)
Yeah, I did all that when I first installed it.

QuoteI also had to populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
I'm still way too new to this. How would I go about doing this?


Again, thanks!

digit

Quote from: anunlike on October 17, 2005, 10:02:40 PM
QuoteCheck that membermap.php in your themes directory isnt showing 0kb and that all your maps, flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned)
Yeah, I did all that when I first installed it.

QuoteI also had to populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
I'm still way too new to this. How would I go about doing this?


Again, thanks!

Have you ever used phpmyadmin?

If so, (and if you even need to do this) look at (browse) the location_ip2country field if it contains a bunch of countries, you don't need to do anything to it!

If it is an empty field, you will need to run SQL commands like this... (in phpmyadmin)

INSERT INTO YOUR-PREFIX-HERE_location_country VALUES ('bg', 'Bulgaria', 6)

an entire list of countries can be found in the install.php file located in the location mod package (use your Package tool inyour SMF to view the files (List Files))

Hope that helps.

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

AtariKid

Quote from: beemer on October 17, 2005, 05:27:48 PMWhat do you mean it doesnt work?

When I click on the 'member map' link, it takes me straight to the forum. 
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1

anunlike

Didn't need to do it, it wasn't empty at all, bunch of countries were listed.

Anyone have any other ideas?

digit

Quote from: anunlike on October 17, 2005, 11:17:56 PM
Didn't need to do it, it wasn't empty at all, bunch of countries were listed.

Anyone have any other ideas?

Make sure your Javascript file was updated - it's located here....

Themes/default/script.js

- you should see a bunch of membermap info near the bottom...   if not, that's your problem.

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

anunlike

Yeah, did that when I first installed it. Dang. Well, thanks so far.

PowerPyx


Sry folks,

but it looks like i'm to dumb to get it installed.

I'm running SMF 1.1RC1 - switchted my profile to default theme and english, then modified the .xml with that info 1.1RC1 - but after uploading the zip it says its a corrupt package or not compatible with that version of SMF.

The Forum CHMOD is on 777 for all necessary parts.

So maybe somebody can help me with that ? I really hope not to modify all .php files by hand.

Best regards
PowerPyx

beemer

Are you sure you modified the package-info.xml correctly?

What file editor did you use ?
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

PowerPyx


i just used notepad - as said here in the thread...


<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Location Mod</name>
<id>gobalopper:locationmod</id>
<type>modification</type>
<version>1.1.2</version>

<install for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public, 1.1RC1">
<readme type="file">install.txt</readme>
<require-dir name="flags" destination="$themedir/images" />
<require-dir name="maps" destination="$themedir/images" />
<require-file name="mm.gif" destination="$themedir/images/english" />
<require-file name="MemberMap.php" destination="$sourcedir" />
<require-file name="MemberMap.template.php" destination="$themedir" />
<modification format="xml" type="file">install.xml</modification>
<code>install.php</code>
</install>

<uninstall for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public, 1.1RC1">
<readme type="file">uninstall.txt</readme>
<remove-dir name="$themedir/images/flags" />
<remove-dir name="$themedir/images/maps" />
<remove-file name="$themedir/images/english/mm.gif" />
<remove-file name="$sourcedir/MemberMap.php" />
<remove-file name="$themedir/MemberMap.template.php" />
<modification format="xml" type="file">uninstall.xml</modification>
<code>uninstall.php</code>
</uninstall>

<upgrade from="1.0 RC2, 1.0 (preview)" for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public">
<require-file name="mm.gif" destination="$themedir/images/english" />
<require-file name="MemberMap.php" destination="$sourcedir" />
<require-file name="MemberMap.template.php" destination="$themedir" />
<modification type="file">upgrade_1.0to1.1.xml</modification>
<code>upgrade_1.0to1.1.php</code>
</upgrade>
</package-info>

1948Pal

What if you try changing the line that say <install for blah blah blah...> to just say <install>, and also the <uninstall...> to just <uninstall>.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

oscar2001

"Might" be your problem

in you xml file you got
1.1RC1

Should read
1.1 RC1

Advertisement: