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

beemer

Wll I just installed coolmetal theme in my 1.1 RC1 test site it would not show the image unless i put in a full path


// The [member map]
echo '
<a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="http://www.mywworld.com/smf/Themes/cold/images/english//mm.gif" alt="' . $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];


Are sure you are uploading your edited index.template.phpfile back to your cold folder.

There is NO INSTANCE OF MM.GIF  when i view source but all your other button images are there?????
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

Bigguy

Ok, putting that in inplace of what I had worked. Thanks alot. I could of sworn I tried that already, but at least now it shows up. Thanks again.

Senkusha

I think this has been asked before, but I can't find an answer:  Does this mod work with SMF 1.1 RC1?
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

Bigguy

I think there is an update for it for that version, check the mods page.

Senkusha

Cool, after looking there, it claims that it's compatable with 1.1 Beta 3 (which I would hope means RC1 as well), however, when I run it in Package Manager, I get a corrupted or not compatible message.
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

DemonicInfluence

just unzip and open package-info.xml .. Edit it so that it says 1.1 rc1 along with 1.1 beta 3 public ..

Senkusha

It looks like this mod is not compatiable with 1.1 RC 1.  I get an error when trying to access the member map:  Unable to load template main.
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

beemer

Quote from: Senkusha on December 08, 2005, 11:41:48 AM
It looks like this mod is not compatiable with 1.1 RC 1.  I get an error when trying to access the member map:  Unable to load template main.

This has been covered many times in this post - there is an error in package man that uploads files as 0kb

You just need to overwrite the (2) files that are 0k with the ones from the mod file.

If you search back thro this post you will find waht files they are?
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

ToyDozer

Quote from: Gobalopper on November 20, 2004, 01:35:23 AM
Hey Jerry,
Because of the way the database stores the pins I couldn't include Alaska and Hawaii without also including Canada and most of the North Pacific Ocean. :)

Basically how I did it this time is that there is one big "global" map that is really big. All of these other maps are just crops of that original big map. I store the upper left x/y co-ordinates for each of these crops and then do the pin placement based on that. Its sorta complicated but allows for zoomed in maps that still show the pins regardless of what map you used when placing it.

As for the pin placement not working in Firefox that is because the javascript file is cached. Once you refresh it it will work again.

First off, EXCELLENT mod, my thanks go out to you!

With that being said, myself and most members are from Alaska and an alaska map would do wonders for our pin placement accuracy. Any chance you could add one more map to the additional maps add on?

Thanks again!
Jon Stensaa
www.wheelingadventures.com [nofollow]
[email protected]
Accelerator : The stomped out hole in the floarboard!!!!

Senkusha

Question:  I've got a member from the UK whose flag is showing up as USA.  I know the format is in an integer format, so, my question is:

1.  How do I find a listing of the IP ranges to double check my database, and
2.  How do I convert the IP range into this integer format?

Thanks!
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

Gobalopper

Ok I've uploaded a new version of the mod that will work for 1.0.x, and all the current 1.1 releases. I've been able to test it on 1.0.5 and 1.1 and install and uninstall went fine.

If you do find any bugs with this new release please let me know. Thanks.

Oh and if anyone wants to compile a list of the new map images that have been requested that would be helpful. :)

d3v

The base mod installed succesfully.

Now for the Who Flags add-on:

Quote
Installations actions for "Location Mod - Who Flags":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Who.php    Test successful
2.    Execute Modification    ./Themes/default/Who.template.php    Test failed
3.    Execute Code    install.php

I did the CHMOD thing according to the instructions. Tried both 755 and 777. Still same result. Just throw me a bone, I'll figure out how to chew it. Thanks.


Gobalopper

What version of SMF are you using d3v? That failed because either you edited your Who.template.php file or I have a problem in my search/replace. :)

beemer

Quote from: Gobalopper on December 29, 2005, 12:10:48 AM
Ok I've uploaded a new version of the mod that will work for 1.0.x, and all the current 1.1 releases. I've been able to test it on 1.0.5 and 1.1 and install and uninstall went fine.

If you do find any bugs with this new release please let me know. Thanks.

Oh and if anyone wants to compile a list of the new map images that have been requested that would be helpful. :)

Hi Globalopper

Are there any changes to this new version or is it just to cover installs on all versions?

I am allready running 1.1.2

Thx
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

rotor

Hi,

Gobalopper, just wanted to thank you for this mod ... have been using it for a while now and just reinstalled into a new setup of 1.1 RC2. It went straight in without a problem!

Great stuff!!

Thankyou

Gobalopper

Ya I don't think I changed anything in this release. It was more making it so that it would install on more versions with just one download and getting it prepped for 1.1. It does have an updated IP-to-country database though. So if you want to update that you can uninstall the who flags part and reinstall with this version... that is assuming you have it installed in the first place.

Thanks rotor, glad to see people are enjoying it.

d3v

Quote from: Gobalopper on December 29, 2005, 06:18:47 PM
What version of SMF are you using d3v? That failed because either you edited your Who.template.php file or I have a problem in my search/replace. :)

Using SMF 1.1RC1
Replaced the Who.template.php with a blank one.
Now the problem is that when I click the Install button it gives me an option to save index.php as file or open file. Basically the download file dialog. In my logic that would be something with CHMOD permissions, but doesn't seem like it since I chmoded my whole server to 755/777 +r.

Any ideas? Btw thanks on quick response on the last post.

Gobalopper

Well you definitely don't want a blank Who.template.php. It should just be the default template that came with the RC1 download.

I'm not sure why you would get that save as file dialog popup... that sounds like something misconfigured on your server.

Maybe try putting the original Who.template.php file, not a blank one, back in the Themes/default directory and see if that helps.

An_Old_Girl

I posted a problem elsewhere I am having since updating to RC2 and installing the location mod:
http://www.simplemachines.org/community/index.php?topic=63759.0
It was suggested that I bring the problem here:

Yesterday was the first time I have been able to get the mod to work. Unfortunately, things have gone from bad to worse since then. I have now uninstalled the mod hoping that it would correct the errors, but it did not. Changed from the *new* default theme to Babylon and back - no difference. Can still see Member Map button on the toolbar and still see Member Map listed in the admin area after uninstalling and deleting. Now I cannot read my PMs, read posts, etc.

Here are some of the error messages.
From the forum log:
QuoteApply Filter: Only show the error messages of this URL  http://mywebsite.com/forumdirectory/index.php?topic=471.0
Apply Filter: Only show the errors with the same message
Database Error: Not unique table/alias: 'pin'
File: /home/myusername/public_html/forum directory/Sources/Load.php
Line: 783

From MySQL:
QuoteProblems with indexes of table `backup_smf_messages`
Warning UNIQUE and INDEX keys should not both be set for column `ID_TOPIC`
Problems with indexes of table `smf_messages`
Warning UNIQUE and INDEX keys should not both be set for column `ID_TOPIC`

When I try to check my PMs:
QuoteDatabase Error
Not unique table/alias: 'pin'
File: /home/myusername/public_html/forum directory/Sources/Load.php
Line: 783

Can you please help me? At least yesterday, the forum worked despite the errors in the log. Today, I cannot read any messages, etc. Everything was going so swimmingly until it all went to ..... Sigh.

Gobalopper

Well if you don't have other mods installed I would recommend replacing your Load.php with the original version. Some of those errors you are getting won't be from this mod though as it doesn't touch the messages table. Are you sure your upgrade finished correctly?

Advertisement: