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

Miraenda

#320
After installing this mod and the additional maps, setting it up to where it would display as a link on my non-default theme, editing permissions in the admin area to where the various groups could see it, I now have 1 issue left that I have not been able to resolve.  The pins are shifting on the view of the map when the browser window is resized.  Is this supposed to happen?  Few people are going to have their browsers maximized or the same resolution I'm using when I set a pin, and so they will see my pin in a completely different location...

My site is http://anythingeverything.org and you would click the Map link on the right under UserTools section.  If you need to try to set up a pin, a guest login for testing is the following:

User: TestUser
Password: fortesting

Thanks for any assistance you might be able to provide. :)

Oh, also, I wondered why Alaska and Hawaii are not part of the U.S. area? One of my members is from Hawaii and was questioning why the map didn't have 2 of the 50 states on it :)  Hawaii isn't on anything other than the world map itself in the maps I have anyway...

redone

Just wanted to say thanks for an excellent mod. Used it several times and my members really love using it! Great work and thank you.

:D

Gobalopper

Well I was thinking of making it somewhat similar to how Google maps works. But that will take a bit of work and it won't ever zoom in as far as that does.

If you resize your window reload the page and the pins should be correct.

Percherie

#323
Hello, I finish my translation in FRENCH with the button... where upload or transmit the package? (gobalopper.locationmod.fr)
Visitez :
Le site site des chépers du web et ToutenKamion, le blog de voyage autour du monde en camion

LostProphecy

Quote from: LostProphecy on March 08, 2005, 04:37:29 AM
Quote from: Gobalopper on January 14, 2005, 12:08:24 PM
Just a note to those of you who had the old version the only database change can be upgraded by running this query:
ALTER TABLE smf_mm_maps ADD COLUMN visible TINYINT(1) NOT NULL default '1'

If you are going to install this mod and not the upgrade be sure to have the original source files.


I'm not quite sure how to do this... i assume you go into myphpadmin and into the query section, but i'm just starting to learn about databases so i'm not really sure how to submit this query... help please :)

my site is under yabbse_ and i've submitted this query *see attachment*

but i'm still getting these errors

Database Error
Column count doesn't match value count at row 1
File: /home/kodee/public_html/forums/Packages/temp/install.php
Line: 60


and

eeep... i've caused all the threads to not work with this error *stares*

Database Error
Not unique table/alias: 'pin'
File: /home/kodee/public_html/forums/Sources/Load.php
Line: 519



Angelus Ex Quo Nox

ipggi

#325
There is a problem with Xloc displacement after installing.

I am running SMF 1.0.2 with Mambo Bridge.  Browser is IE6 and Firefox.  Screen resolution is 1280x1024 and 1024x768.

I installed the Member Map package without error.  I also installed additionalmaps and whoflags.  All maps show up nicely, the flags work great, the pins can be placed and change color according to gender no problem.  The only problem, however, is that the pin placement is several pixels to the right of where the cursor is located.  This occurs on every map I have tested, on two different browsers at two different screen resolutions.  The offset is smaller when viewed at 1024x768 though.

I have attached a screencap to illustrate this.  Is there a fix for this glitch?

Thank you.



Gobalopper

Percherie you can just email me the language changes. The email address is in the mod install.txt file.

Lost_Prophecy if you are using yabbse_ then just change the smf_ part of the query to be yabbse_. As for the error message I believe the package manager doesn't revert the changes if there was an error with the sql. So you can either go back and remove the changes in those files, a lot of work, or just re-upload fresh versions of the files that this mod edits.

ipggi, I'm pretty sure that problem is caused by using custom templates. There is no easy fix as the offset differences are likely going to be different for each template out there and that is way to much work for me to customize for. If you know by how much the pin placement is off you can adjust the javascript code accordingly and it should work.

Percherie

Ok i send the translate

I have one idée for evolution : sort the liste of map

In my forum, the principal map is "France" and not "World"


Sorry for my english, maybe you understand me :P
Visitez :
Le site site des chépers du web et ToutenKamion, le blog de voyage autour du monde en camion

A.M.A

I member on the support board have asked me how to add a new map to work with your Mod. I've seen Webby's reply on how he did it, but I still haven't a clue :)

Could you please explain how to add a new map so I can walk him through it.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

^Raven^

This may have been answered already but I installed the mod and don't know where to go to activate it so that I and see the map and place a pin.  I want to test this out so I can guide my members in using this mod.
Jon Reinhart

Owner, CWF GameCast

Public Relations Coordinator, Battlestar Galactica Wiki

Webby

Quote from: A.M.A on March 14, 2005, 06:25:27 PM
I member on the support board have asked me how to add a new map to work with your Mod. I've seen Webby's reply on how he did it, but I still haven't a clue :)

Could you please explain how to add a new map so I can walk him through it.

What I did was using x an y coordinates that were a bit higher than the other map and that worked for me.

Quote
INSERT INTO `rc_mm_maps` VALUES (1, '1-Nederland.gif', 'Nederland', 0, 700, 0, 800, '1.00', 1);
INSERT INTO `rc_mm_maps` VALUES (2, '2-Belgie.gif', 'Belgie', 1628, 2442, 1360, 2040, '0.96', 1);

oschikhof

I have installed a new test forum because I am building a new site...
but now i get an error with the member map...

Unknown column 'visible' in 'where clause'

What can I do about this?

Owen

Webby

Read this topic from the start, this has been answered already.

oschikhof

Sorry, sometimes it's hard to read..
my apologies

oschikhof

Now I have another problem...
When I use my forum, the map works correctly.
When I call the map when the forum is integrated with mambo, it just loads the index..and not the map..
Also when I click on map in the menu, nothing happens...   :'(

What to do?

Kindred

Are you using the mambo-bridge from Orstio?

Update to v3.02 if you are not already...

make certain you haveinstalled the mambo.tar.gz package in the smf package manager
then go into mambo admin, components, smf - forums, edit config

click the update link (the one with all the warnings)
Сл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."

LostProphecy

i have a question...

i had that error in the database about the visible table which i used the database query that was supplied to fix it... only it ended up stuffing everything and i had to reinstall the whole forum again...

apparently this error was caused due to an old version of the mod still being there...

so i was wondering if it would work better if i were to go into the database and delete the tables that have to do with the membermap mod and then try and install it fresh again and see what happens... would that work??

i really love this map and i want to try practically everything before i give up on it
Angelus Ex Quo Nox

oschikhof

I have tried to reinstall the mambo bridge but now all is ******ed up..
So it's not the solution that I hoped it would be..

Can anybody also give me solution for the "safe mode" problem..
I am getting sick 'n tired that I never can install a package normally..

I know that with mambo there's small solution and now I have no problem installing components and modules..

flapper

When i click on Users Online get this error message


Database Error
Not unique table/alias: 'ip2c'
File: /home/fhlinux198/a/africansouth.co.uk/user/htdocs/forum/Sources/Who.php
Line: 147 


I opened who.phpusing editor and get this on line 147



        // Get the total amount of members online.
        $request = db_query("
                SELECT COUNT(lo.ID_MEMBER)
                FROM {$db_prefix}log_online AS lo
                        LEFT JOIN {$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.ID_MEMBER)
                        LEFT JOIN {$db_prefix}location_ip2country AS ip2c ON (ip2c.ip_from <= lo.ip AND ip2c.ip_to >= lo.ip)
                        LEFT JOIN {$db_prefix}location_country AS lc ON (lc.c2code = ip2c.c2code)
                        LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = lo.ID_MEMBER)
                        LEFT JOIN {$db_prefix}location_ip2country AS ip2c ON (ip2c.ip_from <= lo.ip AND ip2c.ip_to >= lo.ip)
                        LEFT JOIN {$db_prefix}location_country AS lc ON (lc.c2code = ip2c.c2code)
                        LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = lo.ID_MEMBER)" . (!allowedTo('moderate_forum') ? "
                        WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
        list ($totalMembers) = mysql_fetch_row($request);
        mysql_free_result($request);

flapper

Tried to download    gobalopper.locationmod.additionalmaps.zip (1862KB)
but seems file is corrupt on mod server, can download other two file with no problems, can someone please email it to me at [email protected]


Thank you in advance

Advertisement: