News:

Wondering if this will always be free?  See why free is better.

Main Menu

Location Mod

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

Previous topic - Next topic

Aravot

SMF 1.1 beta 3 public
When trying to access MembersMap I get this error

QuoteTable 'name_smf11b3.smf_mm_maps' doesn't exist
File: /home/mysite.com/public_html/smf11b3/Sources/MemberMap.php
Line: 281

line 281
ORDER BY mapName", __FILE__, __LINE__);

Aravot

#461
Location mod (member map) update for SMF 1.1 Beta 3 public

Notice: My updated version ONLY works with SMF 1.1 beta 3 public DO NOT install it on SMF 1.0.x it will not work.

I updated the Location mod (thanks to Unknown) for my personal website and thought to share it with the community, I give No Support, use it at your own risk, Backup, Backup, Backup.

Link to SMF 1.1 Beta 3 with Location Map test before install
test/test

atambo

works perfectly on my forums and since I still had the old tables still in the database all the pins were right where we left em  ;D thanx alot Aravot!!

ivo2296

#463
Quote from: Aravot on July 06, 2005, 05:23:42 PM
Location mod (member map) update for SMF 1.1 Beta 3 public

Notice: My updated version ONLY works with SMF 1.1 beta 3 public DO NOT install it on SMF 1.0.x it will not work.

I updated the Location mod (thanks to Unknown) for my personal website and thought to share it with the community, I give No Support, use it at your own risk, Backup, Backup, Backup.

Link to SMF 1.1 Beta 3 with Location Map test before install
test/test



Could you tell me how to install it on classic theme of 1.1 beta pls?

LostProphecy

*squels and runs around in excitement...*

you mean i can actually upgrade to beta 3 now :D

yay :D :D :D

*can't wait to have the merge double post working*
Angelus Ex Quo Nox

atambo

#465
for some reason when you view the member map on my forums with firebox all the pins are below the map and when you click the name then the pin jumps back to where it should be...it looks like the map is being generated far below on the page then the map moves up but the pins stay where they are...am I the only person with this problem?

EDITED: nevermind it was because of my shoutbox  :P

LostProphecy

the additional maps link isnt working :(

it downloads with nothing in it :S
Angelus Ex Quo Nox

Aravot

Quote from: LostProphecy on July 07, 2005, 04:31:59 AM
the additional maps link isnt working :(

it downloads with nothing in it :S

It works for me maybe it gets corrupt during download, do you have firewall installed.

LostProphecy

must've been... it's working now thanks :)
Angelus Ex Quo Nox

Miraenda

Quote from: cubby61 on July 05, 2005, 02:33:13 PM
I just installed this on my forum and the install went perfect.  I gave users the rights to see it but when anyone, incluing myself (Admin) tries to click on the map to place a pin it fails.  The error is:

Line:  451
Char:  1
Error: Object expected
Code: 0
URL: http://everythingsg.com/forum/index.php?action=mm;sa=edit


Any idea what is happening?

I have the same occurring for me.  I cannot add a map nor can anyone.  I'm running 1.0.5 and edited each of the 3 zips to have , 1.0.4, 1.0.5 for the package-info.xml file so it would install.

stargazer_1017

I know that we only have to update the .xml file, but I don't have any programs to update the file :( What do I use to modify it?

-Shayna

rotor

You can use any HTML editor to edit it ... you can even use notepad!

stargazer_1017

I'm just afraid it might hurt it or something, like accidentally changing the syntax. I'll give notepad a try. Thanks for the input, rotor! :)

-Shayna

Miraenda

#473
Quote from: Miraenda on July 08, 2005, 07:44:53 AM
Quote from: cubby61 on July 05, 2005, 02:33:13 PM
I just installed this on my forum and the install went perfect.  I gave users the rights to see it but when anyone, incluing myself (Admin) tries to click on the map to place a pin it fails.  The error is:

Line:  451
Char:  1
Error: Object expected
Code: 0
URL: http://everythingsg.com/forum/index.php?action=mm;sa=edit


Any idea what is happening?

I have the same occurring for me.  I cannot add a map nor can anyone.  I'm running 1.0.5 and edited each of the 3 zips to have , 1.0.4, 1.0.5 for the package-info.xml file so it would install.

I figured it out how to get this fixed and it was due, of course, to using a different theme than the default one. In the default theme, it was working but not on the theme I'm using (MidBlue).  In order to get it working, I had to copy the information at the end of the script.js file in the /pathtosmf/Themes/default folder and put it into the script.js file in the /pathtosmf/Themes/MidBlue folder:

// Controls the placement of pins on the map.
function placePin (event)
{
// IE
if (document.all)
{
// IE in standards mode
if (document.documentElement.scrollLeft || document.documentElement.scrollTop)
{
// get the coordinates
var xPin = event.clientX + document.documentElement.scrollLeft;
var yPin = event.clientY + document.documentElement.scrollTop;
}
// regular IE
else
{
// get the coordinates
var xPin = event.clientX + document.body.scrollLeft;
var yPin = event.clientY + document.body.scrollTop;
}

// database coordinates
document.mm.xPin.value = xPin - document.images.map.offsetLeft - 2;
document.mm.yPin.value = yPin - document.images.map.offsetTop - 2;

// pin coordinates
document.images.pin.style.visibility = 'visible';
document.images.pin.style.left = xPin - 6;
document.images.pin.style.top = yPin - 6;
}
// Netscape, Mozilla, etc
else
{
// get the coordinates
var xPin = event.clientX + window.pageXOffset;
var yPin = event.clientY + window.pageYOffset;
// database coordinates
document.mm.xPin.value = xPin - document.images.map.offsetLeft;
document.mm.yPin.value = yPin - document.images.map.offsetTop;
// pin coordinates
document.images.pin.style.visibility = 'visible';
document.images.pin.style.left = xPin - 4 + 'px';
document.images.pin.style.top = yPin - 4 + 'px';
}
}

// Fixes position and visibility of pins.
function fixPin (id, x, y)
{
if (x)
{
id.style.visibility = 'visible';
id.style.left = (x + document.images.map.offsetLeft) + 'px';
id.style.top = (y + document.images.map.offsetTop) + 'px';
}
}


Then I added this to the /pathtosmf/Themes/MidBlue/index.template.php file to put a button:

// The [member map]
echo '
<a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="' . $txt['mm_mm'] . '" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];


I put this after the following piece of code:

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


After this, I uploaded a button gif called mm.gif someone kindly created for the MidBlue theme map button into /pathtosmf/Themes/MidBlue/images/english folder so the button would show up.

cubby61

Quote from: 1948Pal on June 18, 2005, 09:10:21 PM
Quote from: jmphillippi on June 18, 2005, 01:47:29 AM
ok I wont uninstall.  There isnt an option to.  Only list files and delete.
This happens to some packages when you upgrade SMF. Try uninstalling by typing this in your browser's address bar http://www.yourforum/index.php?action=packages;sa=uninstall;package=gobalopper.locationmod.zip It should still uninstall this way.

I tried this on my Forum and I get this message:

This package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.


I am pointing to the gobalopper1.locationmod.zip file.

guider

So tell me, will this thing work on any theme using 1.0.5? If not, what are approved for it?

mediman

@gobal ip2country works not with AOL EU ...

AOL Europe has its own IP-Range, but ip2country says US ...

My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

guider

Quote from: Gobalopper on April 08, 2005, 12:06:22 AM
You can't change other members pin placement in the current version. Maybe in a future one but my time is limited.

For those of you who are wanting to resize maps or crop current ones here is a short tutorial on how it works.

-Everything is based off of a world map and whenever you place a pin, no matter what map you place it on, the co-ordinates are stored based on that original map.

-Each map has a start x and start y co-ordinate. This corresponds to where on the original global map this map starts.

-If you want to have a map that is more zoomed in from the original base world map you would increase the scale variable. Hence some of the maps have a scale level of 4.

-The opposite is true for maps that are zoomed out like the "world" map the mod comes with as default.

-If you are resizing an image you will need to figure out the new co-ordinates. If you are just making it smaller or larger you will only need to change the scale field.

-If you are cropping the image then you will need to change the x and y co-ordinates.


Um, I don't get it. All I'm using is the "Belgium, Netherlands & Luxembourg" map. I want it to be bigger. How do I achieve that?

PopLife

This mod is not compatible with 1.1 beta 3 public. I changed the package-info.xml file, but unfortunately, there must be some other incompatibilities :(

Kindred

well, yeah....   there were some significant code changes between 1.0.x and 1.1

you'll have to modify the install.xml as well to matche the new code configurations (and, to do this, you will have to have a pretty good idea what thje code you're looking for is....

It's not really difficult so much as bothersome to find all the code shifts....  (BTW: the additional maps extra has to be editted as well...  and I believe the who's online flags may need to as well...  although since I have the spiders and guests mod installed, that mya be part of that one)
Слaва
Украинi

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."

Advertisement: