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

Kindred

I actually get this error when I go to the ADMIN section to set up the member map defaults:

8: Undefined index: mm_default
File: /SITE.../Themes/default/MemberMap.template.php
Line: 212
Сл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."

Drunken Clam

Hi All,

Since uploading the latest script.js file, (due to the Firefox problem), my members pins have all gone off the map?

Is it the script.js file that is the problem or is this just a coincidence??

I get the following error in my logs:-

8: Undefined index: mm_default
File: /home/lostopp/public_html/forum/Themes/default/Admin.template.php (mm_admin sub template - eval?)
Line: 212


Any ideas??

Running 1.1RC2

oscar2001

Did you re-edit the script.js file with this at the end of it

// 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';
}
}

Drunken Clam

Quote from: oscar2001 on January 23, 2006, 04:01:46 PM
Did you re-edit the script.js file with this at the end of it

// 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';
}
}



Errrm Nope! ::)

I'll try that, thanks

Drunken Clam

Thanks Oscar....all sorted now!

oscar2001

np glad thats it all it was lol  :)

beemer

Quote from: Kindred on January 22, 2006, 06:52:44 AM
I actually get this error when I go to the ADMIN section to set up the member map defaults:

8: Undefined index: mm_default
File: /SITE.../Themes/default/MemberMap.template.php
Line: 212

RC1?

MemberMap.template.php   has uploaded with a 0k file size & another file is probably 0k

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

Kindred

nope... RC2... and all my membermap files are correct and everything works fine... except in the admin section!

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

Gobalopper

I think that error comes from not having a default map set. Try going to the Member Map admin section and selecting one of the maps there as your defualt.

Kindred

interesting... when I went to the admin, it said default  "world"  I assumed that was the setting, not that it needed me to save it...  however, you appear to be correct.  After clicking save (without actually changing anything) the errors stopped...
Сл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."

Furvert

Not sure if this has been reported before....
The flag added to posts and the who flags should be the same?
I have at least one case where the post flag is empty but who flag shows Italy.
Are they both operative by IP or does post flag depend on user settings?

Gobalopper

The Who's Online flags are based on the values in the IP to country database. Everything else uses the flag set when placing your pin.

Furvert

I wondered if that was the problem, thanks
So I dont have some odd glitch to fix :D
I think the flags are the best feature, especially the Who ones.
I love seeing just how wide spread my visitors and users are.
I setup this Cluster map for that as a check, not a bad system
http://clustrmaps.com/counter/maps.php?url=http://www.furvert.net/MinervaMink/
I think it is odd that Africa and most of Asia are devoid of visitors!
Maybe it is a glitch in the IP to country mapping they use :D

beemer

Anyone had problems with RC2

Upgraded my test site from RC1 reinstalled mods and clicking on member map gives me the following

"Unknown column 'p.country' in 'on clause'
File: C:\Program Files\xampp\htdocs\xampp\bmw7resource.co.uk\forum\Sources\MemberMap.php
Line: 101"

Line 101

ORDER BY c.name, mem.realName", __FILE__, __LINE__);
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

haktanir2

My server always times out when I try to install the extra flags package
What can I do about this? I tried 4-5 times already.

DemonicInfluence

just unzip and then copy the flags into your flags folder?

Gobalopper

That takes a long time because it is putting a lot of data in your database. You could try increasing the execution time scripts on your server are allowed to take.

haktanir2

so I can just do it manually you think? does anyone know what goes where and what I'd have to edit?

haktanir2

Quote from: DemonicInfluence on January 31, 2006, 11:54:47 AM
just unzip and then copy the flags into your flags folder?
No it doesn't have the flags, the flags come with the main install. This one just adds a lot of info to the tables I think.

DemonicInfluence

No, i has new flags..

Or else why is it called extra flags?

Unzip and just follow the package_info.xml instructions..

Advertisement: