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

Saku

How can i add a new map's country ?

glypo

Hi there,

Sorry for being an idiot, but php etc is all beyond me (html, css, ssi is as far as I have gone).

I've edited the package-info.xml to 1.0.2 as said above, however I'm still having trouble installing.

Files are extracted fine, then it gets to execution:

6.     Execute Modification     -     Modification parse error

To later tell me:

2: opendir(/var/www/html/sm/Packages/temp/flags): failed to open dir: No such file or directory
File: /var/www/html/sm/Sources/Subs-Package.php
Line: 949

Not sure what I'm doing here and any help would be appreciated, thanks.
Jason Moller

otario

I am having this problem in my forum error log:

8: Undefined index: country
File: /Sources/Load.php
Line: 616

Can someone help? There's no error shown any where in the forum, only the logs.

[Unknown]

Otario, please look earlier on in this topic.

Glypo, sounds like the archive isn't being extracted properly; can you post a phpinfo?  What is phpinfo.php?

-[Unknown]

glypo

As requested:

http://www.glypo.co.uk/phpinfo.php [nofollow]

My forum hasn't been to happy since the update to 1.0.2, such as when I back up I can't compress anymore  ???
Jason Moller

Webby

I added 2 country maps : Netherlands and Belgium, resp. ID 2 and ID 3, but when I place a pin in the Netherlands, it shows the same pin on the Belgium map. That doesn't seem right to me, and when I delete the pin from the Belgium map, it also deletes the pin from the Netherlands map.

What could be wrong ?

Webby

#286
Nobody an idea ??

I uploaded a map with the size of 814 x 680 and added these 2 lines to the Db with phpMyAdmin:

INSERT INTO rc_mm_maps VALUES (2, 'Belgie.gif', 'Belgie', 0, 814, 0, 680, 0.96, 1);

INSERT INTO `rc_location_country` VALUES ('be', 'Belgie', 2);

But when I switch from the map Netherlands to the map Belgium, it shows all the pins from the Netherlands map on the Belgium map. Als it shows the total of pins between (), so there must be something wrong.

Anyone succeeded in adding a map, or know what I'm doing wrong ?

lupus

Okay i get the idea of doing Mods in phpbb because practice makes perfect as they say...

I have the latest version of the forum and as mentioned by an earlier person you get an error with the package manager.

Sorry if i'm having a think moment spent all day getting a forum to look good wears the brain out...

So if i unzip the files then change the package-info.xml to 1.0.2 re-zip it and then use the package manager i should be okay??


Gobalopper

#288
Webby this mod acts differently then the one for YaBBSE. When you place a pin it is placed based on global co-ordinates so it can show up on multiple maps.

A new version has been posted. It will install under the latest release of SMF. The only code changes are made to the MemberMap.php and MemberMap.template.php files as well as the Load.php bug fix. There is also an updated ip-to-country.csv file included in the gobalopper.locationmod.whoflags.zip package.

Also forgot to add a new Scandinavia map so I've re-uploaded the packages.

zillion

Great stuff!!!  Your efforts are much appreciated!

lupus

I've tried to install this using the package mannager and most of it seems fine, except it ask for permission to the FTP elements to do some chmod...When i put the details in and hit continue or whatever the button is it just comes back to the same page...

I may have to look at adding it in by hand, where will i find details for this and am i a fool for having a go at this by hand....


LostProphecy

i'm getting this error on 1.0.2 :(

Database Error
Column count doesn't match value count at row 1File: /home/kodee/public_html/forums/Packages/temp/install.phpLine: 45
Angelus Ex Quo Nox

Webby

Quote from: Gobalopper on March 05, 2005, 05:51:56 PM
Webby this mod acts differently then the one for YaBBSE. When you place a pin it is placed based on global co-ordinates so it can show up on multiple maps.

A new version has been posted. It will install under the latest release of SMF. The only code changes are made to the MemberMap.php and MemberMap.template.php files as well as the Load.php bug fix. There is also an updated ip-to-country.csv file included in the gobalopper.locationmod.whoflags.zip package.

Also forgot to add a new Scandinavia map so I've re-uploaded the packages.

Well, I was talking about the SMF version ;)
And it works now, I just changed the xPos and the yPos values....now it works on two seperate maps. Thanx.

Webby

ehm, what exactly has changed in the Load.php, I want to change it manually......?

Gobalopper

Quote from: LostProphecy on March 07, 2005, 04:38:58 AMi'm getting this error on 1.0.2 :(

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

Please search this topic for the cause and fix for that problem. You had an older version installed so you should run the upgrade version but since not every does it that way you have to run a query to update the table manually.


Quote from: lupus on March 06, 2005, 05:39:44 PMI've tried to install this using the package mannager and most of it seems fine, except it ask for permission to the FTP elements to do some chmod...When i put the details in and hit continue or whatever the button is it just comes back to the same page...

I may have to look at adding it in by hand, where will i find details for this and am i a fool for having a go at this by hand....

The first post lists what files/directories need to be writable. It should still be up-to-date.


Quote from: Webby on March 07, 2005, 04:56:22 AMehm, what exactly has changed in the Load.php, I want to change it manually......?

http://www.simplemachines.org/community/index.php?topic=20168.msg207200#msg207200

Webby

Thanx ;)  I had changed that already :)

Aravot

Tried to install Location Mod got the following error message, running SMF 1.0.1


Gobalopper

Don't download it from the package servers. Save it to your hard drive first and then upload it.

If you go through the package server it doesn't download the right file for some reason.

Aravot

I didn't download from package servers, got it from http://mods.simplemachines.org/index.php?mod=56 downloaded to my hard drive and uploaded through package manager.

Aravot

Same downloaded file, installs on SMF 1.0 but not on SMF 1.0.1

Advertisement: