I am no longer using the SMF software and as such this mod is no longer supported. If someone is interested feel free to take the code and port it to newer versions of SMF.
Link to Mod (http://mods.simplemachines.org/index.php?mod=56)
gobalopper.locationmod.zip => the *required* base install, this provides you the member map
gobalopper.locationmod.additionalmaps.zip => this will install extra maps for you to use
gobalopper.locationmod.whoflags.zip => this provides the ip2country database and the ability to see the users flag on the who's online page
For more details please see the discussion thread:
http://www.simplemachines.org/community/index.php?topic=20168.0
Images of the mod in action can be seen here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3021;image
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3022;image
Here are the files you need to chmod if you have permission problems when installing:
QuoteDirectories:
./Sources/
./Themes/default/
./Themes/default/images/
./Themes/default/images/english/
./Themes/default/languages/
Files:
./index.php
./Sources/Display.php
./Sources/Load.php
./Sources/ManageMembers.php
./Sources/ManagePermissions.php
./Sources/Subs.php
./Sources/Who.php
./Themes/default/languages/Modifications.english.php
./Themes/default/Display.template.php
./Themes/default/Who.template.php
./Themes/default/script.js
If you are looking for extra maps that have a closer zoom level download gobalopper.locationmod.additionalmaps.zip. It includes these maps:
QuoteAfrica.gif - Africa
Australia.gif - Australia
BE-LU-NL.gif - Belgium, Luxemburg, Netherlands
Canada.gif - Canada
CZ-SK.gif - Czech Republic, Slovakia
DE-AT-CH.gif - Germany, Austria, Switzerland
DE.gif - Germany
East_Asia.gif - Eastern Asia
Europe.gif - Europe
FR.gif - France
GB-IE.gif - United Kingdom, Ireland
IT.gif - Italy
Middle_America.gif - Middle America
NO-SE-FI.gif - Scandinavia
North-West_Europe.gif - North-West Europe
Russia.gif - Russia
South_America.gif - South America
UA.gif - Ukraine
USA.gif - United States of America
West_Asia.gif - Western Asia
previous download counts:
location mod (additional maps) - 2500
location mod (who flags) - 3574
location mod - 6386
Installed this on RC 2. Says it installed successfully but never saw anything added
Yay!!!!!!!!!!!!!!!!!!!!!!!
Thank you- its finally here!!! ;D
If you want a link to the member map use ?action=mm. You will have to create a button to add to your menu.
Been waiting a while for this bad boy...maps look great.
Only thing is when I try to place a pin nothing happens (crosshairs on the map and click).
What am I missing, anyone else having this issue?
Thanks
You may have to refresh the javascript file in your cache. It is updated by the mod and most browsers won't notice the new functions until you do.
Wild, I was talking to one of my members about this in VB less than 3 hours ago. I was planning on looking this up and seeing if it was mentioned in Feature Requests. A must install for our site.
I know someone ported my older version of this mod for YaBB SE to either phpBB or VB... or maybe it was another one... Anyway, this version is a lot different and has a number of improvements.
I've attached two screenshots for those of you who have never seen the member map portion in action before.
This has to be the stupidest question but here goes...
why, for the life of me, can I not find the .smm file?
Because it uses the Package Manager to install. If you want to do it by hand you can look at the the three install files. ie install.php, install.xml and install.txt. And of course package-info.xml to see where things go.
Ah okay. I am getting a directoy permission error. Which directories does this mod need to write to so that I can CHMOD correctly?
Hmm...
Well it puts things in these directories:
./Sources/
./Themes/default/
./Themes/default/images/
And these are the files it will edit:
index.php
./Sources/Display.php
./Sources/Load.php
./Sources/ManageMembers.php
./Sources/ManagePermissions.php
./Sources/Who.php
./Themes/default/languages/Modifications.english.php
./Themes/default/Display.template.php
./Themes/default/Who.template.php
./Themes/default/script.js
And if you have a non-default theme, you will have to insert the 3 lines into Display.template.php in your chosen theme(s).
(which I did, but I prefer my flag to show below the stars)
Globalopper.... very nice mod!!!
one quick question; What determines the colour of the pin to mark your location?
Ok.. another quick question, any way to have this read (or write to) the location string in the user's profile?
Quote from: Gobalopper on November 19, 2004, 02:18:16 PM
Because it uses the Package Manager to install. If you want to do it by hand you can look at the the three install files. ie install.php, install.xml and install.txt. And of course package-info.xml to see where things go.
Oh man- you can install this via PacMan?
Yes!
I remember manually adding your SE version and having to do it over and over after each new SE version that was getting released.
Quote from: kindred on November 19, 2004, 04:09:28 PMone quick question; What determines the colour of the pin to mark your location?
Ok.. another quick question, any way to have this read (or write to) the location string in the user's profile?
Color is based on the gender. So blue for male, red for female and green for n/a.
I could do that... in YaBB SE version it actually used the location field to store the data. I will look at improving the profile information in the next release.
Quote from: TheDel on November 19, 2004, 04:12:26 PMOh man- you can install this via PacMan?
Yep. I didn't trust the old package manager but this new one is great.
OK, I don't want to be RUDE, its not meant that way, but I need to ask because of my own lack of knowledge.
Does this MOD have some hard bugs to figure out? I see lots a new MODs come out with pages of bugs. I can handle that. lol I would be sooo lost! I spent hours last night trying to solve a problem that could have been corrected my changing a setting I never should have touched... So, please do not take this the wrong way, but I want this mod now, although, should I wait for corrections or its it good to go?
I've CHMOD'd every file that gets edited...and I am still unable to upload. Odd.
I'll have to look into it further on my end. Though, other packages upload just fine.
Quote from: Alisha on November 19, 2004, 05:20:56 PMOK, I don't want to be RUDE, its not meant that way, but I need to ask because of my own lack of knowledge.
Does this MOD have some hard bugs to figure out? I see lots a new MODs come out with pages of bugs. I can handle that. lol I would be sooo lost! I spent hours last night trying to solve a problem that could have been corrected my changing a setting I never should have touched... So, please do not take this the wrong way, but I want this mod now, although, should I wait for corrections or its it good to go?
Well I've been using this mod since before SMF was even publically available and charter members have had access to it since early beta. So it should be fine to go. There are no known bugs, just some features I still would like to add.
Quote from: NayNay on November 19, 2004, 05:37:00 PMI've CHMOD'd every file that gets edited...and I am still unable to upload. Odd.
I'll have to look into it further on my end. Though, other packages upload just fine.
Ya I had the same issue when I was installing it but it was my local test server so I could just chmod everything 777. :)
That is one thing that would be nice to have the package manager tell you, exactly what files to chmod.
Ok, then... I will do it... :) Thanks :)
I had the problem when I was trying to upload it form my local directory into the server using the package manager.
finally, I took the file, FTPed it into the package directory and ran apply mod... it told me something needed to be chmod-ed, but I gave it my password and it worked fine after that.
Hi. Installed this, works great, I love this mod.
I added a "Member Map" button on the top menu and linked it to "action=mm", it works :). But for some reason only the admin can view the member map, users get error "you cannot view the member map". I checked to see if there is a permission or option I have to tic for members, can't find any. Has anyone had this issue, or is it just me as usualy is the case? Thanks
[edit]
Never mind, I found it, its under "edit permissions"
Sorry for that.
[/edit]
This is a great mod ;D, except when you view USA, Alaska and Hawaii are missing :( {From alaska lol}, and does not work in FireFox for placing pins.
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.
Using RC2 on Apache
I'm probably making some huge error somewhere here, but none of the mods I apply using the Package Manager are doing anything!
The latest is the Location Mod - one i have been desperate for, and which looks really good!
The PacMan says the mod has been successfully applied, but nothing changes... No menu options, no nothing. 'action=mm' on end of URL just takes me to index page.
I have checked my files, and I have new files called, e.g. Display.php~ with a creation date of the date and time mod applied, and the old files - Display.php with a creation date of the creation of the forum.
Erm... help? How can I install this manually?
EDIT: Just checked through the files to be modded, and the mods have not been made to any of the files... and none of the image files are to found on the server - curiouser and curiouser...
Did it upload a MemberMap.php file to the Sources directory? Are there new tables in your database?
MemberMap.php in Sources dir.
mm_pins and mm_maps added to db.
Have checked all files that are spec'd in the mod file, and none of them have been changed - and the xxx.php~ files haven't got the mod changes in either...
Hmm... are the permissions correct on them?
You could just try chmoding them to 777 while you install and put them back after...
Right.... ;)
Have CHMOD'd the dirs and files... install has gone perfectly... and have changed permissions back.
I thought the info you provide to the PacMan CHMODs files for you? *confused*
Still, thankyou thankyou thankyou... Crackin' Mod!
Also, is the Map supposed to integrate with the user profile?
My location is set in my profile as 'City, UK', but if I change the location on the MMap to 'City1, UK', the profile still uses the original info.
Or are the Map and profile 'Location' fields independent?
For now they are, maybe in the next version. :)
I shall wait with....
anticipation.
MemberMap is a great mod, long awaited... ;)
Thanks!
Jesse-
Im having alot of trouble with the PacMan for this
Its not letting me even upload it.and saying I didnt chmod all the files(but changes all the ones you listed) then if I decide to just upload it myself into Packages- the browse page doesnt load (but does if I delete it via FTP)
And thats just isolated cause I tried it for some other Mod and while Ive had trouble applying the mod I can a least upload them.
Maybe you are having troubles because of the size of this mod?
I was thinking that cause I noticed a huge difference
Yes some servers may have a 2MB upload limit. You could try FTP'ing it manually instead.
Quote from: Gobalopper on November 20, 2004, 05:36:45 PM
Yes some servers may have a 2MB upload limit. You could try FTP'ing it manually instead.
You me through like Smart FTP?
Thats what I did and got the cannot find page when I clicked Browse Packages
I uploaded to the package manager folder
went to pack man and installed it.
worked like a dream... did have to hard refresh when in the mod to get correct jscript as mentioned before. - using preview.
anyway of making NWEurope the default map to start on??
thanks Gobalopper. great mod.
Egg
Quote from: TheDel on November 21, 2004, 12:09:45 PM
Quote from: Gobalopper on November 20, 2004, 05:36:45 PM
Yes some servers may have a 2MB upload limit. You could try FTP'ing it manually instead.
You me through like Smart FTP?
Thats what I did and got the cannot find page when I clicked Browse Packages
Actually if I manually upload this to my Packages folder via Smart FTP and click on
ANY link within PacMan- I get a cannot display error page
Tried uploading though PacMan and still says missing Chmod- does anyone have this on a server so I can try that way? Now while for some reason I had to still manually install mods that were supposed to go through PacMan- this is the first time I havent even gotten this far!
TheDel, I'm afraid your host probably doesn't give you "zlib" access, which means you can't use the package manager.
This is a very common feature of PHP, and most decent hosts enable it. You might try asking your host if there's a reason they don't have it enabled.
-[Unknown]
Thanks -[Unknown]
I shouldnt have a problem getting that
Hello Everybody,
I am gald this fine mod has been finally released. I used "MemberMap" in my "YaBB Gold"-forum.
Now I want to install it to my SMF 1.0 RC2 - but I don't know how ...?
Sorry - never installed a mod to SMF before (*ooops*) :D
so what is the best way to install this mod? Manually or automatically (I guess this is the meaning of "PacMan").
If I upload the (zipped?? un-zipped??) mod-file to this pac-folder - how do I install the mod?
I already unzipped the mod-file but unfortunately there's no help-file ...
Questions ... questions ... :)
Can someone give me a short "quick-install-guide"?
Every help appreciated
Thanks a lot,
Ravey76
Check out install.txt in that zip file. That will tell you everything you need to know.
Hey Ravey76,
Here is a step-by-step guide.
1. Goto your admin panel.
2. Click the Package Manager link.
3. Click the Download New Packages link.
4. Goto the Upload a Package section, click browse and find the mod file (zipped) on your hard drive.
5. Click Apply Mod.
6. Check what the mod will be changing and update any permissions that may be required.
7. Click Proceed.
8. Mod installed. :)
Egg,
To change the default map you would edit the MemberMap.php file in the Sources directory. Right now it is set to 12. Goto line 41 and change that value to 11. In the next release that will be a setting you can change from the admin panel.
@ Oldiesman:
Thanks for the hint. Yes there IS such a file, but no install-instructions inside (just information about features & future plans) ...
@ Gobalopper:
Thanks a lot for the install.instructions :-*
Unfortunately I have some problems with the installation.
I followed all steps you mentioned above; upload succeeds, but then I got a blank page with an error message ("Internal server Error") and installation aborts ...
If I upload that zipped file manually, I even cannot open the packet manager site; as soon as I click on that link in admin panel, I will receive that same error message ...
Access-permissions (package-folder) are all set to 777 ...
What can I do?
Thanks a lot,
Ravey76
Additional information (I don't know whats important)
PHP-version: 4.3.9
GD-Support: enabled / 2.0.28 compatible (don't know what that means)
ZIP-Support: enabled
ZLIB support: enabled / version 1.2.1
I saw in an other thread a similar problem. They mentioned there about a "safe mode" of my serverv.
I found following settings about this:
'--enable-safe-mode=yes'
safe_mode On
What does it say?
Heres the whole list:
PHP Core
Directive Local Value Master Value
[...]
safe_mode On On
safe_mode_exec_dir no value no value
safe_mode_extra_uid 0 0
safe_mode_gid Off Off
safe_mode_include_dir /opt/RZphp4/includes /opt/RZphp4/includes
[...]sql.safe_mode Off Off
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled
BZip2 Version 1.0.2, 30-Dec-2001
calendar
Calendar support enabled
ctype
ctype functions enabled
dba
DBA support enabled
Supported handlers gdbm ndbm cdb cdb_make db2 inifile flatfile
domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20611
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.8
libxslt compiled against libxml Version 2.6.11
DOM/EXSLT enabled
libexslt Version 1.1.8
ftp
FTP support enabled
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
gettext
GetText Support enabled
iconv
iconv support enabled
iconv implementation libiconv
iconv library version 1.9
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
idn
GNU libidn support enabled
GNU libidn version 0.5.4
imap
IMAP c-Client Version 2000
[...]
mcrypt
mcrypt support enabled
version >= 2.4.x
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream
Directive Local Value Master Value
mcrypt.algorithms_dir /usr/lib/libmcrypt /usr/lib/libmcrypt
mcrypt.modes_dir /usr/lib/libmcrypt /usr/lib/libmcrypt
mhash
MHASH support Enabled
MHASH API Version 20020524
ming
Ming SWF output library enabled
Version 0.3beta1
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.0.20
[...]
overload
User-Space Object Overloading Support enabled
pcntl
pcntl support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003
posix
Revision $Revision: 1.51.2.2 $
session
Session Support enabled
Registered save handlers files user
[...]
sqlite
SQLite support enabled
PECL Module version 1.0.3 $Id: sqlite.c,v 1.62.2.25 2004/07/10 12:25:33 wez Exp $
SQLite Library 2.8.14
SQLite Encoding iso8859
Directive Local Value Master Value
sqlite.assoc_case 0 0
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
[...]
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value
tidy
Tidy support enabled
libTidy Build Date 1st August 2004
Directive Local Value Master Value
tidy.default_config no value no value
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled
WDDX Session Serializer enabled
xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.7
xslt
XSLT support enabled
Backend Sablotron
Sablotron Version 1.0.1
[...]
yats
YATS -- Yet Another Template System
version 0.92
author Dan Libby
homepage http://yats.sourceforge.net
open sourced by Epinions.com
Directive Local Value Master Value
yats_cache 0 0
zip
Zip support enabled
zlib
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Can you find out what the *upload_max_filesize* setting is in PHP for me?
Sure - here it is:
upload_max_filesize 2M 2M
Your mod is 2,36 mb big. Could this cause the problem?
But if I upload the zip-file manually to the package folder, it doesn't work, too ...
Greetings,
Ravey76
I am really glad that it's finally available :)
BUT I have a small problem with the installation, in the package manager, I see the package but when I click on apply mod, then I get a modification parse error in step 5.
I have chmod all files and dirs to 777 but it doesn't help.
What I am doing wrong? Sorry for this stupid question....but who can help me out!
Hmm do you have other mods installed? What file is it giving a parse error on? Or do you mean the error comes up before you even get a listing of the files included in the mod?
No other mods installed...
I am just using the package manager in RC2...
When I click on mods, there's only the new location mod that I can install.
So I click apply mod, then there are some steps shown.
1 to 6.....and 5 gives an error...modification parse error..
the package manager doesn't tell me which file has a parse error... :(
When I use the file listing all seems to be ok..(gives a long list with files and their sizes)
it just goes wrong when I click apply mod
That's all I know...I already 10 times read this topic to see if somebody else had this problem but for now it seems it is only me :'(
I have added a printscreen
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fowen.dualcrew.net%2Ferror-install-locationmap.jpg&hash=8490e0c519f449ed620c97d70ef2f9b0bffb4f69)
Quote from: Gobalopper on November 22, 2004, 12:50:24 PM
Egg,
To change the default map you would edit the MemberMap.php file in the Sources directory. Right now it is set to 12. Goto line 41 and change that value to 11. In the next release that will be a setting you can change from the admin panel.
thank you!
When I run the install it gives me "Success" for everything apart from install.php but nothing has changed on the server?
What version of SMF do you have oschikhof?
Redeye, does the ?action=mm not do anything? Did it say failure for install.php then?
Ravey76, when you upload it by hand it shows up in the package listing?
Hey Jesse
(now I really dont wanna go backwards and ask this) but do you have a manual mod for this with an install (for the dbase changes)?
LIke I said Ive been dying for this since you made your SE version.
In fact- we were going back and forth on IM the night you were tweaking it.
If not- no biggie
Quote from: oschikhof on November 23, 2004, 11:25:31 AM
I am just using the package manager in RC2...
So I am using RC2 :)
Quote from: Gobalopper on November 23, 2004, 06:33:17 PM
What version of SMF do you have oschikhof?
Redeye, does the ?action=mm not do anything? Did it say failure for install.php then?
Ravey76, when you upload it by hand it shows up in the package listing?
No it was blank across from install.php
I presume the ?action=mm is placed after the normal URL to the forum? Just a screen refresh.
@ Gobalopper:
>"when you upload it by hand it shows up in the package listing?"
No, unfortunately not. As soon as I upload the file by hand, the "package listing" doesn't work anymore > "Internal Server Error",
nothing works. If I delete the file from server, everything works well again ... I guess my server has a problem with the zipped file...
Kind regards,
Ravey76
I have installed a new forum (next to my existing forum) in another map and another prefix for the database. Here also the same modification parse error when I want to install the mod with the package manager..
Why doesn't it work? Has it to do with the php configuration of my provider?
For example: register_globals is Off in my providers config. ::)
I do not understand why it doesn't work... :'(
Nothing should be affected by register_globals. We strongly recommend you keep that off.
Ravey76, souns like your server has no zlib.
-[Unknown]
Quote from: Redeye on November 24, 2004, 04:33:02 AM
Quote from: Gobalopper on November 23, 2004, 06:33:17 PM
What version of SMF do you have oschikhof?
Redeye, does the ?action=mm not do anything? Did it say failure for install.php then?
Ravey76, when you upload it by hand it shows up in the package listing?
No it was blank across from install.php
I presume the ?action=mm is placed after the normal URL to the forum? Just a screen refresh.
That should be correct. Your's doesn't bring anything up. And you didn't get any errors during the install?
You mention something about "install.php" -- did you get an error there?
Regards,
Jason
Globalopper...
Odd occurance.
The mod works perfectly from within SMF (standalone).
If I link where SMF is the only thing in the address line, it comes up, no problem.
http://www.turtleshellprod.com/community/index.php?action=mm
However... under normal circumstances, my users are going to be hitting SMF through the mambo-bridge.
http://www.turtleshellprod.com/mambo/index.php?option=com_smf&Itemid=49&
appending ?action=mm to the line has no effect, although ?action=admin works just fine...
Quote from: TheDel on November 24, 2004, 12:23:42 AM(now I really dont wanna go backwards and ask this) but do you have a manual mod for this with an install (for the dbase changes)?
So you just want the database changes? You can look at the install.php file for all the queries it uses.
Quote from: oschikhof on November 24, 2004, 08:30:16 AMI have installed a new forum (next to my existing forum) in another map and another prefix for the database. Here also the same modification parse error when I want to install the mod with the package manager..
Why doesn't it work? Has it to do with the php configuration of my provider?
For example: register_globals is Off in my providers config. ::)
I'm not sure what would cause that. Maybe it is something with the package manager code... Unknown do you have any idea?
Quote from: Redeye on November 24, 2004, 04:33:02 AMNo it was blank across from install.php
I presume the ?action=mm is placed after the normal URL to the forum? Just a screen refresh.
So did the install in package manager work or not then? What error did it give exactly? That has to all go ok before the ?action=mm would work.
Quote from: Ravey76 on November 24, 2004, 05:19:59 AMNo, unfortunately not. As soon as I upload the file by hand, the "package listing" doesn't work anymore > "Internal Server Error",
nothing works. If I delete the file from server, everything works well again ... I guess my server has a problem with the zipped file...
Check into what Unknown mentioned. You need to have zlib installed. You can do that by using phpinfo() or asking your host.
Quote from: kindred on November 24, 2004, 11:25:43 PMOdd occurance.
The mod works perfectly from within SMF (standalone).
If I link where SMF is the only thing in the address line, it comes up, no problem.
http://www.turtleshellprod.com/community/index.php?action=mm
However... under normal circumstances, my users are going to be hitting SMF through the mambo-bridge.
http://www.turtleshellprod.com/mambo/index.php?option=com_smf&Itemid=49&
appending ?action=mm to the line has no effect, although ?action=admin works just fine...
I'm guessing you will need to edit mambo's action array in order to get it to work... I'm not sure how that works though as I've never used it. Someone else might though.
@ Unknown & Gobalopper:
I had a look @ phpinfo, here's what it says:
Registered PHP Streams: php, http, ftp, compress.bzip2, compress.zlib
zlib
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
So zlib is installed. Which version of zlib is needed?
Kind regards,
Ravey76
I have read the install.xml and applied all modifications that are set it that file...
After that I tried to start the page with index?action=mm but this gives an error.
The page is building up normally but where the map etc. should be it says
that the page as caused an error..
What to do now? ::)
It's getting unpleasantly complicated :'( and I was so looking forward for this mod.
I have the same Problem with the IE.
With Firefox it works just fine - which is no Problem for me :D
Is it a javascript error? If it is your javascript file is likely cached, make sure you clear your cache or somehow update it.
Ravey I'm not sure what version is required... I would think having it installed would be enough. Unknown might know though.
For me it doesn't matter Firefox or IE......it still doesn't work :'(
I have tried it again on another website...but after a swift installation of RC2, the first try of installing the location mod went wrong
and now the package manager doesn't react at all...
(I am glad it's just a test site haha)...
Though I do not understand why so many people run this cool mod without problems and I am already trying to run this for several days :'(
Hmm... can you send me the url of the test site in an IM? I can take a look. Just create a test account with admin privileges to the package manager.
@ Gobalopper:
Hi Gobalopper,
I don't know why the automatic installation doesn't work ...
Can you explain me how do to this job by hand?
Thanks a lot,
Ravey76
Quote from: Gobalopper on November 25, 2004, 12:48:21 AM
Quote from: Redeye on November 24, 2004, 04:33:02 AMNo it was blank across from install.php
I presume the ?action=mm is placed after the normal URL to the forum? Just a screen refresh.
So did the install in package manager work or not then? What error did it give exactly? That has to all go ok before the ?action=mm would work.
The mod had to be uploaded manually.
I then ran the install from pac-man.
Got the "Success" against all the changes apart from install.php
No error messages anywhere - just nothing happened.
@oschikhof
Are you running a different language?
I had the same Problem with normal accounts.
/forum/Themes/default/languages/Modifications.english.php
needs to be copied (and changed, if you want ;) ) to:
/forum/Themes/default/languages/Modifications.xyz.php
where xyz is your selected language.
Then you should get the right error message
(indicating that you don't have the permissions)
After that you can change the Permissions for each groups to view
the member map and and the pins.
@Gobalopper
What kind of source image did you use for each region?
I'd like to have it, as I 'm using this mod for a forum with mostly german, austrian or swiss members
unfortunatly austria is cut off on the north-west-europe image.
I made a new entry to the SQL-DB, and used the europe image to get a central europe image....
but it just won't look good ;)
Is it possible to gate the source image :D
@ Gobalopper:
Okay - there's something new:
- I unzipped the tar.gz-file and re-zipped it as an ordinary ZIP-file (*.zip)
- uploaded the file
- MOD was recognized correctly
- installed the MOD
- everything worked fine :-)
BUT:
- started the Mod (index.php?action=mm)
- it ran just one time fine; I could place my pin
- now I receive everytime I start the Membermap (?action=mm) an error message "Es ist ein Fehler aufgetreten" ("An error occured") *aargh*
Will check this tomorrow ...
Kind regards,
Ravey76
Great Mod, Gobalopper! I just uploaded and installed it through the package manager (RC2) at ThreeStooges.net (http://threestooges.net) and it worked just fine.
@Ravey76
I had the same Problem with normal accounts.
/forum/Themes/default/languages/Modifications.english.php
needs to be copied (and changed, if you want Wink ) to:
/forum/Themes/default/languages/Modifications.xyz.php
where xyz is your selected language.
Then you should get the right error message
(indicating that you don't have the permissions)
After that you can change the Permissions for each groups to view
the member map and and the pins.
And now the same in german ;)
Ich hatte das selbe Problem,
du musst einfach nur eine /forum/Themes/default/languages/Modifications.german.php
erstellen auf der Basis der /forum/Themes/default/languages/Modifications.english.php
Da musste halt wenn du willst die Texte ins deutsche übersetzen, danach funktioniert das eigentlich
alles einwandfrei ;)
@ Kirk24788:
*G R E A T *
THAT was exactly what I was looking for :D
As you mentioned - I translated the Modifications.english.php and saved the file as Modifications.german.php. After that I could set in Admin Area all settings (Standard setting: denied for all) and now it works fine :)
In german:
Hey - ich dank' dir herzlichst für den Tip, war genau das Problem, was mir Kopfzerbrechen bereitet hat! Jetzt funzts super!
Kind regards / Beste Gruesse,
Ravey76
Hurrrah....it works....cool..
(Sometimes keep on trying, really pays off.)
Thanx to everybody for the help and specially to Gobalopper for making this cool mod :)
Just one little thing....where can I modify permissions?
Now only the admin is allowed to see the map.. and in my package manager it says that I have no mods installed...this because I have installed all myself...
EDIT
I have found it after some extra modifications in my php source files..
THANX!
/EDIT
QuoteJust one little thing....where can I modify permissions?
Member controls on the far left collum in admin and then edit permissions(do each member group permissin seperatly)
@ Gobalopper:
Cool - now the mod works fine :)
Following problem still existing:
- Member Map doesn't work with the actual Firefox version; Pins are somewhere off the map
Question:
- is it possible to place own maps in this mod? In the previous version I had a nice big map of germany and I'd like to use it again ...
- it needs some time to get used to this new "look and feel" and I liked the previous MemberMap-version very much;
> is it possible to make some kind of "theme" for this MemberMap? Like "Member Map Classic" and "Member Map Default" ...?
Kind regards,
Ravey76
Hey guys, it looks like most of the problems are fixed now?
Ravey I think the pins being off the map is a javascript problem. So it might just be caching the file or something.
As for new maps I can make some but since the originals are 30MB Illustrator files I can't really send them. :)
For additional maps please see the second post in this thread.
Cool thx for those extra maps,, installed perfect.
Hey whats the different coloured dots for on the map? (green,red etc) Just a random thing or something specific?
http://www.simplemachines.org/community/index.php?topic=20168.msg162401#msg162401
:D
Thanks Gobalopper :D
@Ravey76
I'm using Firefox too, all you have to do is to reload the page, then every pin will be at the right place ;)
Can you also make 2 maps for me? Holland/Belgium/Luxemburg (BeNeLux) and Ukraine, like you did with germany?? That would be very cool!
Thanx! :)
If not, can you then explaine me how to do this? Then I can do it myself? I hope?
@ Gobalopper:
Thank you VERY much for your help :)
The Maps look very nice; I think I will use the DE-AU-S map 'cause many of our members are from AU and S.
Just one additional plea - can you help me once more?
*aww*
I am not a programmer, just a designer ( and a stupid nerd :D ) -> where do I have to insert the code you mentioned?
Can you give me a short "step-by-step-instruction" where (and how??) to run the queries? :D
Thanks a lot,
Ravey
@ Kirk24788:
Okay, thanks :)
Will try it
The code is an SQL code...
Needs to be put in your database so it can add the fields in your table..
Do you have PHPmyAdmin or something like that to handle your database?
Then use it in there..
NOTE: Do not forget to check the name of your table.
(in the example it says smf_mm_maps but maybe you have named your tables different, then change the name.
Owen
@ oschikhof:
yes, I have PHPmyadmin installed, but I don't have Root-access-rights for DB. Is this neccessary for this operation?
I know how to log in via telnet into my DB, but thats all ... :-/
Do I paste this command (INSERT INTO smf_mm_maps VALUES ...) in telnet and run it there?
** ... thinking ... **
Okay, I think I understand ...
Will try it this evening.
Thanks a lot,
Ravey
If you installed the location mod with succes then you also can add records to a table...
At my provider I also do not have root rights but I can do anything in my database what I want...
One of the things I can't is making a new database...
@ oschikhof & gobalopper:
There was an easier way to insert that code -> PHPmyadmin :D
Now everything works fine - thanks to your help :)
Kind regards,
Ravey
No problem. :)
See my second post for those two new maps you requested oschikhof.
Brilliant, super, cool.....thanx! :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) 8) 8) 8) 8) 8) 8) 8)
Just one little tiny question....
I am searching to change to order of the select box of the countries..
I want them to be in alfabetical order, but I can't find it that quickly...
Somebody can tell me how and were to change it?
Anyone who wants to see my working map (guests are allowed to view :) )
Click here (http://owen.dualcrew.net?forum) and then choose map...
Quote from: Ravey76 on November 30, 2004, 05:28:05 PM
There was an easier way to insert that code -> PHPmyadmin
That is what I meant, open PHPmyAdmin, choose SQL and insert the code that Gobalopper had put in his message... ;)
@ Gobalopper:
Gratulations to your Mod; now works very fine (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bmw-einzylinder.de%2Fforum%2FSmileys%2Fmy%2Fapplaus.gif&hash=af5d2d96a6bcce7b302a73a27c0427783cac08f5)
Another question ;)
For more detailled customization I translated the country-names in Database.
- I which file are the "buttons" for this mod? I want to translate f.e. "Place your pin" into german ...
Thanks,
Ravey
That are no image buttons, that are HTML buttons....you can change the text yourself
Search in MemberMap.template.php for
<div style="text-align: center; font-variant: small-caps; font-weight: bold; padding: 5px; font-size: larger;"><a href="' . $scripturl . '?action=mm;sa=edit">Place Your Pin</a></div>
and
<input type="submit" name="save" value="', 'Save My Pin', '" />
<input type="submit" name="remove" value="', 'Remove My Pin', '" ', empty($context['mypin']['ID_MEMBER']) ? 'disabled="disabled"' : '', '/>
Then change the text into what you like...
You can also ask people here to make an image and change the buttons for an image..
Greetz Owen
@ Owen:
Thank you :)
Will check it this evening
Kind regards,
Ravey
superlative work
excellente as always
i can ask u one thing ?
my users forum are 90% in italy u have one extra map of italy ?
thx aniway
@oschikhof
Either you just change the order of the entries in the
MySQL Table (which is rather annoying, but it works ;) )
OR:
You can change the MemberMap.php file.
I guess all you have to do is change one line in
the last function:
$request = db_query("SELECT ID_MAP, mapFile, mapName, xStart, xEnd, yStart, yEnd, scale FROM {$db_prefix}mm_maps", __FILE__, __LINE__);
to
$request = db_query("SELECT ID_MAP, mapFile, mapName, xStart, xEnd, yStart, yEnd, scale FROM {$db_prefix}mm_maps ORDER BY mapName", __FILE__, __LINE__);
Although I just take a quick look it should work ::)
Thanx a lot, it works perfectly :D
Owen
edi67 see my second post, I've added maps of Italy and the United Kingdom now.
@ Gobalopper:
I translated the MemberMap.template.php file as owen said - works fine!
Do you need this translated file for german customers?
Unfortunately I cannot upload something here ...
Best wishes,
Ravey
Well the next version will use language files like the rest of SMF. For now just wait and I will let you know when I have a language file you can translate.
sorry gobalopper i installed mod but return me back one error FAILED in who.template.php you can write me which modify i must add to this file for install them ?
thx
and one problem if i want see my pm forum return me back this error:
Not unique table/alias: 'pin'
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 532
is perfect... 8)
regards
Hi,
i'm pretty new to this . I've one question i can't find aswered.
- How can I add a button in the top-menu with the appropriate link?
Can someone help me out?
gr.
Bushwaiter
Quote from: edi67 on December 02, 2004, 09:14:51 AM
sorry gobalopper i installed mod but return me back one error FAILED in who.template.php you can write me which modify i must add to this file for install them ?
thx
and one problem if i want see my pm forum return me back this error:
Not unique table/alias: 'pin'
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 532
I just had a look at your forum and see you also have the chat mod installed....
My map was working perfectly untill I installed the chat mod,, very puzzling.
I ended up having to load a default load.pho file to get my forum working again..
I cant get the chat mod to uninstall via the package manager so its still there but now all I get is a page cannot be found after uninstalling and re-installing the map mod..
Quote from: Bushwaiter on December 10, 2004, 12:02:15 PM
Hi,
i'm pretty new to this . I've one question i can't find aswered.
- How can I add a button in the top-menu with the appropriate link?
Can someone help me out?
gr.
Bushwaiter
http://www.simplemachines.org/community/index.php?topic=7854.msg75035#msg75035
That should steer you in the right direction if you havent already found it..
Just adding my previous post.
I ended up having to uninstall the map mod manually as even though the package manager said it was uninstalled infact most of the modifications were still there... I then re-installed it via the package manager and for some reason it stopped responding (page just sat there, no hour glass) so I left it for a while just incase and came back to a still no responding page. However when I clicked browse packages it was shown as installed and works quiet well again. Dunno what exactly happened in the first place after I installed the chat mod and having the map mod go bonkers simular to edi67`s problem but both mods seem to be working ok now(knocks on wood)
You mod writers do great work :)
Thanks a lot!!!!
I did it. It works perfectly. Thanks for this great mod!!!!!!!
Gr.
Bushwaiter
Thank you for your great mod.
Could it be possible to have a full map of France ?
Thanks
Sure I just added it to the listing in the second post.
Thank you so much :D :D
I installed this mod and it installed without any errors. I did edit the install files to point to my theme dir instead of the default dir. The problem is that I get an error when I go to http://www.goosemoose.com/rfc/index.php?action=mm on line 375 & 377 (don't even exist). The flags also do not appear next to the users (I'm assuming they are supposed to depending on their ip address). I'm missing something but I can't figure out what it is. If you see it please let me know.
Dunno if its any help but I found that simply adding the map button on optional templates works well without having to edit any files for it to work with non default templates(welll other than the index.template.php for the buttons wiith each theme) Maybe if you uninstall and re-install it without editing the install files.
I'm guessing that changing where things got installed to messed something up. In the page source do you get the html code and it just doesn't find the image on your server?
Nope, that within the posts. And the map itself isn't working, I get an error. I went through and looked at every file manually and they look fine. Not sure what's up, guess I'll try uninstalling and reinstalling it.
Okay I uninstalled it, and reinstalled without editing the mod. Now the map works, and if I switch to the default profile I can see the flag that corresponds to where I clicked. I don't see flags appearing based on IP address though, am I missing something? I'll go back through now and try to edit the other themes to get them to see flags in posts as well. Am I going to have to copy the flags and maps to each theme?
I got it. I installed it to my default theme first. Then removed all of the stuff out of the install.xml and package-mod.xml that referenced things already installed (i.e. in sources dir), and edited it to reflect the theme I wanted it installed to, then installed it as a second mod. Works great and now I can just apply that to each theme.
when trying to install the mod, it says :
Installing this package will perform the following actions:
Type Action Description
1. Extract Tree ./Themes/default//images/flags
2. Extract Tree ./Themes/default//images/maps
3. Extract File ./Sources/MemberMap.php
4. Extract File ./Themes/default//MemberMap.template.php
5. Execute Modification - Modification parse error
6. Execute Code install.php
what do i do ?
Did you edit the package, it looks like you are getting two // there and you should only have one.
Quote from: goosemoose on December 19, 2004, 03:33:58 AM
Did you edit the package, it looks like you are getting two // there and you should only have one.
no
Well a prob here... the mod is installed..I am able to pull the map..even mark my pin and save it..it starts showing my name with the link to my profile... absolutely fine till here... but it doesnt show the flag next to the username in post.. in default theme it does..but not in other themes..what should I do now..any suggestions?
I made a "Map Button" that conforms to the default theme.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmindlessselfindulgence.com%2Fboard%2FThemes%2Fdefault%2Fimages%2Fenglish%2Fmap.gif&hash=d4c5437d1b05333a182af184e6363981958484fe)
Use it if you need one.
:)
Tried to download gobalopper.locationmod.tar.gz (2334.49 KB - downloaded 310 times. but all I get is a 0 byte file...
Quote from: Gobalopper on November 19, 2004, 01:47:48 AM
Uploading here until the mod upload works...
Hello Gobalopper,
long time I had no problems with the location-mod; everything was fine ... 'till I upgraded to SMF 1.0 Final...
Well, how to say - MemberMap just doesn't work anymore!
I click on my "MemberMap"-Button and just the starting page of my board appears.
Tried to uninstall the mod > it doesn't appear anymore in Packet Manager but files (and DB tables) are still on my server. Tried to upload mod, but I always get an error message -> if I upload (via Packet Manager) your *.tar-file I receive an "Internal Server Error" (that's the problem we already discussed some threads ago). Then I made a zip-file (as I made last time) -> also error message ("Server / DNS error") ...
Is the actual MemberMap not compatible with SMF 1.0?
Kind regards and a Happy New Year,
Ravey76
Addition:
I tried following stuff to get the mod installed:
- created a ZIP-file (un-tar'ed then zip'ed; this usually works) > funny: other (smaller?) tar.gz-files work fine ...
- uploaded file to Package-directory
- started installation manually (index.php?action=packages;sa=install;package=locationmod.zip)
- installation starts; "temp"-directory is created
Then:
- error message appears:
Notice: Use of undefined constant MemberMap - assumed 'MemberMap' in /[url]htdocs/forum/Sources/Load.php(1036) : eval()'d code on line 535
and under this message:
An error occured!
2: mkdir(): Unable to access [url]/htdocs/forum/Packages/temp/flags/
As mentioned, "temp" and "flags"-dir are created automatically. Because of "unable to access" I chmodded the TEMP-dir to 777 and created "flags"-dir (also chmod) -> has no effect ...
Addition 2:
Fortunately I backuped all files before upgrading to SMF 1 Final. So I copied in my next step all "RC2-Files" (listed on your first posting of this thread) back to the server but - it still doesn't work ...
what to do? :-\
Kind regards,
Ravey76
This is a really great mod. Can the creator please make it completely (maps also) installable by the package manager 1.0 for us 'Not so smart"?
Thanks.
Hi,
This is a great mod, however it does not function anymore with version 1.0
I would really like it to work again. Our members like it a lot.
Does the creator know when the update will be ready? I can then inform our members when the mod will be back online again.
Thanks,
Bushwaiter
Quote from: kindred on November 19, 2004, 06:22:03 PM
I had the problem when I was trying to upload it form my local directory into the server using the package manager.
finally, I took the file, FTPed it into the package directory and ran apply mod... it told me something needed to be chmod-ed, but I gave it my password and it worked fine after that.
i have the same problem! i uploaded it to the package dir but i carnt figure out how to apply this mod!
please can you tell me how?
*************************
[email protected]www.habbosnew.com
It does not currently install correctly under v1.0 final...
I re-installed it manually folowing the install info the mod gives and managed to get it working but my error log shows a undefined error each time someone veiws a members profile. Members dont get a visable error themselves so as far as they are concerned its functioning ok.
Heres the 2 errors I get in the log each time a profile is viewed.
8: Undefined index: country
File: /home/worldcic/public_html/yabbse/Sources/Load.php
Line: 612
8: Undefined index: name
File: /home/worldcic/public_html/yabbse/Sources/Load.php
Line: 613
I can stop these errors occuring by removing the code from load.php but then the flags next to the user wont apear.
Any word when this mod will work with the Package manager? Why was Boardmod abandoned? That was what I am used to using from YaBBSE.
Quote from: number6 on January 09, 2005, 08:02:46 PM
Any word when this mod will work with the Package manager? Why was Boardmod abandoned? That was what I am used to using from YaBBSE.
Package manager is easier to use for most, you don't have to edit on your computer and upload the changed files. The package manager will most of the time update the database for the mysql needed also.
This is indeed one of the best mods I've seen. I think every body is driving themselvs mad for nothing trying to get this mod to work. I am sure Gobalopper is working on his mod and will be uploading it shortly(I hope), after all it is working on his site (http://www.dune2k.com/forum/). I do wish he gives us all an update on the progress though.
Thanks for the replies.
Jerry,
I guess I could try and install by hand the necessary changes, it's not all that different from using boardmod, but this is the first mod I tried to install on my test forum and I am already having problems. Member Map/Locationmod is one of my favorite mods from YaBBSE and I have to have that functionality if I am going to migrate to SMF.
1948Pal,
Thanks for the link to Gobaloppers' site. I agree this is a great mod. :) I have been a member of Gobaloppers's forum since 2002 and his forum is one of the reasons I went with YaBBSE in the first place a couple years ago. Normally I would IM him on his site, but it can take him a long time to respond to IM's so I thought I would bump this topic in the hopes of getting a response from him.
I too am patiently waitng for a update, altlhough I have it successfully working it just fills my error log with 2 undefined errors each time a profile is viewed. Simular to what the search function produces that a bug in general with smf1. (been over the files it edits a million times just incase its human error on my part). Main thing at the moment is that it doesant show any errors to my members and affect my members using this great mod.
I'm working on it. ;)
Ok new version is now out. It should work with 1.0 and 1.0.1. It now comes in three packages.
The base install which is required has just the member map functionality and only the map of the world.
The additional maps package includes all the regular and extra maps released so far. Currently found in the second post of this thread as it is too big for the mod site.
The who flags package is the who's online ip lookup part from the previous version.
New additions are the text now being separated from the html for easier translation. A new image for the menu bar at the top. An admin console for turning off maps or renaming them. And also some other minor code tweaks.
Please let me know of any bugs. Thanks!
Aargh!
Goes Ok, Press "Proceed" then...
"Database Error
Column count doesn't match value count at row 1
File: /files/home2/zillion/familynews/Packages/temp/install.php
Line: 46"
Any ideas? (Like many others, me & mine were - are! - greatly looking forward to your Mod working again!)
{Edit} All the mm MySQL tables will still be there from the previous incarnation. Should I have deleted those?
Same problemo here on my forum.
Thanks for your great efforts!!!
Roger
It completely messed up my forums... I get all kind of errors when I try to post... Re-uploading the original forum update files. Hope I can get it back to work again. Guess the mod still needs some more work.
:'(
Roger
Hmmm...
Minor issues.
The install went perfectly. and I was able to port it over to my Helios Theme with no errors.
When I went to the map, however, it would not let me switch off of the world view... none of the alternate maps would come up.
I then went to place my pin... and I was able to go to the US view... but could not place a pin. Clicking did nothing....
After that, I went back in through my mambo interface and was able to place them pinb, although I still could not switch map views from the first screen.
Quote from: Gobalopper on January 13, 2005, 06:36:11 PM
Ok new version is now out. It should work with 1.0 and 1.0.1. It now comes in three packages.
The base install which is required has just the member map functionality and only the map of the world.
The additional maps package includes all the regular and extra maps released so far. Currently found in the second post of this thread as it is too big for the mod site.
The who flags package is the who's online ip lookup part from the previous version.
New additions are the text now being separated from the html for easier translation. A new image for the menu bar at the top. An admin console for turning off maps or renaming them. And also some other minor code tweaks.
Please let me know of any bugs. Thanks!
Yeah, great. Thank you I'll go try now. :D
If you have the old version you should run the upgrade. The full install should only be done if the files are fresh.
If you have the old database tables the only one that needs to change is smf_mm_maps. You can drop that table or run the upgrade on it.
I will look into the map pulldown problem, I think I know the reason.
Ok the download now contains a newer MemberMap.php that should fix the map dropdown not changing problem. If you've already installed 1.1 just take that file and replace it with the old one.
Let me know if it fixes the problem.
Also don't forget about the javascript caching problems that have been mentioned many times before. Until your cache gets the updated version the pin placement likely won't work.
Hello Gobalopper,
I tried to install the new version (old one is still up in my forum), but I get an error message:
2: mkdir(): Unable to access /mnt/ja1/01/142/00000000/htdocs/forum/Packages/temp/flags/
Datei: /mnt/ja1/01/142/00000000/htdocs/forum/Sources/Subs-Package.php
Zeile: 413
All folders have been chmodded to 777 ... why this error message?
And:
where can I get this "upgrade" for already installed location-mods you mentioned?
Thanks a lot,
Ravey
The mod site now accepts 4 meg files, Gobalopper ;).
-[Unknown]
Thanks a bunch Gobalopper! The new packages installed just fine without any problems for me.
I had been waiting for this, thank you.
I had not previously installed this mod, and the install of all 3 parts went fine, on a 1.0 install, using the package manager.
I had the cache problem, but once I cleared it, it all works great. Top mod.
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.
Ravey76, I'm not sure of the cause of that error... do you have any of the files from the first version still installed?
Okilly Dokilly...
Ran your Alter Table query using "MySQL Front" then deleted & reinstalled the packages.
We're away at last! Thanks very much for your efforts! Very much appreciated.
NB: Somewhere along the line I managed to clear the XXX_mm_pins table. Good job I could use MySQLFront to replace the data from the back-up!
Still have the problem of only the worl map showing up in the drop down menu...
Spoke too soon! Maps work fine, but Forum doesn't. If I try to open a Topic I get:
Not unique table/alias: 'pin'
File: /files/home2/zillion/familynews/Sources/Load.php
Line: 480
This other Topic refers, but I haven't yet made any sense out of it!:
http://www.simplemachines.org/community/index.php?topic=21035.msg168036#msg168036
Roger, you have to install the additional maps package to get the other maps now.
zillion, can you post the previous and next 20 lines from your Load.php around line 480? There should be a query there. Most likely it got duplicated when you installed the new version over the old.
Too late! After reading carefully through the previous posts, I've already deleted the Chat Mod and uploaded a new Load.php file. The Location Mod still seems to be working, and I can now view ordinary topics normally. Obviously there is some sort of clash with the Chat Mod; but I can live without the Chat Room!
Thanks for the info Globalopper. Will try that!
I've a lot of errors because the $profile['country'] and $profile['name'] are empty (or undefine) in the load.php. I put this in the code and add a new record in the 'location_country' and uplaod a picture 00.png.
(Line 405)
if (empty($profile['country'])) { $profile['country'] = '00'; }
if (empty($profile['name'])) { $profile['name'] = 'Unkown'; }
The other way is to use one of the standard flags. :)
(Line 405)
if (empty($profile['country'])) { $profile['country'] = 'de'; }
if (empty($profile['name'])) { $profile['name'] = 'Germany'; }
But i'm sure there is also another way to clear this error. But this was the quickest way to clear it ;)
(And the sideeffect each user have a standard flag.)
Use the Replacement from Reply #167 is the better version with no sideeffects ;).
The additional maps download link gives me an empty file on download completion. Is there a working link?
Thanks,
Roger
Not sure why that would happen din1031, it should just be an empty value not undefined...
Roger maybe try again, it worked for me.
The link works with IE but not in Firefox for some reason.... weird...
The mod works now!
http://www.fencecheck.com/forums/
Thanks!
Roger
Hello Gobalopper,
I really dont know why this error message appears.
Okay, I tried to install this mod by hand. Followed all instructions of install.xml
MemberMap is now working again, all users are still present, but their pins are all on the right side of the screen, like pearls on a chain ...
Please have a look:
http://www.bmw-einzylinder.de/forum/index.php?action=mm
How can I fix this?
Thanks a lot,
Ravey
Ravey, clear your cache. That did the trick for me.
Roger
Ravey76 I can't see the member map as you have the guest permission disabled.
@ Gobalopper:
Sorry - I forgot to allow MemberMap for guests :-*
Now you can check my MemberMap.
Additional Questions:
- MemberMap always starts with the Africa-Map. Can I change somehow the "starting map"?
@ Roger:
Nope - cleared my cache (IE6: "Options" > "Clear Temp. Files"); doesn't work ...
How did you do this?
Thanks a lot,
Ravey
When I click [Proceed] in the Package Manager I get the following error:
Database Error
Column count doesn't match value count at row 1
File: /home/habboh/public_html/harrypotter/Packages/temp/install.php
Line: 46
Quote from: Ravey76 on January 15, 2005, 04:52:34 AM
@ Gobalopper:
Sorry - I forgot to allow MemberMap for guests :-*
Now you can check my MemberMap.
Additional Questions:
- MemberMap always starts with the Africa-Map. Can I change somehow the "starting map"?
I changed follow thing in the "source/MemperMap.php"
// if no map set use the default
if (empty($_REQUEST['mid']))
$ID_MAP = 12;
else
$ID_MAP = $_REQUEST['mid'];
Replace this with
// if no map set use the default
if (empty($_REQUEST['mid']))
$ID_MAP = 1; //Change This for the StartMap
else
$ID_MAP = $_REQUEST['mid'];
I used this to change my start map. ;)
@ DIN1031:
Hello DIN1031,
thanks for this idea. I tried to find this code in membermap.php, but I couldn't find it there. Are you sure this piece of code can be found in the actual version of MemberMap.php?
I found something similar
// gets the correct ID_MAP value
function getID_MAP ($row_id)
{
// check mid from request
if (!empty($_REQUEST['mid']))
return $_REQUEST['mid'];
// use the first map returned as the default
else
return $row_id;
}
I tried to integrate your solution, but doesn't matter what I try - it has no effect ... I wonder why? (I really am not a programmer) ...
Thanks a lot,
Ravey
_____________________________________________________
Addition:
I found an other solution -> I changed the MAP-ID in my database with phpmyadmin ... now it works, but the problem with the pins still remains ...
I get a lot of errors also about country and name being undefined, also the flag shows up twice in the posts under the user name, otherwise the mod works great, I also like the admin addition that makes maps visible or not.
@ 1948Pal:
You are right - I have this errors, too!
Looks like this:
8: Undefined index: country
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 615
and:
8: Undefined index: name
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 616
But this error doesn't appear always ... funny thing ...! Any idea what could cause this error?
Kind regards,
Ravey
Quote from: Ravey76 on January 15, 2005, 11:49:54 AM
@ 1948Pal:
You are right - I have this errors, too!
Looks like this:
8: Undefined index: country
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 615
and:
8: Undefined index: name
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 616
But this error doesn't appear always ... funny thing ...! Any idea what could cause this error?
Kind regards,
Ravey
in load.phpsearch for:
'flag' => array(
'country' => $profile['country'],
'name' => $profile['name'],
),
replaced:
'flag' => array(
'country' => &$profile['country'],
'name' => &$profile['name'],
),
I finally got this one installed but it looks like Im the only one who can view this- is there some kind of permission thing somewhere?
Quote from: TheDel on January 15, 2005, 01:38:33 PM
I finally got this one installed but it looks like Im the only one who can view this- is there some kind of permission thing somewhere?
Yes Edit Permissions 8)
Quote from: Ravey76 on January 15, 2005, 09:40:33 AM
@ DIN1031:
Hello DIN1031,
thanks for this idea. I tried to find this code in membermap.php, but I couldn't find it there. Are you sure this piece of code can be found in the actual version of MemberMap.php?
Hmmm i used the Versoin from the 14. January ;). And i used it to change my first Map. Hmmm it can be that you use a older version? Because i found it in the MemberMap.php...
@ babylonking:
Thanks for that piece of code. But it seems I am blind today ;) - whats the difference between those two pieces of code? Looks the same to me ...
@ din1031:
I knew you would have asked me that question ... ;D
*no*, I used the original file I just downloaded from this website. I un-stuffed the file, had a look with my "Norton Commander" (yes, its an *really* old tool!) and - nothing! I couldn't find this piece of code ... I am sorry - as I mentioned to Babylonking - I am blind today 8)
Kind regards,
Ravey
QuoteDatabase Error
Column count doesn't match value count at row 1
File: /home/habboh/public_html/harrypotter/Packages/temp/install.php
Line: 46
I received this error also. Tried the Alter Query, but the table already had the colmun. The mod makes the changes to the source files, but does not show as installed. I went ahead and installed the addtional maps but when trying to place a pin I get this error:
Unknown column 'c.ID_MAP' in 'field list'
File: /www/w/weenie/htdocs/yabbse/Sources/MemberMap.php
Line: 180
I don't have any pins in the database - what is the best way to fix this?
Thanks,
slack
Quote@ babylonking:
Thanks for that piece of code. But it seems I am blind today Wink - whats the difference between those two pieces of code? Looks the same to me ...
Magic code ;D , keep looking 8)
@ babylonking :
Gee - I found the difference ;D
After a nap of sleep I can see it - you added some "&", right? :D
@ Baylonking:
Hello Babylonking,
thanks again - since I made this modification you told me, the error-message doesn't appear anymore.
Maybe you can help me one more time:
- there are still some error-messages left over. I don't think they have something to do with the location-mod ...
1)
8: Undefined index: date
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 202
2)
8: Undefined index: sort_by
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 166
3)
8: Undefined index: ID_FIRST_MSG
Datei: [url]/htdocs/forum/Sources/Search.php
Zeile: 560
4)
8: Undefined index: simpleSearch
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 30
Those four kinds of error-messages repeat always; since yesterday it filled up over 6 pages of error-messages ...
It seems its a problem of the search-function; funny - I didn't change anything to the search-function ...
Any Idea what causes this errors?
Thanks a lot in advance,
Ravey
Quote from: Ravey76 on January 16, 2005, 11:54:53 AM
@ Baylonking:
Hello Babylonking,
thanks again - since I made this modification you told me, the error-message doesn't appear anymore.
Maybe you can help me one more time:
- there are still some error-messages left over. I don't think they have something to do with the location-mod ...
1)
8: Undefined index: date
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 202
2)
8: Undefined index: sort_by
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 166
3)
8: Undefined index: ID_FIRST_MSG
Datei: [url]/htdocs/forum/Sources/Search.php
Zeile: 560
4)
8: Undefined index: simpleSearch
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 30
Those four kinds of error-messages repeat always; since yesterday it filled up over 6 pages of error-messages ...
It seems its a problem of the search-function; funny - I didn't change anything to the search-function ...
Any Idea what causes this errors?
Thanks a lot in advance,
Ravey
Try copying search.template.php into the theme you are using.
your mod work perfectly:
only not correctly visualitation some solution for adjust?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.attack.altervista.org%2Fimmagini%2Fmappa.jpg&hash=37cb2202239accf01b03dc97864eecb292e4d029)
some solution gobalopper?
Search this in the who.template.php of you theme or in the default directory
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
For somthing like this example: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ayu-kult.de%2Fforum%2Ftest%2Fexample.jpg&hash=11bae6aedd0752328d5813f541da68f75373d56d)
Replace the code with this :)
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td><td>
@ BabylonKing:
I wrote my problem in another thread; I think I know why those error message appear:
- my Host doesn't allow a "Create temporary tables"-permission for me; this leads to problems with the actual SMS1.0.1-search-function ... so it really hasn't something to do with this mod; the problem just appeared at the same time.
@ Gobalopper:
Please do not misundestand me - I don't want to bother you ... but do you have any idea, why location- pins are "in a row"? Everything else seems to work perfectly ... ???
Kind regards,
Ravey
I'm happy; the Mod's working perfectly for me :)
But I'd like a zoomed-in map of north-west England since one of my Forums has most of its members in one small geographic area. So I've cut 'n' copied a part of the UK map, managed to work-out the correct X & Y co-ordinates (well, near enough!), enlarged it to roughly the pixel-size of the UK map, and the map works. My intention is to add a few geographical features (maybe the motorway network) to help the geographically challenged to place their pins in something like the correct position!
The only trouble is it displays on-screen in a very small size, even though the gif file is of similar pixel size to the UK gif. So does anyone know how to get the gif to display bigger on-screen? I'm sure someone else has asked this before, but I'm beggared if I can find that post!
Quote from: din1031 on January 18, 2005, 12:40:00 AM
Search this in the who.template.php of you theme or in the default directory
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
For somthing like this example: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ayu-kult.de%2Fforum%2Ftest%2Fexample.jpg&hash=11bae6aedd0752328d5813f541da68f75373d56d)
Replace the code with this :)
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td><td>
this is correctly that i want, i inserted it but not work for me....
i attach my code look:
Quote<?php
// The only template in the file.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
// Display the table header and linktree.
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr>
<td class="catbg">', $txt['users'] , '</td></tr></table>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg">
<td width="30%"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=user', $context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ? ';asc' : '', '">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td style="width: 14ex;"><a href="' . $scripturl . '?action=who;sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td>', $txt['who_action'], '</td>
</tr>';
// This is used to alternate the color of the background.
$alternate = true;
// For every member display their name, time and action (and more for admin).
foreach ($context['members'] as $member)
{
// Skip anyone who is a guest.
if ($member['id'] == 0)
continue;
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<div style="float: right; width: 14ex;">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" border="0" align="middle" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', '
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], '
</div>';
}
echo '
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';
if ($context['user']['is_admin'])
{
$user_agent = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';
$agent = '';
$known_agents = array('Firefox','Firebird', 'Opera', 'Safari', 'Googlebot', 'Googlebot-Image', 'Mediapartners-Google', 'Netscape', 'MyIE2', 'Konqueror', 'Galeon', 'Inktomi Slurp', 'Ask Jeeves', 'ia_archiver', 'Scooter', 'FAST-WebCrawler', 'Yahoo! Slurp', 'MSNBot', 'NG/2.0');
foreach ($known_agents as $known)
if (strpos(strtolower($user_agent), strtolower($known)) !== false)
{
$agent = $known;
break;
}
if ($agent == '')
{
if (strpos($user_agent, 'Mozilla/4.') !== false)
$agent = 'Netscrape 4';
if (strpos($user_agent, 'Gecko') !== false)
$agent = 'Mozilla';
elseif (preg_match('~(MSIE\s+[^;)]+)~', $user_agent, $match) == 1)
$agent = $match[1];
elseif ($user_agent != '')
$agent = 'MSIE';
else
$agent = '???';
}
echo ' <br /> <span class="smalltext">(<b><a href="' . $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank" title="' . $member['ip'] . '" class="smalltext2">' . $member['ip'] . '</a></b>, <acronym title="' . $user_agent . '">' . $agent . '</acronym>)</span>';
unset($member['query']['USER_AGENT']);
$query = '';
foreach ($member['query'] as $k => $v)
$query .= $k . ($v == '' ? '' : '=' . $v) . ';';
$member['action'] = '<span title="' . $scripturl . '?' . substr($query, 0, -1) . '">' . $member['action'] . '</span>';
}
echo '
</td>
<td nowrap="nowrap">', $member['time'], '</td>
<td>', $member['action'], '</td>
</tr>
';
// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)
$alternate = !$alternate;
}
echo '<tr class="titlebg">
<td colspan="3"><b>', $txt[139], ':</b> ', $context['page_index'], '</td>
</tr>
</table><br>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr>
<td class="catbg">', $txt['guests'] , '</td></tr></table>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg">
<td width="30%"> </td>
<td style="width: 14ex;"><a href="' . $scripturl . '?action=who;sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td>', $txt['who_action'], '</td>
</tr>';
// This is used to alternate the color of the background.
$alternate = true;
// For every member display their name, time and action (and more for admin).
foreach ($context['members'] as $member)
{
// Skip anyone who is not a guest.
if ($member['id'] != 0)
continue;
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<div style="float: right; width: 14ex;">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" border="0" align="middle" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', '
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], '
</div>';
}
echo '
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';
if ($context['user']['is_admin'])
{
$user_agent = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';
$agent = '';
$known_agents = array('Firefox','Firebird', 'Opera', 'Safari', 'Googlebot', 'Googlebot-Image', 'Mediapartners-Google', 'Netscape', 'MyIE2', 'Konqueror', 'Galeon', 'Inktomi Slurp', 'Ask Jeeves', 'ia_archiver', 'Scooter', 'FAST-WebCrawler', 'Yahoo! Slurp', 'MSNBot', 'NG/2.0');
foreach ($known_agents as $known)
if (strpos(strtolower($user_agent), strtolower($known)) !== false)
{
$agent = $known;
break;
}
if ($agent == '')
{
if (strpos($user_agent, 'Mozilla/4.') !== false)
$agent = 'Netscrape 4';
if (strpos($user_agent, 'Gecko') !== false)
$agent = 'Mozilla';
elseif (preg_match('~(MSIE\s+[^;)]+)~', $user_agent, $match) == 1)
$agent = $match[1];
elseif ($user_agent != '')
$agent = 'MSIE';
else
$agent = '???';
}
echo ' <br /> <span class="smalltext">(<b><a href="' . $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank" title="' . $member['ip'] . '" class="smalltext2">' . $member['ip'] . '</a></b>, <acronym title="' . $user_agent . '">' . $agent . '</acronym>)</span>';
unset($member['query']['USER_AGENT']);
$query = '';
foreach ($member['query'] as $k => $v)
$query .= $k . ($v == '' ? '' : '=' . $v) . ';';
$member['action'] = '<span title="' . $scripturl . '?' . substr($query, 0, -1) . '">' . $member['action'] . '</span>';
}
echo '
</td>
<td nowrap="nowrap">', $member['time'], '</td>
<td>', $member['action'], '</td>
</tr>';
// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)
$alternate = !$alternate;
}
echo '<tr class="titlebg">
<td colspan="3"><b>', $txt[139], ':</b> ', $context['page_index'], '</td>
</tr>
</table>';
}
?>
http://www.forumzoneru.25.com1.ru/index.php?action=mm
An Error Has Occurred!
You cannot view the member map.
My permissions... Not allowed me... ;)
Quote from: Midgard on January 18, 2005, 06:33:37 AM
http://www.forumzoneru.25.com1.ru/index.php?action=mm
An Error Has Occurred!
You cannot view the member map.
My permissions... Not allowed me... ;)
allowed to full forum now
this errors means that there is some problem putting the flag in profile ?
Jessy Oggi alle 12:31:27
213.82.100.243 fc8027aeec9749248748445087476580
http://www.forumzoneru.25.com1.ru/index.php?action=profile
8: Undefined index: name
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 617
caco Oggi alle 12:33:25
80.105.56.49 2ab3ce4261079e2b38e662131d5e1cc4
http://www.forumzoneru.25.com1.ru/index.php?action=profile;u=105
8: Undefined index: country
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 616
???
Quote from: edi67 on January 18, 2005, 06:42:25 AM
Quote from: Midgard on January 18, 2005, 06:33:37 AM
http://www.forumzoneru.25.com1.ru/index.php?action=mm
An Error Has Occurred!
You cannot view the member map.
My permissions... Not allowed me... ;)
allowed to full forum now
Woow! Thank you...
Quote from: edi67 on January 18, 2005, 06:43:33 AM
this errors means that there is some problem putting the flag in profile ?
Jessy Oggi alle 12:31:27
213.82.100.243 fc8027aeec9749248748445087476580
http://www.forumzoneru.25.com1.ru/index.php?action=profile
8: Undefined index: name
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 617
caco Oggi alle 12:33:25
80.105.56.49 2ab3ce4261079e2b38e662131d5e1cc4
http://www.forumzoneru.25.com1.ru/index.php?action=profile;u=105
8: Undefined index: country
File: /home/forumzo7/public_html/Sources/Load.php
Linea: 616
???
You find 'name' and 'country'
Normal: name
Normal: country
Replace with: 'name'
Replace with: 'name'
(you add single quote item (
'))
mh i have tehm so:
'country' => $profile['country'],
'name' => $profile['name'],
i think already correct.
Quote from: edi67 on January 18, 2005, 07:02:38 AM
mh i have tehm so:
'country' => $profile['country'],
'name' => $profile['name'],
i think already correct.
Watch the Post #167 in this thread and you have the answer ;)
----
Quote from: edi67 on January 18, 2005, 06:28:30 AM
Quote from: din1031 on January 18, 2005, 12:40:00 AM
Search this in the who.template.php of you theme or in the default directory
.......
a i found it ;).
Old one from your template ->
// Skip anyone who is a guest.
if ($member['id'] == 0)
continue;
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
I only put the flagline 1 line after
<tr class="windowbg', $alternate ? '2' : '', '">
New one from your template ->
// Skip anyone who is a guest.
if ($member['id'] == 0)
continue;
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td> // This Line is one line later :)
<td>';
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
i solved in another way thank anyway
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.attack.altervista.org%2Fimmagini%2Fmappa.jpg&hash=37cb2202239accf01b03dc97864eecb292e4d029)
If you have this error:
Column count doesn't match value count at row 1
See this post:
http://www.simplemachines.org/community/index.php?topic=20168.msg192808#msg192808
Ravey76, I think your problem is with your javascript file. I don't think it has been updated with the functions that position the pins in their correct location. I can't know this for sure as your website seems to be down right now.
zillion all maps have x/y co-ordinates as well as a scale value. So if you cut the map and enlarge it be sure to also increase the scale value. As for why the image itself is the wrong size it may be caused by the scale being off...
@ Gobalopper:
Okay, I checked all javascript-files on my board; I found following files:
- fader.js
- script.js
- spellcheck.js
and they really haven't been updated to the newest version (date: Oct' 2004). This seems to be a problem of the packet manager, from where I made this update to SMF1.0.1.
I uploaded the new javascripts, but it had no effect. Do I have uploaded the right files? Are there any other javascript-files I missed?
Additional steps I tried:
- uploaded again membermap.php / template / maps&flags > nothing changed.
Could it maybe be a database problem?
Kind regards,
Ravey
PS.: My board is still up ;)
Direct Link: http://www.bmw-einzylinder.de/forum/index.php?action=mm
URL: http://www.bmw-einzylinder.de/index2.php > Foren > Einzylinder-Forum > MemberMap
This javascript file:
http://www.bmw-einzylinder.de/YaBBSE155/Themes/default/script.js
Needs to have the javascript functions that come with the mod. The modificatoin will only edit the default theme so if your javascript file is not in that directory it will not work. If that isn't the default theme's directory try finding it and replacing it with the the one I link to above.
I've got the Mod installed, but whenever I try to Place a Pin - the Map jumps back to world view from what ever map I'm tring to place the pin on. Any ideas? Guest access to give it a try here:
http://weeniecampbell.com/yabbse/index.php?action=mm
Thanks!
slack
Can you send me a PM with a test account login?
You bet, coming right up.
Quote from: Gobalopper on January 18, 2005, 08:02:52 PM
This javascript file:
http://www.bmw-einzylinder.de/YaBBSE155/Themes/default/script.js
Needs to have the javascript functions that come with the mod. The modificatoin will only edit the default theme so if your javascript file is not in that directory it will not work. If that isn't the default theme's directory try finding it and replacing it with the the one I link to above.
@ Gobalopper:
:-*
This was the right direction! The file from the link didn't work, but you've been right; the problem was this javascript-file.
Okay, here as a summary what went wrong:
- Package Manager didn't install the files right (error messages), so I had to install it by hand
- After making all necessary changes by hand I uploaded all files, but at the javascript-file >>I<< made a mistake; instead of taking the modified javascript-file I uploaded my backup-file (unmodified) of it, so the location mod had no chance to run properly!
As far as I could check it the MemberMap now works fine again :)
Thanks a lot for your help, Gobalopper :D
Best wishes,
Ravey
I'm getting nuts here. I installed the mod (which I like very much, so thanks for the hard work!), but I keep getting problems. First there where several problems with installing. But after 2 weeks of trial and error I succeeded. (where problems with the server settings). So now I got it installed and working under the default board theme I have (SMF Default Theme). But I have several other themes installed and I just can't get the button in them. :'(
I have looked at (and tried several times) what is mentioned HERE (http://www.simplemachines.org/community/index.php?topic=7854.msg75035#msg75035).
I copied and pasted the codes mentioned there to the two files, but I still do not see a button to the "members map". If I put "action=mm" after the 'standard' url to my board it is working. I can also see the setting options in the admin section. So the mod is installed correctly.
It probably is something easy I forget to do or overlook. But I really can't find out what.
Do I need to copy all the (new) files from the default theme folder to the other theme folders or is it just a matter of editing the index.template.php file? (which I suspect it is)
Please help me, I don't know anything about php, but I am not afraid to change something. I do have a reasonable amount of experience time with computers and applications.
Quote from: Artras on January 19, 2005, 04:49:09 AM
I'm getting nuts here. I installed the mod (which I like very much, so thanks for the hard work!), but I keep getting problems. First there where several problems with installing. But after 2 weeks of trial and error I succeeded. (where problems with the server settings). So now I got it installed and working under the default board theme I have (SMF Default Theme). But I have several other themes installed and I just can't get the button in them. :'(
I have looked at (and tried several times) what is mentioned HERE (http://www.simplemachines.org/community/index.php?topic=7854.msg75035#msg75035).
I copied and pasted the codes mentioned there to the two files, but I still do not see a button to the "members map". If I put "action=mm" after the 'standard' url to my board it is working. I can also see the setting options in the admin section. So the mod is installed correctly.
It probably is something easy I forget to do or overlook. But I really can't find out what.
Do I need to copy all the (new) files from the default theme folder to the other theme folders or is it just a matter of editing the index.template.php file? (which I suspect it is)
Please help me, I don't know anything about php, but I am not afraid to change something. I do have a reasonable amount of experience time with computers and applications.
Have you uploaded the map button/s to the various themes images directory?
Yes I did
is it possible to take out the member flags entirely?
(and by this i mean just on the posts, not on the actual member map page.)
it seems to me like a bit cluttery to have the flag show every time you post... seems like a better place for it would be in the profile.
i repeat wonderful mod and correctly work
i have one question is possible have one flag to unknown nation IP ?
for example i have 7/8 users with LAN and IP unknown and i wanted put one flag specific for them
for example this IP: 174.6.52.212 is without flag for this mod. so i will had flag for this unknown ip
thx again Gobalopper for mod
Quote from: Gobalopper on January 18, 2005, 11:58:24 PM
Can you send me a PM with a test account login?
Gobalopper, Did you ever have a chance to look at the problem?
Thanks,
slack
Quote from: edi67 on January 20, 2005, 07:19:33 AM
i repeat wonderful mod and correctly work
i have one question is possible have one flag to unknown nation IP ?
for example i have 7/8 users with LAN and IP unknown and i wanted put one flag specific for them
for example this IP: 174.6.52.212 is without flag for this mod. so i will had flag for this unknown ip
thx again Gobalopper for mod
There are two ways to give them a standard flag:
First and i think the best way is the who.template.php =)
Find something like this:
<td width="20" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
and replace it with something like this
<td width="20" align="center">', (empty($member['flag'][0]) ? '<img src="' . $settings['default_images_url'] . '/flags/00.png" alt="Unknown" title="Unknown" />' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
and you must upload a flag with the name 00.png in the stardard flag images directory.
----
The Second way is not so good, because you must change the woh.php in the source directory:
Search for:
// Send the information to the template.
and put befor this line this:
if (empty($row['c2code'])) { $row['c2code'] = '00'; $row['name'] = 'Unknown'; }
and you must upload a flag with the name 00.png in the stardard flag images directory.
----
Both way work, the first one is the best one i think.
I'm only tested the first way, the second way is untested :D.
To recap, I wanted a zoomed-in map of Lancashire & Cheshire, and have cut & enlarged part of the GB-IE.gif. I was meant to be
trying not to trouble you, as you've enough on your plate already; but not had much success in that have I? ;)
Quoteall maps have x/y co-ordinates as well as a scale value. So if you cut the map and enlarge it be sure to also increase the scale value. As for why the image itself is the wrong size it may be caused by the scale being off...
I don't
think the X/Y co-ords are a problem, as that would show as the pins being out-of-place (wouldn't it?).
But could you explain how the "scale" factor works? For instance, North_West_Europe.gif has scale factor 2 and GB-IE.gif has scale factor 4. Does that mean the GB-IE map is
half the area of the NW-Europe map ....or what? (Must admit I'm a bit puzzled the the World map is scale factor 0.16 ...I was expecting unity!)
PS Increasing the Scale factor DOES increase the size of the map on-screen, but it seems to top-out at Scale=11. Perhaps there's some sort of limit within the script?
Hallo, I have a problem with the mod not showing up, after I added some code. This added code works on every other page, except on the member map page. Here's the code I've added into a table in the header of the page:
<table border="0" cellspacing="10" cellpadding="0" width="100%" height="80" class="border">
<tr>
<td><img src="/img/logo.gif"></td>
<td align="right" width="90%">';
if (@include(getenv('DOCUMENT_ROOT').'/_ad_server/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '_blank', '', '0', $phpAds_context);
}
// Assign the $phpAds_raw['html'] variable to your template
// echo $phpAds_raw['html'];
echo $phpAds_raw['html'];
echo '</td>
</tr>
</table>
The phpAds part is the php code that I added. Every other page of the forum owrks, except for the member map. here's a link so you can see what happens:
http://www.fencecheck.com/forums/index.php?action=mm
Thanks,
Roger
Still can't get it to work in other themes :-(
I have SMF installed on : http://212.204.166.18/smf/
The theme is in : http://212.204.166.18/smf/themes/helios-red/
Into what should I change the following code in index.template.php?
// How about the [gallery] button?
echo '
<a href="http://www.yourdomain.net/gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt[801] . '" border="0" />' : $txt[801]), '</a>', $context['menu_separator'];
When I try to download the mod from the SMF package server I get the following error:
Quote2: unpack(): Type H: not enough input, need 1, have 0
Quote from: Redeye on January 22, 2005, 02:50:56 PM
When I try to download the mod from the SMF package server I get the following error:
Quote2: unpack(): Type H: not enough input, need 1, have 0
That means that, for whatever reason, the file is zero bytes. Have you upgraded to 1.0.1 yet?
-[Unknown]
No, not yet upgraded, should that be a problem?
Yes, that's one of the things fixed by the upgrade.
-[Unknown]
Upgraded to 1.0.1
Now get error:-
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I had the same problem so I just manually FTP'd the zip file to the packages directory. Then I was able to install the MOD using the package manager as normal.
Quote from: bulliedog on January 24, 2005, 05:37:42 PM
I had the same problem so I just manually FTP'd the zip file to the packages directory. Then I was able to install the MOD using the package manager as normal.
Cheers, that worked fine.
Can't place pins on map, get "Error on page" in browser - javascript problem?
Slack- same problem as you I think?
Ok...couple things:
1) This is awesome!!! Thank you!!!
2) While I see this just fine, and I can place pins anywhere, many of my members can not.
2a) I use Mozilla Firefox, and it works perfectly. Same in my IE.
2a1) A friend of mine could NOT place his pin with Firefox at all. And he saw MY pin out in the ocean way off the world.
However, after doing a complete cache delete from Firefox, his side worked perfectly. He could add the pin and delete the pin
as well as see the pins in the correct position.
3) A couple of my members are getting an error that "An Error Has Occurred!
You cannot view the member map. '
Both of these uses are registered and logged in. But they can not see the maps at all. They have deleted chache, cookies, etc... Still no go.
HELP!!!! The real problem is this: There is NO error number nor is there any error showing up in the forum error log. There is also no error showing up on my hosts error log. I am at an absolute total loss.
I think I found the problem. I did NOT notice that there is a setting in permissions. DOH! I have now turned that setting on and all is well.
Got it working - great mod.
I only use the UK-IE map and want to use the national flags of England Scotland Wales and N Ireland and Eire.
How do I get these to show up and the country's to show in the list
TIA
I am not sure, but I installed the map and all was wonderful. However, I got a huge crash of the system tonight. Out of the blue. I had luckily, just done a daily back up of the database. The error was a database error (btw) and so I started looking at the db from yesterday and today. I think there was a problem, so please tell me if it should have been like this....
yesterdays db size: 784k raw.
todays db size with map installed (did it last night after the backup): 4.79 MEGS
Is that normal? Or did it double or triple install somehow???
Appreciate any ideas. Btw, I just ripped the map db info (which was over 100 pages long) out of the db and saved and uploaded. That fixed my site.
Well done on the Location Mod, much better.
However I still feel that the member map is a luxury. I would much prefer just selecting your country etc and adding your city in your profile and having it displayed on your posts with the flag image. No member map and pins etc.
Could you make a mod for just that? Would simplify things :D
Quote from: James Woodcock on January 28, 2005, 08:25:05 AM
Well done on the Location Mod, much better.
However I still feel that the member map is a luxury. I would much prefer just selecting your country etc and adding your city in your profile and having it displayed on your posts with the flag image. No member map and pins etc.
Could you make a mod for just that? Would simplify things :D
Just like the one we used to have in old yabbse forum, But i do like the IP to country flag in who's online.
Aye babylonking that would be the one, simple but so effective :)
IP country in whos online is nice, but not 100% accurate and sloooow.
i'm getting this error when i try to install...
An Error Has Occurred!
2: copy(/home/kodee/public_html/forums/Themes/default/images/flags/ad.png): failed to open stream: Permission denied
File: /home/kodee/public_html/forums/Sources/Subs-Package.php
Line: 961
after getting that msg, i went back to see if i could attempt an install again... this time i'm getting a failure at line 8: sources/load.php
I am having the same issues with the subs-package.php. Anyone have any ideas?
:)
QuoteAmacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616
Amacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617
I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.
I have members that have problems using Macs with the Safari browser. The pins are located way off the map limits.
Does this Mod work with Macs and Safari?
Thanks!
2: copy(/home/britport/public_html/Sources/Who.php~): failed to open stream: Permission denied
File: /home/britport/public_html/Sources/Subs-Package.php
Line: 1219
Notice: Undefined index: don_title in /home/britport/public_html/Sources/Load.php(1096) : eval()'d code on line 482
I have these errors and I have no clue what to do!
:(
Make sure /home/britport/public_html/Sources is 777 to avoid the first error.
-[Unknown]
Looks like a real nice mod. However it's currently not working over here. Here's what I did:
- Uploaded and Installed file through Package manager
- Now, all files are OK but one says 'failed'. That's index.php.
- Since the page asked for FTP password to solve it, I entered it.
- Then a stream of errors came up. The Forum is fine but the mod won't work.
Question: Can index.php, since it's the only problemfile, be manually editted and if so, what needs to change?
Guider...
You're running SMF under Mambo...
There are issues installing packages (especially those that modify index.php) in SMF under Mambo.
(specifically, the edits to index.php fail)
Yes, you can manually edit index.php.
However, unless you are using [unknown]'s ob version of the bridge, that will not do anything for you. You'll have to apply the edits (as called for to index.php) to mambo/components/com_smf/smf.php
(I currently have it working under mambo, myself)
I used v2.2 of the Bridge. So if I get it right, leave index.php like it is and tamper with mambo/components/com_smf/smf.php. Right? So, what do I need to mod in that file?
Guider,
Look at the .mod file in the mod package... that will list all the changes it makes to all files. Find where it calls for
<edit file>
index.php
make any changes listed there to smf.php AND index.php.
/me going crazy or aint there a .mod file in the package?
install.xml is the file you would want to look at.
For reference, we're talking about this code:
Quote
<file name="index.php">
<operation>
<search position="before"><![CDATA[
'mlist' => array('Memberlist.php', 'Memberlist'),]]></search>
<add><![CDATA[
'mm' => array('MemberMap.php', 'MemberMap'),]]></add>
</operation>
</file>
- In the base directory of SMF I added the bold line to index.php. As stated, *before*
'mlist' => array('Memberlist.php', 'Memberlist').
- In mambo/components/com_smf/smf.php the line was already there, but it was switched. The 'wrong' one was on top. For the record, I corrected that so all is in mint condition.
However, my board shows nothing. No trace of a map or admin settings of any kind. What goes wrong?
well, first of all, you have to CALL the function.
somewhere, you either need a mambo menu item or a SMF button directing you to
http://www.guider.atwebhosting.com/mambo/index.php?option=com_smf&Itemid=124&?action=mm
However, it looks to me as if you have NOT actually installed the mod!
no flags are showing up in the who's online portion either.
and calling for the mm action tells me that MemberMap.php does not exist.
Yeah I see, but I got all OK's except for index.php. On the server Memberlist.php is missing however. How did you get this thing going and what would you recommend?
Does anyone have a suggestion what to do about a formatting problem when users are using something other then the default medium text size? If you set text size larger, the world map will appear o.k., but the U.S.A. map for example all the pins will be to high, or if a smaller text is called, the pins will be all be to low
I installed this mod once before on my testboard before upgrading to SMF 1.0.1 today. (I upgraded with the full upgrade, not the update, so reinstalled all other mods no problem.) I've just uploaded this package and applied it, reported successes, and clicked Proceed. Got this error:
QuoteDatabase Error
Column count doesn't match value count at row 1
File: /home/site/public_html/testbb/Packages/temp/install.php
Line: 46
Any idea what could cause this or how to fix it?
Edit: Sorry, found the answer here http://www.simplemachines.org/community/index.php?topic=20168.msg192808#msg192808 :-X
Quote from: Amacythe on January 30, 2005, 09:59:18 AM
QuoteAmacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616
Amacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617
I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.
Is anyone else getting these errors when viewing a profile?
Quote from: Amacythe on February 02, 2005, 01:22:49 AM
Quote from: Amacythe on January 30, 2005, 09:59:18 AM
QuoteAmacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616
Amacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617
I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.
Is anyone else getting these errors when viewing a profile?
in load.phpsearch for:
'flag' => array(
'country' => $profile['country'],
'name' => $profile['name'],
),
replaced:
'flag' => array(
'country' => &$profile['country'],
'name' => &$profile['name'],
),
thanks, that fixed it
My test board was totally screwed, I uploaded all fresh files and reapplied the mods again and it was sorted. Now it's up on my live board and all is well, thanks for this mod, it's fantastic.
One small question of personal customization, is it possible that instead of the alt text for the flag image in the posts having the flag country name, can it be changed to include the city name if it's been entered? Just not sure if that's included in the array or what it's called. I see it in the Display.template.php. Looks to me like it's not there, can Display.php be changed to included it? Thanks. :)
any idea when this mod is going to be 1.0.1 compatible... i'm on 1.0.1 at the moment and the load.php step is failing for me... however i had a test site on just 1.0 so i installed it there perfectly and then successfully managed to upgrade it to 1.0.1 with the membermap working... so it upgrades fine but it can't be installed on a clean version of 1.0.1... any ideas why?
also would it be possible to revert back to 1.0 install the mod then upgrade again, or would that just plain screw everything up?
The mod should work fine with 1.0.1 that is what I used to test it with.
hmm... :( when i try to install it it comse up with a failure in the load.php modication...
so i clicked proceed anyway to see what happened and this is what i got...
Database Error
Column count doesn't match value count at row 1
File: /home/kodee/public_html/forums/Packages/temp/install.php
Line: 46
Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.1, whereas your database is at version SMF 1.0. It is recommended that you execute the latest version of upgrade.php.
i used the package manager to upgrade to 1.0.1... if this error msg is right then only half my forum must be upgraded... am i supposed to be doing something else??
Great mod, been lokking for a while never considered there'd be one under my nose :)
So much better than others Ive seen..
Installed no problem through the pac man SMF 1.01
A mate modded the UK map for me so it shows county bounderies..
Only glitch Ive seen is that people on AOL get a US flag in the whose online...but thats down to IP recognition...
Somebody asked how to add more flags specifically England, Scotland , Wales...I'd like that to :) If anybodys done it HOW ?? ;)
thanks all concerned
So is there any documented fix for the pins being on the wrong places for custom themes? I have read through the entire topic but theres not a specifc soultion. My pins are off the map in both i.e and firefox. ( even after refreshing the browser) Anyone knows how to fix this>?
So is there any documented fix for the pins being on the wrong places for custom themes? I have read through the entire topic but theres not a specifc soultion. My pins are off the map in both i.e and firefox. ( even after refreshing the browser) Anyone knows how to fix this>?
ANYONE WHO CAN HELP? WITH MY PROB:
someone please say something!
Please stop bumping with new posts.... if you want to add something, use the modify button...
Also... it may take a little while for people who know what they're doing to 1) see the post, 2) investigate, 3) come up with some sort of answer and 4) actually answer...
I'm not sure of the actual problem there... It could be the html of the template. It would be far too time consuming for me to debug it for all custom themes. But I will look into making it more portable in future versions... maybe having it in a popup or something.
I wasn't able to use this through the package manager. I get the following message on a 1.0.1 board:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I was able to grab Grudge's Buddy List without a problem though on the same board
could it be because the location points to a directory and not a tar.gz file?
Goballoper ...could youy please help with this?
The mod has been installed on my website but is only accessible to the Admins. I get the following an error has occurred and regular members can not view the MAP. I believe this is a permission issue. I need some help.
It is a permission issue, look in your admin panel under permissions for your general users and click the box to allow them to see the map.
Quote from: kindred on February 09, 2005, 11:01:16 AM
Please stop bumping with new posts.... if you want to add something, use the modify button...
Also... it may take a little while for people who know what they're doing to 1) see the post, 2) investigate, 3) come up with some sort of answer and 4) actually answer...
kindred ...if you did not want to ask..just dont say anythinh. And im not sure why you are giving me instructions. Goballoper Please check your PM
Well I can look into it but right now I am too busy with other things to actually code anything. Maybe in the next week but I can't guarantee...
QuoteSomebody asked how to add more flags specifically England, Scotland , Wales...I'd like that to If anybodys done it HOW ??
I'm working on it. ;)
Yeah I get people from the principalities moaning too, they seem to think that they have their own country or something ::) ;)
I'm having a problem that when placing a pin the cursor is about 2 inches higher and 1 inch to the left of the actual pin. It makes for great fun and has been a talking point but I guess it's not meant to be like that. Is this likely because of my theme?
Cheers for the great mod Gobaloppper
I've attached flags for England, Scotland, and Wales, not the best but they'll do in a pinch. ;)
Drop new flags into the flag directory, Themes/default/images/flags.
Then run this query in phpMyAdmin, being sure to
replace the dbprefix with your own:
Quote
INSERT INTO dbprefix_location_country VALUES ('en', 'England', 5);
INSERT INTO dbprefix_location_country VALUES ('sx', 'Scotland', 5);
INSERT INTO dbprefix_location_country VALUES ('wa', 'Wales', 5);
Worked on mine, but use at your own risk.
cool...ill wait .
anyone know if this is working on 1.0.2??
Hmmm we've installed 1.0.2 and it work ;).
So i think it work. :D
I am already running 1.02 and tried installing using the Package Manager.
I get the following error message:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Tried deleting the file and uploading it manually using FTP, but is then listed in Package Manager with no install option.
Any suggestions.....?
same problem as airlifter
The mod author must update the installer to support 1.0.2 :)
Unknown should really just make a click here to ignore version warnings when installing mods... :D
You don't have to put a version in the mod, and it still installs ;) ;D but guess that would let people install it when it doesn't work :-\
From the responses so far, it looks as though I'm SOL until a Mod version is released that is compatible with SMF 1.02....?
:(
hmm.... you all went about this the hard way.
I did the package manager update... which has all of my mods still installed and working, with no errors before or after the update.
kid astronaut.... I had to figure this out for myself.... so much for any useful help....
The simple fix is to add "1.0.2" to the "install for" line in the package-info.xml file:
Quote<install for="1.0, 1.0.1">
Quote<install for="1.0, 1.0.1, 1.0.2">
I had to do the same for the additional flags and maps files.
airlifter, that is a quick fix, but only works if the mod is compatible with the newer version you add. In this case, it may work, but please be aware that it won't always work on all mods.
Quote from: airlifter on February 16, 2005, 11:44:04 AM
From the responses so far, it looks as though I'm SOL until a Mod version is released that is compatible with SMF 1.02....?
:(
basically unless you would like to isntall the package manually or edit the package to tell it that it will work with 1.0.2... ;)
You could add:
1.0.1-1.0.9
Or something, to whitelist all minor releases... but it's better, in many cases, to actually test it.
-[Unknown]
R there any other packages this conflicts with?
what i must to do to show the flag under my username ?
Regards.
if you have the membermap installed correctly you simply need to just go into the map and place your pin in your location and the correct map will automatically appear in all your posts
yes i had it installed without error, and Chmod all files, i can see the flag on "user on line" but not in my posts
i'm just going by the original install the way it used to happen... don't you have to install additional maps and stuff this time around... have you installed all three things that were given on the download page?
could be something to do with your theme of use?
Quote from: LostProphecy on February 17, 2005, 09:12:20 AM
i'm just going by the original install the way it used to happen... don't you have to install additional maps and stuff this time around... have you installed all three things that were given on the download page?
yes i had instal:
gobalopper.locationmod.zip
gobalopper.locationmod.additionalmaps.zip
gobalopper.locationmod.whoflags.zip
Quote from: LostProphecy on February 17, 2005, 09:12:20 AM
could be something to do with your theme of use?
i'm using SMF default theme, but i have change the style.css
"Sorry for my english!"
How can i add a new map's country ?
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.
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.
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? (http://www.simplemachines.org/community/index.php?topic=18250.0)
-[Unknown]
As requested:
http://www.glypo.co.uk/phpinfo.php
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 ???
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 ?
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 ?
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??
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.
Great stuff!!! Your efforts are much appreciated!
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....
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
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.
ehm, what exactly has changed in the Load.php, I want to change it manually......?
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
Thanx ;) I had changed that already :)
Tried to install Location Mod got the following error message, running SMF 1.0.1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwebpages.charter.net%2Fosipof%2Fsmf%2Fbio%2Flocationmod.jpg&hash=0b7cec4a5bda66e1c28a95f99bcdc155dd63c8d8)
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.
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.
Same downloaded file, installs on SMF 1.0 but not on SMF 1.0.1
Ok try again. Downloading the files that is, I put up new ones.
New files worked, what was the change
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 :)
Hi Gobalopper,
When i run the package manager i get this.
Installing this package will perform the following actions: Type Action Description
1. Extract Tree ./Themes/default/images/flags
2. Extract Tree ./Themes/default/images/maps
3. Extract File ./Themes/default/images/english/mm.gif
4. Extract File ./Sources/MemberMap.php
5. Extract File ./Themes/default/MemberMap.template.php
6. Execute Modification index.php Success
7. Execute Modification ./Sources/Display.php Success
8. Execute Modification ./Sources/Load.php Success
9. Execute Modification ./Sources/ManageMembers.php Success
10. Execute Modification ./Sources/ManagePermissions.php Success
11. Execute Modification ./Sources/Subs.php Success
12. Execute Modification ./Themes/default/languages/Modifications.english.php Success
13. Execute Modification ./Themes/default/Display.template.php Success
14. Execute Modification ./Themes/default/index.template.php Success
15. Execute Modification ./Themes/default/script.js Success
16. Execute Code install.php
It then ask's me for the ftp stuff to make changes. I put the details in and hit proceed but nothing happens. I've checked all the files that you've mentioned at the beginning and they are all have full permissions.
If i can get the package manager to do it for me great as i don't fancy doing te hand code on it...Though i may well have to if i want it on additional theme's...
Quote from: Aravot on March 08, 2005, 04:06:02 AMNew files worked, what was the change
The versions supported was listed as "1.0,1.0.1-1.0.3" which I guess doesn't work properly... So I changed it to "1.0,1.0.1,1.0.2,1.0.3".
Quote from: LostProphecy on March 08, 2005, 04:37:29 AMI'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 :)
Yes, just make sure that smf_ is your database prefix. It usually is as that is the default.
Quote from: lupus on March 08, 2005, 11:54:37 AMIt then ask's me for the ftp stuff to make changes. I put the details in and hit proceed but nothing happens. I've checked all the files that you've mentioned at the beginning and they are all have full permissions.
If i can get the package manager to do it for me great as i don't fancy doing te hand code on it...Though i may well have to if i want it on additional theme's...
Ya I wish the package manager would list beside the name what files have permission problems but it doesn't... Maybe thats another mod. :)
I will take another look at what files you should have writable and see if it has changed at all.
part of the problem could be a DIRECTORY problem... if your directory does not allow new files or new subdirectories to be created, then the mod will fail with a continual return to the "enter proper ftp info" screen.
True, but I included the directories in the list of what has to have the proper permissions so I assume he has done that to.
I was checking my "Forum Error Log" had 7 pages of the following error.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwebpages.charter.net%2Fosipof%2Fsmf%2Fmm.gif&hash=c2fa4af38c69309b6bc723ac5166d87ed92b03a8)
here is the code from line 212 (line 212=echo')
if ($context['browser']['is_ie'] && !$context['browser']['is_ie4'])
echo '
if (typeof(smf_codeFix) != "undefined")
window.detachEvent("onload", smf_codeFix);
window.attachEvent("onload",
function ()
{
with (document.all.supportVersionsTable)
style.height = parentNode.offsetHeight;
}
);
if (typeof(smf_codeFix) != "undefined")
window.attachEvent("onload", smf_codeFix);';
What file is that from?
Quote from: Gobalopper on March 08, 2005, 12:35:57 PM
Quote from: Aravot on March 08, 2005, 04:06:02 AMNew files worked, what was the change
The versions supported was listed as "1.0,1.0.1-1.0.3" which I guess doesn't work properly... So I changed it to "1.0,1.0.1,1.0.2,1.0.3".
Well, in 1.0 it was EXCLUSIVE, not inclusive. 1.0.0-1.0.4. This was fixed in 1.1.
-[Unknown]
I've changed the code a bit and moved the member listing to beneath the map. Already 173 members have placed their pin, so I thought it was better to swap the listing with the map :)
A great mod I must say !
Ya, my board had them below too and I just realized the mod puts them above so I've moved it below the map for the next release.
Which bit of code needs changing to show the listing underneath the map?
TIA
Quote from: Redeye on March 09, 2005, 01:31:51 PM
Which bit of code needs changing to show the listing underneath the map?
TIA
Me too
Membermap.template.php , download the modified version here :
http://www.salesplaza.nl/images/MemberMap.template.zip
Quote from: Gobalopper on March 08, 2005, 12:35:57 PM
Quote from: lupus on March 08, 2005, 11:54:37 AMIt then ask's me for the ftp stuff to make changes. I put the details in and hit proceed but nothing happens. I've checked all the files that you've mentioned at the beginning and they are all have full permissions.
If i can get the package manager to do it for me great as i don't fancy doing te hand code on it...Though i may well have to if i want it on additional theme's...
Ya I wish the package manager would list beside the name what files have permission problems but it doesn't... Maybe thats another mod. :)
Thanks bro, it would be a great help...Thanks for all the effort as well...
I will take another look at what files you should have writable and see if it has changed at all.
I feel stupid here but I am running SMF 1.0.2 and had no problems installing the package but I only get one world map. How do I get the other maps? I had this feature on yabbse and it was very popular but the world map gets covered due to the pin size. Am I missing something?
Download maps and install through Package Manager from here > http://mods.simplemachines.org/index.php?mod=56
Quote from: Webby on March 09, 2005, 02:55:17 PM
Membermap.template.php , download the modified version here :
http://www.salesplaza.nl/images/MemberMap.template.zip
Thanks Webby!
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...
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
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.
Hello, I finish my translation in FRENCH with the button... where upload or transmit the package? (gobalopper.locationmod.fr)
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
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F62.212.84.216%2Fmap-cap.png&hash=f6f6c5b96042a30c20ad7dbd1cf17a8a06131c6e)
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.
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
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.
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.
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);
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
Read this topic from the start, this has been answered already.
Sorry, sometimes it's hard to read..
my apologies
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?
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)
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
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..
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);
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
to flapper: Maybe you already have it like 10 times but here it comes...
I got almost everything running now with Mambo, good help from the readme files.
One question though...
I have the location mod in my forum and when I click on the button, it opens full screen and not
integrated in the mambo site...
Anybody a solution?
Owen
Thanks for emailing me the file but now when i upload using package manager or even ftp i get this message;
QuotePackage Manager - Install Actions
Install Actions for archive gobalopper1.locationmod.additionalmaps.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
now i have checked the zip file and its not corrupt, becouse i can open it on hard drive and all files there working, also the zip file is 777.
I only realy want the larger maps of UK and Africa, is there
anyway i can install manually
Yes you can....
You copy the files where the other maps are...
Then you can open all the files with notepad and read what the installation would do..
It's all in xml code...pretty easy to read...
Most of the times it says, look up "FILENAME", then SEARCH FOR "existing code".
After that it is adding or replacing tekst...you can do this yourself.
Also with phpmyadmin, you can execure the sql commands like create table or insert into..
Here you need to look well that you change the name of the table that are creating or inserting.
For example
db_query("INSERT INTO {$db_prefix}mm_maps VALUES
needs to become
{$db_prefix} needs to be replaced with the prefix of your database.
default is it smf_
Good luck!
@ gobalopper
I have build a new website, but some maps are a little to big.
I want to make them smaller but I think that the pins will not be at the same spot anymore.
I know that it's possible to play with it (scale etc.) but how do I do that?
Can you explain it? Thanx
So sorry but I still feel that my above post from March 17th hasn't really been answered. Can someone please respond to my post for me? I'd greatly appreciate this.
Quote from: ^Raven^ on March 26, 2005, 04:06:12 AM
So sorry but I still feel that my above post from March 17th hasn't really been answered. Can someone please respond to my post for me? I'd greatly appreciate this.
http://forum.wargamingforums.com/index.php?action=mm
Many thanks Babylon. I'll work on getting links to that up on my forum for people to pin. Maybe a tiny world map they can click on that takes them to there and thus place a pin.
This is an update. I gave the URL you provided to me, to a few of my members and they said they cannot see the map. Apparently, they receive an error message that says something like "You cannot view the member map."
How do I go about changing this so they can view it and place a pin?
This is due to the settings for the individual groups. You would need to do the following:
1. Log into the Admin area on your forum.
2. Click "Edit Permissions" under Member Controls
3. Click each group you would like to be able to see the map in the "Permissions by Membergroup" listing by clicking the "Modify" link to the right of that group.
4. There is a section called "View and edit pins on the member map" now and you have options you can set. (A) gives them allowance to do that option, (X) and (D) removes the option.
I ran into this same issue myself when I set it up and had to do testing as a non-admin to see what was going on for them. I read this thread to find out how to correct it, but the individual who noted it previously in the thread did not really give clearcut instructions as I hope I have above.
Miraenda thanks for clearing this up. I'll have to spend some time taking care of this. Oh so many membergroups can be a pain sometimes.
I also have a request for the next version of this mod. Please include the other maps you have available as included in the mod. Also, set the mod up so that the other maps install and will show beneath the world map.
I ask for this because I'm not entirely clear on how to go about installing them myself.
Also, how about including a copy of the world map split into time zones. This would be very useful for members to gauge the time difference between them and those they speak to.
hello ! need help :( I instaled Member Map and its works but when I selct City: and Click on Save my pin then I see that:
An Error Has Occurred!
You have to click somewhere on the map to place your pin.
then I click but not helping :(
:( I dont andertand :(
p.s. sorry for bad english
Hi smirnoff,
You need to first place the pin onto the map before entering the city above it. If you even click into the city box I believe before first setting the pin, you will then not be able to save the location properly. Thus, set the pin, go up above and enter the city and country, and then save it.
I hope this helps.
Hi again,
just 1 question:
some of my members have marked the wrong city coordinates of their town. asap: munich is not in the north of germany.
is there an option for admins to edit these wrong pins?
thx a lot
Its funny that you ask since I am playing around in permissions right now hoping to find an answer that will make me happy. So far as I can tell an admin cannot edit another member's pin.
However, a member can edit their own pin. So, you could direct your member where to place the pin and they can edit it themselves.
But, it seems to me like allowing an admin to edit another member's pin is a great suggestions for the next version of this mod.
Quote from: oschikhof on March 25, 2005, 08:07:26 AM
@ gobalopper
I have build a new website, but some maps are a little to big.
I want to make them smaller but I think that the pins will not be at the same spot anymore.
I know that it's possible to play with it (scale etc.) but how do I do that?
Can you explain it? Thanx
Anybody who can explain me? I am still waiting for an answer.. :-[
Quote from: DWagner on March 31, 2005, 06:07:23 PM
Hi again,
just 1 question:
some of my members have marked the wrong city coordinates of their town. asap: munich is not in the north of germany.
is there an option for admins to edit these wrong pins?
thx a lot
Not the best option but you can mess in the database with the coordinates ;D
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.
I updated the mod for beta 1.1 & beta 1.1+
and also added spanish strings :P
here you have if you want to check it out :)
Tried to install the mod in SMF 1.1b1 got the following message
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
changed version number from this
<install for="1.1 Beta 1+">
to this, installed OK
<install for="1.1 Beta 1">
Heh...
I downloaded latest smf's code from cvs, (same as simplemachines.org board, that's why the 1.1+)
Glad the update worked
Fixed the files to work for beta 1.1 & beta 1.1+
Hi, I just downloaded and installed the Location Mod (http://mods.simplemachines.org/index.php?mod=56) with success; however, Admins are the only guys who can access it.
Can someone please tell me what I need to do so my members can access it as well?
Thanks !!
Flag to: Gobalopper
^ bump ^ :)
Go to Admin center Edit Permissions>Ungrouped Members>Modify than find 'View and edit pins on the member map' choose Allow
WhooHoo! There we geaux. Thanks Aravot !!! :D
can't install this one.
I've verified the permissions on the list of files I don't know howmany times but I keep getting this screen:
Installing this package will perform the following actions:
Type Action Description
1. Extract Tree ./Themes/default/images/flags
2. Extract Tree ./Themes/default/images/maps
3. Extract File ./Themes/default/images/english/mm.gif
4. Extract File ./Sources/MemberMap.php
5. Extract File ./Themes/default/MemberMap.template.php
6. Execute Modification index.php Success
7. Execute Modification ./Sources/Display.php Success
8. Execute Modification ./Sources/Load.php Success
9. Execute Modification ./Sources/ManageMembers.php Success
10. Execute Modification ./Sources/ManagePermissions.php Success
11. Execute Modification ./Sources/Subs.php Success
12. Execute Modification ./Themes/default/languages/Modifications.english.php Success
13. Execute Modification ./Themes/default/Display.template.php Success
14. Execute Modification ./Themes/default/index.template.php Success
15. Execute Modification ./Themes/default/script.js Success
16. Execute Code install.php
FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files.
Can someone give me an idea what I'm doing wrong ?
thanks
-Ron
I don't know directly what is the problem, but I have a guess...
I had (and still have) the problem that the package manager doesn't work..
So I made all changes manually....
Finally I found out that it seems to be the problem that my provider is running PHP with Safe mode set to ON.
SMF doesn't like this...you can make a textfile with the following code:
phpinfo();
and name it info.php or something you like.
Upload it and open it in your browser..it will show you your config...
If safemode is ON...then that probably is your problem.
In that case do the install manually....it's not that difficult as it seems..
Read the xml file and do what the file should do..
Owen
Hello - total newb here.
After install, still nothing was appearing anywhere...
with the help of dunrobin, was able to figure out that it is because I am not using the default theme, but rather the wonderful xtSMF theme. Have now added a button for the member map to the menu, but my coordinates are probably wrong and am also unsure if I coded right - can someone advise? First, here is the code I added to my index.template.php -
//The [member map]!
if ($context['allow_member map'])
echo '
<area coords="142,12,10" shape="circle" href="', $scripturl, '?action=mm">
';
Is that right? I sort of suspect the if ($context['allow_member map']) is wrong? If so, what should it be?
Next, can someone tell me if there is an easy way to figure out the coordinates of where my newly added "Member Map" circle iso n the xtMenu.gif menu so it isn't way off? I guesstimated but am not sure I got it right? Image link below.
http://www.thelastbaron.com/xtMenu.gif (http://www.thelastbaron.com/xtMenu.gif)
(I placed a copy in the main directory so people don't have to go looking too far)
Muchas gracias any and all helpers!
I installed this mod today and the extra maps. Very nice work! :D
I was originally looking for something like a profile field where they could just choose a country and then the flag would show up next to their posts, but this is indeed a nice mod with the maps :).
I do have one question however. I looked through as many pages of this thread as I could, but I didn't seem to find much info on how to edit additional themes to include the flags on the posts, as well as the flag button on the top.
Thanks in advance for any help on how to do this (I'm using the 7data_smf skin, but would like to know how in general)
-Mark
hey guys, i need some help with this. I have installed it but cant seem to get all of the other maps apart from the World to show up, can u help us please
margera1987 is the co-admin with me on my forum, we're using the Sitra theme by Mystica.
Forum URL:
http://babysimpson.co.uk/forum
Theme URL:
http://www.simplemachines.org/community/index.php?topic=32628.0
Quote from: margera1987 on April 25, 2005, 01:41:44 PM
hey guys, i need some help with this. I have installed it but cant seem to get all of the other maps apart from the World to show up, can u help us please
Quote from: Gobalopper on November 19, 2004, 01:43:12 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=56)
gobalopper.locationmod.zip => the *required* base install, this provides you the member map
gobalopper.locationmod.additionalmaps.zip => this will install extra maps for you to use
gobalopper.locationmod.whoflags.zip => this provides the ip2country database and the ability to see the users flag on the who's online page
For more details please see the discussion thread:
http://www.simplemachines.org/community/index.php?topic=20168.0
Images of the mod in action can be seen here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3021;image
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;id=3022;image
If you read the first post, you need to go to http://mods.simplemachines.org/index.php?mod=56 and get additional maps after you install the main part of the mod. Have you done that part already and it still isn't showing up?
i have all the maps they just arnt showing up
all i get is the world map showing
The mod for some reason was causing the Member colour link mod and Multiple Stars mod to go haywire. So as a result, I have deleted the Location mod from the forum.
:D I love this Mod! It's so wonderful :) Great job! I just wish there was a close up of Hawaii :( Maybe it could be added just to the side of the mainland U.S.?
-Shayna
I'm a big stupid dummy. I installed the package once, and then a second time thinking i was installing the extra maps so now i have two buttons. I uninstalled the second package but i have two buttons to the member map... how can i get rid of one?!?
http://elementsoc.com/forum
Thanks for your help!
Quote from: carmelkevlar32 on April 28, 2005, 04:30:40 PM
I'm a big stupid dummy. I installed the package once, and then a second time thinking i was installing the extra maps so now i have two buttons. I uninstalled the second package but i have two buttons to the member map... how can i get rid of one?!?
http://elementsoc.com/forum
Thanks for your help!
I just uninstalled both including the extra maps but now there's an empty link in my navigational bar (still tries to lead to the maps) where's the code to fix? Thanks for your help...
I expect the code you're talking about can be found in index.template.php
Got it fixed... for somereason the code was above and below the code for the calender... weird...
Don't mean to flood this thread with stupid questions but after adding the extra maps... it's quite noticeable how off a few of our guesses were when placing pins on the world map instead of at zoom level. Is it possible to remove or edit pin points? I've tried uninstalling and reinstalling but the pins are till there... thanks for you help!
I am discontented. :( I installed this mod, just trying it out. I didn't like it, and went to uninstall it. But now, my forum won't work.
http://forums.sakuracard.com/forum/index.php?topic=24.0
Every topic is like that. Help? :'(
Upload all the files from the "upgrade" zip file from the downloads page (or at least the Sources directory.)
-[Unknown]
Thanks :)
this mod is very useful, but I found out that the set PIN is not working in Firefox
i see the changed mouse curson, but click is doing nothing
it would be nice if it could be fixed
You need to set the pin before you pick the location above it. You must click the mouse for the pin placement before you even put your cursor in the city field or pick a map at all (as soon as you put your cursor up there even if you do not enter anything, you will then not be able to set the pin period).
anyway.. firebird is soooo old.
you should upgrade to latest firefox :P
OK I have this installed but nothing seems to work, installed via package manager and all seemed fine.
I can view all the files it installed ok but when I follow the link in admin to set it up or go to forum/index.php?action=mm it just takes me back to the main forum home page. Have searched index.php for mm (as someone suggested) but it finds nothing.
Have added permissions for viewing / editing pins, but still the same problem.
When I try to uninstall it gives me errors:
Quote1. Delete Tree ./Themes/default/images/flags
2. Delete Tree ./Themes/default/images/maps
3. Delete File ./Themes/default/images/english/mm.gif
4. Delete File ./Sources/MemberMap.php
5. Delete File ./Themes/default/MemberMap.template.php
6. Execute Modification index.php Failure
7. Execute Modification ./Sources/Display.php Success
8. Execute Modification ./Sources/Load.php Success
9. Execute Modification ./Sources/ManageMembers.php Success
10. Execute Modification ./Sources/ManagePermissions.php Success
11. Execute Modification ./Sources/Subs.php Success
12. Execute Modification ./Themes/default/languages/Modifications.english.php Failure
13. Execute Modification ./Themes/default/Display.template.php Success
14. Execute Modification ./Themes/default/index.template.php Failure
15. Execute Modification ./Themes/default/script.js Success
16. Execute Code uninstall.php
Please can someone tell me what have I done wrong and how do I fix it!
i bet wasn't installed properly, in the first place...
I cant download it via the P. Manager, if i upload the .zip file the i go to browse package and the install button doesnt appear, just the List file and Delete, the mod is not applied and the button for doing this does not appear why?
well I removed it anyway even though it said there would be errors. After re-installing in exactly the same way it seems to be working fine.
nibb, I uploaded it via package manager and it gave me the option to install, so maybe try uploading it again.
Ok different problem now...
I can view the map and edit save my pin however when any other member clicks to place their pin, the map is not displayed and even though they can click in the white-space where the map should be when they click save it says illegal coordinates entered.
I've set the permissions in all different ways but at the moment anyone apart from guests should be able to both view and edit their pin on the map, but unless you're an admin the map isn't displayed when you click on place my pin.
I've uninstalled and re-installed the mod but the problem remians the same...
Seems it's an issue with displaying maps, when I have onlu UK and world ticked, no one can view either...when I have all ticked people can view and place their pins... ???
I installed the Sitra Themes after installing this mod and now the Map option doesn't show up... Is there a way to get it back?
As with any additional theme, you will have to modify the template files manually.
I believe this mod and the Sitra theme require modifications to Display.template.php and index.template.php. The menu link is located at the bottom of the index.template.php fie. You'll need to essentially copy the calendar lines and then change the aciton to mm and the text to member map...
hum... for someone who doesn't know about php, how do I do this?
Tested this mod with SMF 1.1 beta 2 not working.
Following code was missing, inserted the code and it worked
file name="index.php">
<operation>
<search position="before"><![CDATA[
'mlist' => array('Memberlist.php', 'Memberlist'),]]></search>
<add><![CDATA[
'mm' => array('MemberMap.php', 'MemberMap'),]]></add>
</operation>
</file>
Uploaded via package manager and everything works great! Thanks. Is it possible to get a map of the Pacific Northwest, specifically from northern California, Oregon, Washington, Idaho & British Columbia?
Hi,
hopefully this is the right place to post this.
I've setup smf and added the location mod
which works quite nice, thanks for the mod.
I do have one problem tho, searches have stopped working with the following error:
Not unique table/alias: 'pin'
File: /Sources/Load.php
Line: 475
any idea's on what could cause this ?
I looked through the database and tables and as far as I'm concerned the
table named "smf_mm_pins" is a unique name. so I'm confused.
thanks for any thoughts on this.
-Ron
I after reading this thread front to back 2 times... i am convinced this hasn't been answered.. this Mod has an issue with firefox? In IE, if a user places their pin it shows up. If a user is using firefox, ALL the pins that are posted, end up OFF the map On the forum ... like up where the drop-downs and text field is. Is it just me? if it is what the heck could be causing this problem. i have NO extensions installed in firefox, and my forum is running SMF 1.0.3, and a few other mods:
SMF Arcade 1.1.3
G&S Sticky 1.0
The Bar Of Experience 1.1
OnLine Users Today 1.2
Regular Groups 1.3
Location mod 1.1.1
Location mod - Who Flags 1.1.1
Location mod - Additional Maps 1.1.1
Any idea if they are conflicting? or is firefox just not parsing something right....
EDIT:
It should be noted that on the world map, it shows the location pin FINE. It is only when one goes to the additional maps example: USA, Canada France, i have noticed this on other sites as well :( HELP?
Also dont know if this matters, But i am running SMF With MKPortal M1.0
Quote from: caNcer_b0y on May 16, 2005, 04:50:15 AM
I after reading this thread front to back 2 times... i am convinced this hasn't been answered.. this Mod has an issue with firefox?
It works fine for me. You need to clean the cache for Firefox
interesting.
I admin a site with the frist 3 of those mods also installed, in addition to the location mod.
Occassionally, the pins appear up in the header section of a country specific map, even in IE. However, refreshing the page, or re-clicking the "view map" button fixes the issue.
Quote from: caNcer_b0y on May 16, 2005, 04:50:15 AM
I after reading this thread front to back 2 times... i am convinced this hasn't been answered.. this Mod has an issue with firefox? In IE, if a user places their pin it shows up. If a user is using firefox, ALL the pins that are posted, end up OFF the map On the forum ... like up where the drop-downs and text field is. Is it just me? if it is what the heck could be causing this problem.
try these posts:
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg162318#msg162318
A: http://www.simplemachines.org/community/index.php?topic=20168.msg162322#msg162322
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg162528#msg162528
A: http://www.simplemachines.org/community/index.php?topic=20168.msg162543#msg162543
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg165533#msg165533
A: http://www.simplemachines.org/community/index.php?topic=20168.msg165650#msg165650
and http://www.simplemachines.org/community/index.php?topic=20168.msg165849#msg165849
those are just in the first 6 pages ...
I think it would be a great addition to add maps for each state in the US, as well as add state flags in additon to the US flag. Most of my members are from just a few states in the Pacific NW and it would be nice to have a smaller geographic map.
Quote from: Aravot on May 11, 2005, 07:12:06 PM
Tested this mod with SMF 1.1 beta 2 not working.
Following code was missing, inserted the code and it worked
file name="index.php">
<operation>
<search position="before"><![CDATA[
'mlist' => array('Memberlist.php', 'Memberlist'),]]></search>
<add><![CDATA[
'mm' => array('MemberMap.php', 'MemberMap'),]]></add>
</operation>
</file>
where's the exact location for the version that will work in 1.1 beta 2 with your code change of course :)
Quote from: hebxi1 on May 16, 2005, 05:39:10 PM
Quote from: caNcer_b0y on May 16, 2005, 04:50:15 AM
I after reading this thread front to back 2 times... i am convinced this hasn't been answered.. this Mod has an issue with firefox? In IE, if a user places their pin it shows up. If a user is using firefox, ALL the pins that are posted, end up OFF the map On the forum ... like up where the drop-downs and text field is. Is it just me? if it is what the heck could be causing this problem.
try these posts:
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg162318#msg162318
A: http://www.simplemachines.org/community/index.php?topic=20168.msg162322#msg162322
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg162528#msg162528
A: http://www.simplemachines.org/community/index.php?topic=20168.msg162543#msg162543
Q: http://www.simplemachines.org/community/index.php?topic=20168.msg165533#msg165533
A: http://www.simplemachines.org/community/index.php?topic=20168.msg165650#msg165650
and http://www.simplemachines.org/community/index.php?topic=20168.msg165849#msg165849
those are just in the first 6 pages ...
Right. But, did that solve it? Nope. any other ideas? i did state that i read this entire thread a few times...
Clearing the cache made it able to ONLY disply the pins the first time i viewed the map after doing so. subsequent time of viewing placed the pins all over the page... i was unable to place a pin even after clearing the cache.
Hi All !
Where can I find more maps for this mod, I need Spain map and I don´t know where is it... ???
Thanks
Quote from: caNcer_b0y on May 16, 2005, 04:50:15 AM
I after reading this thread front to back 2 times... i am convinced this hasn't been answered.. this Mod has an issue with firefox? In IE, if a user places their pin it shows up. If a user is using firefox, ALL the pins that are posted, end up OFF the map On the forum ... like up where the drop-downs and text field is. Is it just me? if it is what the heck could be causing this problem.
Quote from: caNcer_b0y on May 17, 2005, 10:18:22 PM
Right. But, did that solve it? Nope. any other ideas? i did state that i read this entire thread a few times...
Clearing the cache made it able to ONLY disply the pins the first time i viewed the map after doing so. subsequent time of viewing placed the pins all over the page... i was unable to place a pin even after clearing the cache.
In your original post, you only mentioned the same issue that others were having - the pins showing up in funny places - which was answered in some of the posts I linked to. If you tried the solutions in those threads and are still unable to PLACE a pin, mentioning that in your first post would have helped.
I have actually given up trying to install this mod, so I'm probably not much help on it, but I would be willing to bet that your problem still has something to do with the javascript file not playing nice with Firefox.
Now that's not to say I don't think this is a great mod - I used the YaBB SE version and loved it. However, for my forums, it's simply a neat little toy instead of something truly useful, and not something I want to spend a lot of time on, which it seems I was having to do. This is why I'm not a coder ;)
Location mod (member map) update for SMF 1.1 Beta 1 & 2
Notice: My updated version ONLY works with SMF 1.1 beta 1 & 2, DO NOT install it on SMF 1.0.x it will not work.
I updated the Location mod 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 2 with Location Map (http://www.armeniancollegeofcalcutta.com/smf/index.php)
test/test
thank you thank you thank you :)
*runs off to back up first before attempting to install ;)*
~ hmm... running beta 2, installing with the package manager perfectly on my test site and it's not working :(
when i click on "membermap" in the admin section it just takes me back to the forum index so it seems like it's not actually installed but it said it was installed and it still says it's installed in the package manager *shrugs*
Quote from: LostProphecy on May 21, 2005, 06:07:40 AM
thank you thank you thank you :)
*runs off to back up first before attempting to install ;)*
~ hmm... running beta 2, installing with the package manager perfectly on my test site and it's not working :(
when i click on "membermap" in the admin section it just takes me back to the forum index so it seems like it's not actually installed but it said it was installed and it still says it's installed in the package manager *shrugs*
Open index.php
search for
'mlist' => array('Memberlist.php', 'Memberlist'),
add the following code
'mm' => array('MemberMap.php', 'MemberMap'),
Quote from: Miraenda on March 26, 2005, 03:07:23 PM
This is due to the settings for the individual groups. You would need to do the following:
1. Log into the Admin area on your forum.
2. Click "Edit Permissions" under Member Controls
3. Click each group you would like to be able to see the map in the "Permissions by Membergroup" listing by clicking the "Modify" link to the right of that group.
4. There is a section called "View and edit pins on the member map" now and you have options you can set. (A) gives them allowance to do that option, (X) and (D) removes the option.
I ran into this same issue myself when I set it up and had to do testing as a non-admin to see what was going on for them. I read this thread to find out how to correct it, but the individual who noted it previously in the thread did not really give clearcut instructions as I hope I have above.
not sure why, but I don't have this in the permissions section. only admin can view the maps.
I've uninstalled and reinstalled several times. is there an easy way to fix this ?
thanks
-Ron
Quote from: countludwig on May 21, 2005, 08:40:52 PM
Quote from: Miraenda on March 26, 2005, 03:07:23 PM
This is due to the settings for the individual groups. You would need to do the following:
1. Log into the Admin area on your forum.
2. Click "Edit Permissions" under Member Controls
3. Click each group you would like to be able to see the map in the "Permissions by Membergroup" listing by clicking the "Modify" link to the right of that group.
4. There is a section called "View and edit pins on the member map" now and you have options you can set. (A) gives them allowance to do that option, (X) and (D) removes the option.
I ran into this same issue myself when I set it up and had to do testing as a non-admin to see what was going on for them. I read this thread to find out how to correct it, but the individual who noted it previously in the thread did not really give clearcut instructions as I hope I have above.
not sure why, but I don't have this in the permissions section. only admin can view the maps.
I've uninstalled and reinstalled several times. is there an easy way to fix this ?
thanks
-Ron
In "$sourcedir/ManagePermissions.php" find the following code
'send_mail' => false,
after it add this
'membermap' => array(
'membermap_view' => false,
'membermap_edit' => false,
Is there any simple way, to restrict the ip2flag one the whos online section only to administrators to see ?
thanks !
im a little lost here.. wasnt able to read the entire thread from page 2 till here.
pls confirm.. this "location mod" cant be used with "smf 1.0.3"???
thank you.
~guilliam~
of course it can... I have it installed on 4 sites running 1.0.3
I have tried to download the map pack several times with no luck. It shows up as an empty file.
Any help would be appreciated
I have the same problem here, i unzip the additional maps folder but its empty, can anybody help?
So I ftp'd the mod to the packages folder and it will not unzip. Do I need to put the mod in manually is that the only way it will work?
I am running the latest SMF beta.
:)
Quote from: Kindred on May 30, 2005, 08:15:02 AM
of course it can... I have it installed on 4 sites running 1.0.3
which version are you running with 1.0.3 ???
ok i read through most of the 28 pages and couldnt find what i was looking for so here goes, i installed the mod via package manager and got this
Installing this package will perform the following actions:
Type Action Description
1. Extract Tree ./Themes/default/images/flags
2. Extract Tree ./Themes/default/images/maps
3. Extract File ./Themes/default/images/english/mm.gif
4. Extract File ./Sources/MemberMap.php
5. Extract File ./Themes/default/MemberMap.template.php
6. Execute Modification index.php Success
7. Execute Modification ./Sources/Display.php Success
8. Execute Modification ./Sources/Load.php Success
9. Execute Modification ./Sources/ManageMembers.php Success
10. Execute Modification ./Sources/ManagePermissions.php Success
11. Execute Modification ./Sources/Subs.php Success
12. Execute Modification ./Themes/default/languages/Modifications.english.php Success
13. Execute Modification ./Themes/default/Display.template.php Success
14. Execute Modification ./Themes/default/index.template.php Success
15. Execute Modification ./Themes/default/script.js Success
16. Execute Code install.php
is this correct or should i be seeing success across the board?
Great mod ...
only had to edit the index.php ... everything else seems to have happened as it should have ...
thankyou
How do you add one extra map to this mod? I need the state of Florida.
Quote from: rotor on June 02, 2005, 12:48:24 AM
Quote from: Kindred on May 30, 2005, 08:15:02 AM
of course it can... I have it installed on 4 sites running 1.0.3
which version are you running with 1.0.3 ???
I am running v1.1.1 of the location mod...
How about an uninstaller for this thing? I installed mine, tried to ad maps, messed it up, and can't uninstall it. Ug.
Ok, I think there is one but SMF doesn't recognize it anymore. WHY ARE INSTALLING MODS SUCH A PAIN??!! Boardmod was so much easier.
I have read all 29 pages in this thread and only found a couple of references to this error that I keep getting.
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I have attempted to download and install "Locationmod" from the Package manager and through upload from my hd and while I get "package successfully downloaded/uploaded it's when I hit apply the error occurs.
I have upgraded to SMF v1.0.4 and wonder if that is the reason?
Mods that are running successfully:Buddy List
Experience Bar
Online Users Today
Now Playing
Quote from: Anz on June 10, 2005, 07:08:29 PM
I have read all 29 pages in this thread and only found a couple of references to this error that I keep getting.
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
....
I have upgraded to SMF v1.0.4 and wonder if that is the reason?
Mods that are running successfully:
Ditto on the no go with SMF v1.0.4. I had installed it on another set under 1.0.3 THEN upgraded later and the mod works fine. But the current site I am trying this on started at SMF v1.0.4 and it is giving me the same error message you have above.
Is there anyway to back SMF out to 1.0.3 to do the install and then move back to 1.0.4?
I am currently running 1.0.4, and this mod is working fine for me. although i had installed it while i was still using 1.0.3. were the code changes that severe?
I can't install it on new 1.0.4
but works on 1.0.3 + upgrade to 1.0.4
If you can't get it installed through the package manager you can try downloading from the mod site it to your computer and then uploading it through the package manager.
Quote from: ivo2296 on June 11, 2005, 10:45:10 PM
I can't install it on new 1.0.4
but works on 1.0.3 + upgrade to 1.0.4
package info XML files in the zips need to be edited for 1.0.4
Thanks i have installed it but only the admins can see it - for the other users shows:
An Error Has Occurred!
You cannot view the member map.
But there is nothing in errors log of the forum.
you have to set their permissions so that they can see and add pins...
Quote from: Kindred on June 13, 2005, 10:28:45 PM
you have to set their permissions so that they can see and add pins...
Thanks a lot , just now i saw that .
Quote from: oscar2001 on June 13, 2005, 07:18:19 AM
Quote from: ivo2296 on June 11, 2005, 10:45:10 PM
I can't install it on new 1.0.4
but works on 1.0.3 + upgrade to 1.0.4
package info XML files in the zips need to be edited for 1.0.4
Unzip the file locally then open up the file package-info.xml and find this line (it is near the top of the file)
Quote
<install for="1.0, 1.0.1, 1.0.2, 1.0.3">
and add 1.0.4 to it
Quote
<install for="1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4">
resave it as an .xml file. Rezip all of the files in that directory. Then install your modified version of the package.
Good luck!
First, yeah, adding ", 1.0.4" to the three spots in the install file fixed that for me with 1.0.4
Love the mod too, it's great.. Now, for my own question.. ;)
Is there any "trick" to having it run through the current user information in the database and automatically add initial pins for everyone?
Thanks rjoe - worked a treat ;)
Cheers,
Anz
My location mod has a small problem where it isn't counting the amount of users that are on the location mod right. When there are 3 users it says 4 and so on...I've been trying to uninstall it and then re install it but when attempting to uninstall it, I get
"This package cannot be uninstalled, because there is no uninstaller!"
any ideas?
Quote from: Irakli on June 17, 2005, 08:40:17 PM
My location mod has a small problem where it isn't counting the amount of users that are on the location mod right. When there are 3 users it says 4 and so on...I've been trying to uninstall it and then re install it but when attempting to uninstall it, I get
"This package cannot be uninstalled, because there is no uninstaller!"
any ideas?
Post merged with the appropriate topic.
-Dan The Man
I just realized that after installing the location mod that I and my other admin can view the map, but noone else can. It tells them "You cannot view the member map." I have looked all over to see if they have to have permission to view the map, but I cannot find anything other then loading other maps. Im I overlooking something?
Quote from: jmphillippi on June 18, 2005, 12:47:44 AM
I just realized that after installing the location mod that I and my other admin can view the map, but noone else can. It tells them "You cannot view the member map." I have looked all over to see if they have to have permission to view the map, but I cannot find anything other then loading other maps. Im I overlooking something?
Post merged with the appropriate topic.
-Dan The Man
Quote from: jmphillippi on June 18, 2005, 12:47:44 AM
I just realized that after installing the location mod that I and my other admin can view the map, but noone else can. It tells them "You cannot view the member map." I have looked all over to see if they have to have permission to view the map, but I cannot find anything other then loading other maps. Im I overlooking something?
have you tried going into the permissions area? it's usually in there... it wont actually be in the member map section in admin
There was nothing for any location in permissions at all. I looked under admin and it has member map section but it doesnt say anything about letting anyone view it or not.
so you don't see anything like this then??
does anyone know if this works in 1.1beta3, i tried editing the "install for" thing but it still didn't work, i got failures for managemembers and another file that i can't remember right now...
That is weird. I dont have that section at all. It goes from Personal messaging to member profiles! Maybe I will uninstall and then reinstall...
ok I wont uninstall. There isnt an option to. Only list files and delete.
what version are you running??
1.0.4, 1.0.3, 1.1 beta 2 or 1.1 beta 3?
SMF 1.0.4 and location mod 1.1.1
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.
When i download the package via the Admin or upload it myself, i then click on install and it just says there are no actions defined for instal (in spanish)l. Weard. I use spanish version templates. But still it should show the commands tor list the files before install. When i click on list files it gives this error:
2: file_exists(): open_basedir restriction in effect. File(/flags/ad.png) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.com/httpdocs:/tmp)
temp directory with files is created. Also on the list mods after i try all that i dont have any more install option, just List Files link.
yes.. for some reason, the install option is only present immediately after downloading the package...
Also, that "no action defined" message is because you are running 1.0.4 or 1.0.5 and the mod has not been updated for those versions of SMF yet.... (open the ZIP and moidy the XML file <install for="1.0.3"> (add , 1.0.4, 1.0.5)
Quote from: Kindred on June 24, 2005, 07:42:59 AM
yes.. for some reason, the install option is only present immediately after downloading the package...
Also, that "no action defined" message is because you are running 1.0.4 or 1.0.5 and the mod has not been updated for those versions of SMF yet.... (open the ZIP and moidy the XML file <install for="1.0.3"> (add , 1.0.4, 1.0.5)
I did that, and it worked, it seem it wants to instal know, but it says this error:
mkdir(/home/httpd/vhosts/mydomain.com/httpdocs/forum/Packages/temp/gobalopper.locationmod/flags/): No such file or directory
The temp file is created with all files from the Mod, but there is no globalopper.locationmod folder so thats why the error. I dont know why it tries to create another folder all folder and files are already inside Temp after i hit install. If seems the the script cannot create the folder. The packages folder has 777 as permission. Maybe its related to the same error i get when i hit List Files instead of install, i notice i had the same problem with Online Users today Mod, so i think its with all mods.
The error i think is related
2: file_exists(): open_basedir restriction in effect. File(/flags/ad.png) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.com/httpdocs:/tmp)
any idea when this mod will be updated for 1.0.5?
and where are the instructions?
Quote from: Northerner on June 26, 2005, 04:15:20 PM
any idea when this mod will be updated for 1.0.5?
and where are the instructions?
(open the ZIP and moidy the XML file <install for="1.0.3"> (add , 1.0.4, 1.0.5)
anyone have any idea if this will work in 1.1 beta 3 public :)
not managed to get it to work for 1.1 Beta 3 myself. I love this mod so hopefully it will get updated
i hope it's soon... i'm not upgrading from 1.1 beta 2 until this is upgraded cause it's my members favourity feature and i don't want them to lose it again..... last time it disappeared it took my 6 months to get it back :S
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 see one change in SMF 1.1 beta 3p the following code is no more in "$sourcedir/ManageMembers.php"
// Delete the moderator positions.
db_query("
DELETE FROM {$db_prefix}moderators
WHERE ID_MEMBER $condition", __FILE__, __LINE__);
In absence of the above code need to know where to add the following code
// Delete the pin.
db_query("
DELETE FROM {$db_prefix}mm_pins
WHERE ID_MEMBER $condition", __FILE__, __LINE__);
It might be found in Subs-Members.php.
-[Unknown]
Trying to install compiled version of this mod I get the following error.
An Error Has Occurred!
Hacking attempt...
edited: forgot to mention SMF 1.1 beta 3 public
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__);
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 (http://www.protechsystems.us/smf11b3/index.php)
test/test
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!!
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 (http://www.protechsystems.us/smf11b3/index.php)
test/test
Could you tell me how to install it on classic theme of 1.1 beta pls?
*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*
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
the additional maps link isnt working :(
it downloads with nothing in it :S
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.
must've been... it's working now thanks :)
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 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
You can use any HTML editor to edit it ... you can even use notepad!
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
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.
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.
So tell me, will this thing work on any theme using 1.0.5? If not, what are approved for it?
@gobal ip2country works not with AOL EU ...
AOL Europe has its own IP-Range, but ip2country says US ...
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?
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 :(
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)
Quote from: giba_choo on July 21, 2005, 11:21:47 PM
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 :(
http://www.simplemachines.org/community/index.php?topic=20168.msg299034#msg299034
Thanks for that Aravot. I thought that the author had abandoned the mod, and no one else was working on it.
I have another few problems. I am using the Aquasoft theme. It had no script.js file, so I just copied the one from the default theme after I had installed the mod. That fixed the pin placement. But the flag isn't appearing on the postindex. What file will I have to change for that to come into effect?
display.template.php
Ok thanks, I can do that by myself.
But, I have one final question. Why doesn't the member map allow access for members or moderators, only admins?
Sorry once again. I worked it out by myself :D
giba...
please don't double post like that. If you have an additional comment to add (especially before someone else posts), just use the modify button...
OK. Point taken :D
I can ask another question right? ;) I checked the display template, and all is in order. I checked that the flag code was in the display template, and it was. What is preventing the flag from showing underneath usernames?
maybe your theme uses a different display.template.php?
I fixed it finally. Thanks for your patience Kindred
Would it be possible to answer my question?
http://www.simplemachines.org/community/index.php?topic=20168.msg309801#msg309801
You will need to resize the map to zoom in for it to be larger keeping it to scale (so you don't have to bother with recoordinating everything), then change the scale variable in the code per this:
-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.
Hi,
Quote
change the scale variable in the code per this
That's the part I don't get. How do I know what scale to pick for what measurements?
Hi all,
Here is the modification I made in the install.xml to have the mod in french.
It all went fine. Great Job to the developpers.
Hope it helps someone.
Ciao
<file name="$languagedir/Modifications.french.php">
<operation>
<search position="replace"><![CDATA[Modifications]]></search>
<add><![CDATA[Modifications
// MM - Text
$txt['mm_mm'] = 'Carte des membres';
$txt['mm_place_pin'] = 'Mettre votre position';
$txt['mm_view'] = 'Voir';
$txt['mm_click_highlight'] = 'Cliquez pour selectionner un position';
$txt['mm_city'] = 'Ville';
$txt['mm_user_listing'] = 'List des utilisateurs';
$txt['mm_savepin'] = 'Enregistrer position';
$txt['mm_removepin'] = 'Effacer position';
// MM - Admin Text
$txt['mm_id'] = 'ID';
$txt['mm_image'] = 'Image';
$txt['mm_name'] = 'Nom';
$txt['mm_xstart'] = 'xDebut';
$txt['mm_xend'] = 'xFin';
$txt['mm_ystart'] = 'yDebut';
$txt['mm_yend'] = 'yFin';
$txt['mm_scale'] = 'Echelle';
$txt['mm_visible'] = 'Visible?';
$txt['mm_which_default'] = 'Quel carte voulez vous par defaut?';
$txt['mm_current_maps'] = 'Cartes disponibles';
// MM - Errors
$txt['mm_error_placepin'] = 'Vous devez cliquer qq part pour placer votre position.';
$txt['mm_error_coordinates'] = 'Erreur avec les coordonnes. Essaie encore et soit sur que ta position est sur la carte.';
$txt['mm_error_nomaps'] = 'Il n y a aucune carte disponible';
// MM - Permission Errors
$txt['cannot_membermap_view'] = 'Vous ne pouvez pas voir la carte des membres.';
$txt['cannot_membermap_edit'] = 'Vous ne pouvez pas editer la carte des membres.';
// MM - Permissions
$txt['permissiongroup_membermap'] = 'Voir et editer des positions sur la carte.';
$txt['permissionname_membermap_view'] = 'Voir des positions sur la carte.';
$txt['permissionname_membermap_edit'] = 'Editer des positions sur la carte.';
// MM - Who's Online
$txt['whoall_mm'] = 'Voir la carte des membres.';]]></add>
</operation>
</file>
I've a quick question. I know there are other maps besides the main world map. Is it possible to have them included with the mod via the Package Manager so that they're installed when we use the Package Manager to install the mod? Additionally, with SMF 1.1 around the corner will this mod be updated for compatibility with 1.1 and if so, will the other maps be included for that?
An update for 1.1 was already provided:
http://www.simplemachines.org/community/index.php?topic=20168.msg299034#msg299034
It isn't on the mod site, though, you have to download the files in that post. I used this for my forum and it works fine for 1.1 Beta 3.
Miraenda, does the update cover the feature I asked about? Just curious because although I don't have 1.1 yet, I'm waiting for it to get out of beta and then David is going to install it for me since it'll be a manual installation, I want to be sure for when I do get 1.1.
Hi there,
Hope this isnt a stupid question, have checked through the last few pages but cant see an answer.
-Recently upgraded to SMF 1.0.5
-Had to re-install the Location Mod
-Edited the .xml file so it would install through the package manager
-Package manager showed no errors
Now when I try and access the member map, I get this error
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
File: /www/t/totalcarlton/htdocs/forums/Sources/MemberMap.php
Line: 101
My board is at http://www.totalcarlton.com/forums
It worked fine before the upgrade.
Any help? :(
EDITDont worry! Im an idiot! ::) Id forgotten to re-install the "additional maps" Mod at the same time!
All sweet and dandy now :D
Quote from: Miraenda on July 27, 2005, 03:26:40 PM
An update for 1.1 was already provided:
http://www.simplemachines.org/community/index.php?topic=20168.msg299034#msg299034
It isn't on the mod site, though, you have to download the files in that post. I used this for my forum and it works fine for 1.1 Beta 3.
Hi.
I know my vision is not that good any more now that I am so old, but I don't seem to find those files any more, did they get removed, or am I just blind? :)
Hi, my SMF is 1.0.5.
I tryed to install it via cpanel but it is impossible.
I uploaded it to the server via cpanel then when I click on apply mode it comes this error
2: mkdir(xxx\forum/Packages/temp/gobalopper.locationmod/flags/): No such file or directory
File: xxx\forum\Sources\Subs-Package.php
Line: 413
I have tried everything I could!
But I can not so much :-\
Was trying to make it by hand, but I do not understand the steps, for example how to create new tables.
Plus i keep trying to chmod 777 and it keeps comming back to 644.
any idea of how to solve this?
Thanks!
Quote from: 1948Pal on July 28, 2005, 10:46:33 AM
Quote from: Miraenda on July 27, 2005, 03:26:40 PM
An update for 1.1 was already provided:
http://www.simplemachines.org/community/index.php?topic=20168.msg299034#msg299034
It isn't on the mod site, though, you have to download the files in that post. I used this for my forum and it works fine for 1.1 Beta 3.
Hi.
I know my vision is not that good any more now that I am so old, but I don't seem to find those files any more, did they get removed, or am I just blind? :)
the files are there... but you have to be logged in to see attachments.
Quote from: 1948Pal on July 28, 2005, 10:46:33 AM
Quote from: Miraenda on July 27, 2005, 03:26:40 PM
An update for 1.1 was already provided:
http://www.simplemachines.org/community/index.php?topic=20168.msg299034#msg299034
It isn't on the mod site, though, you have to download the files in that post. I used this for my forum and it works fine for 1.1 Beta 3.
Hi.
I know my vision is not that good any more now that I am so old, but I don't seem to find those files any more, did they get removed, or am I just blind? :)
I see the files at the bottom of his post there, there are 3 of them...
Sorry, my session must've expired by the time I got to that post. I see the files now. Thanks.
When I try to download the additional maps for 1.1b3 it gives my a file that's 0KB... Anybody have an alternative address?
Roger
There are some bugs with opera / mozilla browsers, and there are some bugs with code, but once i finally made it work, i can say that I'm very satisfied with it...
how i can uninstall this?there is uninstall.php but nothing in package manager
Ok I've posted a new version. I don't remember if it has new features or bug fixes as its been a while since the last release. :)
This new one will only work with 1.1 Beta 3 Public.
I have some ideas for a new version but it will likely be a lot of work and I won't have time to even think about starting that until the fall.
hello plaease anyone.
how ic an nistall it?need help
If you're considering a new version, can I make some suggestions for it?
Here goes anyway:
- Other regional map splits, e.g: SE Asia; Indian Sub-Continent; Middle East, etc.
- Major city names on the maps?
- Location flag showing city and country
- Location from the profile to be nationality
- Current location if different from nationality - basically, I'm from here, but now I'm there. Picking this from the logged in IP would be one possibility, but you don;t necessarily want to track people as the log in while travelling on holiday, so i'm thinking more of ex-pat workers or emigrants.
I'm using the map on SMF 1.0.5 - very nice mod.
Mike
Quote from: mpetrie on August 04, 2005, 06:03:26 AM
If you're considering a new version, can I make some suggestions for it?
Here goes anyway:
- Other regional map splits, e.g: SE Asia; Indian Sub-Continent; Middle East, etc.
- Major city names on the maps?
- Location flag showing city and country
- Location from the profile to be nationality
- Current location if different from nationality - basically, I'm from here, but now I'm there. Picking this from the logged in IP would be one possibility, but you don;t necessarily want to track people as the log in while travelling on holiday, so i'm thinking more of ex-pat workers or emigrants.
I'm using the map on SMF 1.0.5 - very nice mod.
Mike
Those are some good ideas, kinda wish I thought of some of them. I especially like the first two and the last one. There's already a flag for the country and I don't understand why you'd want a flag for a city...to my knowledge cities don't have their own flags but in the US states do. I also think that'd be hard to get and implement even if you did provincial/state flags. Country flags seem to be sufficient but the other ideas are nice.
¨Hi !
I tryed to mod it manually but I got this error:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in XXX\Themes\default\index.template.php on line 453
What I have in line 453 is the text I copied from the changes according to the install.xml file:
<a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="' . $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
It really looks diferent in colours (wich I think means something is wrong) but I don´t figure WHAT...
Could u please help?
Thanks
I don´t know if what I did was right but at least it made my forum come alive again.
I noticed that there was one
echo'
than it acame a comment
//
than another
echo'
So I deleted the second one and added it between the next two lines.
:)
It appeared a link to member map by the menu, but when I clicked in it it said that it could not find the files membermap.php and membermap template.
I checked and it was really not there, so I upploaded them to the source directory.
Now I get this: An Error Has Occurred!
Unable to load the 'MemberMap' template.
Could anyone give me any advice please? I am so excited to start using this mod. It is maybe the 23rd time I try it :) But now it looks like something is happening :)
Thanxz!
More errors:
Everybody (including myself) that tryes to read their Personal Messages get this error.
Database Error
Table '5051-1.smf1_mm_pins' doesn't exist
XXX\forum\Sources\Load.php
Line: 475
Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.
AND:
Template Parse Error!
There was a problem loading the \Themes\default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP
***It looks like it should have created a table but I don´t know wich are the parameters to use. Once again I have to ask - Can someone help me to fix this? :-[
You should be running SMF 1.1 Beta 3 Public for this verison of the mod. What version are you running?
Hello,
I've tried this a few times and can't seem to get it to work. I'm currently running 1.0.5 and have modified the XML to install on this version but still get version incompatibilities. Is there an archive of older mods which will work with this version or am I stuck having to upgrade to a newer version of SMF? Getting the:
9. Execute Modification ./Sources/Load.php Failure
10. Execute Modification ./Sources/Subs-Members.php File not found
11. Execute Modification ./Sources/ManagePermissions.php Success
12. Execute Modification ./Sources/Subs.php Failure
*edit*
Ok, I've given up on getting it to work with 1.0.5 and upgraded. I completely wiped board, reinstalled 1.0.5 and upgraded to beta 1.1b3. Installs for all 3 packages went perfectly but now whenever I click on the Membermap button the index page just reloads without loading the membermap. I've completly restarted all IE instances to clear caches, etc. Anyone have ideas?
I am running 1.0.5...
I´ll try to update it.
This is an amazing mod, great job :) My members and I really like this.
Does this mod display a flag under the poster's name in posts also ie where the avatar, karma, no. of posts etc are displayed.
If so, then mine isn't doing that :(
Also some members seem to have problems placing a pin on the map and getting it to work?
Further back in this thread someone mentions how to place the pin. But, I'll re-iterate.
People must go into the Member Map. There you will see in bold black letters, "PLACE YOUR PIN." Click that.
Now, the page will refresh/reload and you'll be able to place your pin anywhere on the map. After you place the pin, type in your City in the appropriate white space and then choose your Country from the list.
Now, click on the button that says "Save My Pin."
If you do this in the wrong order it won't work. To my knowledge you place the pin first and then do City and Country. But, doublecheck that because it has been ages since I've placed my pin. If it doesn't work in this order, do your City and Country first and then place your pin. Hope this helps.
Tau Online, I see you have a Tau/40k forum. You may want to check mine out too. We cover 40k but we do a lot of other gaming. Fantasy, the other GW games, Mongoose Publishing (aka Starship Troopers), Warmachine, and a lot of others. You may get some fun ideas and we could always swap links. PM me here and we'll talk. :)
Quote from: ^Raven^ on August 11, 2005, 02:14:29 PM
Further back in this thread someone mentions how to place the pin. But, I'll re-iterate.
People must go into the Member Map. There you will see in bold black letters, "PLACE YOUR PIN." Click that.
Now, the page will refresh/reload and you'll be able to place your pin anywhere on the map. After you place the pin, type in your City in the appropriate white space and then choose your Country from the list.
Now, click on the button that says "Save My Pin."
If you do this in the wrong order it won't work. To my knowledge you place the pin first and then do City and Country. But, doublecheck that because it has been ages since I've placed my pin. If it doesn't work in this order, do your City and Country first and then place your pin. Hope this helps.
Tau Online, I see you have a Tau/40k forum. You may want to check mine out too. We cover 40k but we do a lot of other gaming. Fantasy, the other GW games, Mongoose Publishing (aka Starship Troopers), Warmachine, and a lot of others. You may get some fun ideas and we could always swap links. PM me here and we'll talk. :)
Thanks, I have given instructions to that effect to my members and it still doesn't allow them to do it.
I have mine in place but I don't see a flag next to my posts, is this meant to happen? I am trying to ascertain if there is something wrong with it or if I am expecting it to do something that it is not supposed to do.
If I click on the 'who's online' I see flags next to people, including guests, so that does not seem to be related to the member map?
thanks
A flag is supposed to show under your avatar when you post for the country you do. Are you certain they're following the instructions exactly? Have they tried doing their City and Country before placing the pin? Have they tried doing it after placing the pin? Are you using SMF 1.0.5 or 1.1? I know the mod has been updated and made different for 1.1 so it may require different steps.
hmmm I'm using 1.1 beta.
I managed to get my pin to work on the member map but nothing displays next to my posts.
Someone installed it for me, maybe I should try installing it again?
Quote from: elliel on August 12, 2005, 07:32:38 AM
hmmm I'm using 1.1 beta.
I managed to get my pin to work on the member map but nothing displays next to my posts.
Someone installed it for me, maybe I should try installing it again?
I've found it only works for non-staff members. The place modified in Display.template.php to display the flag will only display the flag for non-staff members AFAIK.
See if it works with normal members.
That's odd, it displays for me and I'm the owner and an admin on my forum. I know it displays, also, for people who are not mods or anything.
works for me also and I'm staff...for normal members too
ps-1.1b3
Hello,
is there any other solve for this Location Mod based on City Codes from the Memberprofil like this for phpBB ?
http://www.phpbb.de/map.php?mode=applet
Regards
it's not displaying under anyone's avatar for anyone, admin, or otherwise. some people have managed to get it to work in the member map area, so you can see maybe half a dozen people with flags there, but even those, do not show under the avatar.
Quote from: elliel on August 12, 2005, 08:21:03 PM
it's not displaying under anyone's avatar for anyone, admin, or otherwise. some people have managed to get it to work in the member map area, so you can see maybe half a dozen people with flags there, but even those, do not show under the avatar.
edit display.template.php
Anyway, in my forum with the 1.1 public beta version I get about 12 of this error in the forum error log every time I go to the member map admin:
8: Undefined index: mm_default
File: /home/u1/libo/html/Themes/default/Admin.template.php (eval?)
Line: 212
How fix?
On the Membermap.template.php where the problem prolly comes from, the line is this:
<option value="', $map['ID_MAP'], '"', $map['ID_MAP'] == $modSettings['mm_default'] ? 'selected="selected"' : '', '>', $map['mapName'], '</option>';
um if I am supposed to edit the display template, then can someone tell me what I am supposed to put there to make it work?
I don't want to mess it up and create errors
I just installed the Location Mod on my 1.1 beta3 SMF, Works Great!
I have been missing this feature since I upgraded, all the data was right where we left it...
GREAT JOB guys!
Hi I am trying to install gobalopper-1.locationmod.whoflags.zip
Running
MK Portal M1.0
SMF 1.1 Beta Public 3
Helios Multi 11
gobalopper-1.locationmod.zip & gobalopper-1.locationmod.additionalmaps.zip
Both installed all OK
But the who flags install test gives me an error
Error with Package Install
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
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
Any ideas?
hi!
i love this mod. it looks great. however, i'm using SMF 1.0.5
can you make it compatible for 1.0.5? PLEASE!!!
Yes, I also use 1.0.5. I would love to use it too!!
Im getting this error on install using SMF beta public. Everything says successful, but when I attempt to install, it gives me this.... :(
QuoteColumn count doesn't match value count at row 1
File: /XXXXXX/XXXXXX/public_html/forum/Packages/temp/install.php
Line: 45
Quote from: malinaobenny on August 22, 2005, 02:08:50 AM
hi!
i love this mod. it looks great. however, i'm using SMF 1.0.5
can you make it compatible for 1.0.5? PLEASE!!!
There is a 1.05 version :)
really? :D where is the 1.0.5 version of this mod?
This error can be removed quite simply in SMF1.1B3P
8: Undefined index: mm_default
File: /home/u1/libo/html/Themes/default/Admin.template.php (eval?)
Line: 212
Go to Admin, click membermap, click save
That forces it to set 'mm_default' which did not have a default value from install.
I read everything here and no one had answers, I had 8 pages of those errors so I looked in the code.
The above worked for me.
awesome thanks a bunch
Has anyone made a zoomable by click map?
I can see a few ways to do one.
One could compute mouse position of the click and lookup the availiable maps to see if it is inside any of them. If so change to that map. If not perhaps change the map scale centered at that location?
I will need to read the code in detail to see if scale zoom is doable.
Also a possible problem is dense pins may prevent zoom function. Then need to add a zoom button so it overides pins for this. Or could use right click for those who have it.
Someone could also generate the HTML map codes that define countries and add that to the generated pages. Once more this could be autogenerated by using the database of map locations to define the click boxes.
<map name= "something">
<area href="countrymaplink" hidden=true shape="polygon" coords="363, 245, 377, 236, 351, 234">
</map>
of course rectange is easier
yes, someone has. in one of the earlier posts. Its based on google maps though...
QuoteColumn count doesn't match value count at row 1
File: /home/shoyorol/public_html/forum/Packages/temp/install.php
Line: 45
Anyone on this error?
SMF 1.1 public beta 3 MKP 1.0 Helios Multi 11
Not sure whats changed but member map still works and shows flags but clicking on "users online" from the forum front page gives me this error
" Not unique table/alias: 'ip2c'
File: /homepages/35/d129670262/htdocs/forum/Sources/Who.php
Line: 106"
Line 106
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
AnyBody Help Please?
Can someone please tell me which files need to be writable to install the Location Mod?
I don't want to chmod EVERYTHING to 777.
Thx.
That is in the second post of this thread. :P
voila! 'must be blind! Thanks.
Quote from: beemer on September 04, 2005, 04:53:29 PMSMF 1.1 public beta 3 MKP 1.0 Helios Multi 11
Not sure whats changed but member map still works and shows flags but clicking on "users online" from the forum front page gives me this error
" Not unique table/alias: 'ip2c'
File: /homepages/35/d129670262/htdocs/forum/Sources/Who.php
Line: 106"
Line 106
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
AnyBody Help Please?
I'm thinking that MySQL query has lines duplicated. Can you cut and paste the entire thing?
Quote from: trenchteam on August 30, 2005, 09:50:19 PMQuoteColumn count doesn't match value count at row 1
File: /home/shoyorol/public_html/forum/Packages/temp/install.php
Line: 45
Anyone on this error?
You can try running this query first:
ALTER TABLE smf_mm_maps ADD COLUMN visible TINYINT(1) NOT NULL default '1'
Just replace the smf_ with whatever prefix you use, by default it is smf_ though.
Quote from: Tripp on August 23, 2005, 03:44:29 PM
Yes, I also use 1.0.5. I would love to use it too!!
Did anyone ever answer of how to get the mod for 1.0.5? Thanks!
I think this is the old version...
Quote from: Gobalopper on September 06, 2005, 09:25:42 PM
Quote from: trenchteam on August 30, 2005, 09:50:19 PMQuoteColumn count doesn't match value count at row 1
File: /home/shoyorol/public_html/forum/Packages/temp/install.php
Line: 45
Anyone on this error?
You can try running this query first:
ALTER TABLE smf_mm_maps ADD COLUMN visible TINYINT(1) NOT NULL default '1'
Just replace the smf_ with whatever prefix you use, by default it is smf_ though.
Haha! Yes, that did it!!! SWEET!
Awsome mod! Installed it last night and am extremely happy!!!
Saw this iin another post, that someone uploaded the new button for their theme and thought it was a good idea, so here it is. I am using blue_jeans theme and here is the button I made for it.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.northeastatvers.com%2Fforum%2FThemes%2Fblue_jeans11%2Fimages%2Fenglish%2Fmm.gif&hash=8c2e5c42aa9301796b376eff0bfd5b5c59cbf18d)
Hello,
Is it possible to assign the text and links its own class in the CSS file? For example, the "Place Your Pin" link and the "User Listing: " portions - I want to assign its own color. If so, where can that be done at? See, I'm using a black background, but the tables and whatnot for the forum are white with black text. So, these portions I'm refering to are also black on a black background.
Thank you.
Very nice mod :)
Quote from: elliel on August 15, 2005, 06:42:41 AM
um if I am supposed to edit the display template, then can someone tell me what I am supposed to put there to make it work?
I don't want to mess it up and create errors
this still doesnt work for me on the beta version?
I also checked on the default theme since I am using another theme but it also does not show up the flag on the posts on the default theme either... so I gave up on it
It seems a pity to have the mod but not have it working so I'm trying again. Can anyone tell me what I have to do to get this to show up on posts?
Thanks
Hi All New Problem :-X
some users can, some users can't :(
members are in the same group and some see a map and some see a black hole
some have moved there pin then lost it?
refresh makes no difference - any ideas
http://www.bmw7resource.co.uk/forum/index.php (http://www.bmw7resource.co.uk/forum/index.php)
Globalopper you were right I fixed this one thx
Quote from: Gobalopper on September 06, 2005, 09:22:44 PM
Quote from: beemer on September 04, 2005, 04:53:29 PMSMF 1.1 public beta 3 MKP 1.0 Helios Multi 11
Not sure whats changed but member map still works and shows flags but clicking on "users online" from the forum front page gives me this error
" Not unique table/alias: 'ip2c'
File: /homepages/35/d129670262/htdocs/forum/Sources/Who.php
Line: 106"
Line 106
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
AnyBody Help Please?
I'm thinking that MySQL query has lines duplicated. Can you cut and paste the entire thing?
Quote from: elliel on September 13, 2005, 02:51:23 PM
Quote from: elliel on August 15, 2005, 06:42:41 AM
um if I am supposed to edit the display template, then can someone tell me what I am supposed to put there to make it work?
I don't want to mess it up and create errors
this still doesnt work for me on the beta version?
I also checked on the default theme since I am using another theme but it also does not show up the flag on the posts on the default theme either... so I gave up on it
It seems a pity to have the mod but not have it working so I'm trying again. Can anyone tell me what I have to do to get this to show up on posts?
Thanks
Has the Display.template.php in your default theme been updated (3 lines) by the installer?
The flags wont show if these lines are not there!
Search the file for the word flag if it dont find it it aint updated it ???
Quote from: beemer on September 13, 2005, 08:35:27 PM
Quote from: elliel on September 13, 2005, 02:51:23 PM
Quote from: elliel on August 15, 2005, 06:42:41 AM
um if I am supposed to edit the display template, then can someone tell me what I am supposed to put there to make it work?
I don't want to mess it up and create errors
this still doesnt work for me on the beta version?
I also checked on the default theme since I am using another theme but it also does not show up the flag on the posts on the default theme either... so I gave up on it
It seems a pity to have the mod but not have it working so I'm trying again. Can anyone tell me what I have to do to get this to show up on posts?
Thanks
Has the Display.template.php in your default theme been updated (3 lines) by the installer?
The flags wont show if these lines are not there!
Search the file for the word flag if it dont find it it aint updated it ???
hmmm I searched and no mention of the word 'flag' anywhere. I guess it hasn't worked :( although the member map seems to work *shrug*
Elliel
Open display.template from your them folder & Find the following
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
and add under
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';
hey! thanks for that. It worked a treat.
That was really helpful.
Now to go find more flags to sort out the UK members LOL
ok, i found on page 18 of this thread that someone attached some Uk flags ie scotland, wales etc and gave some instructions to do something in myphpadmin.... which I don't seem to have :(
The question I had was if this is meant to work with the member map then do I need to upload a special map or something that separates the individual countries in the UK and recognises them and applies the correct flag accordingly? So that members can be recognised as being in Scotland or wales etc instead of just the UK generally?
The Map I have in member map is just UK and Ireland so there is no division for scotland or wales, so how do I get it to recognise the separate countries and apply the flags?
anyone know what do to?
Me again
To have other flags ie welsh scots n irish
You need to add some entries to the table smf_location_country
I added a scottish entering eo as the c2code and the id_map as 6 (same as uk)
then copy the scottish flag into your flags folder namin it eo.gif
The when you go to the member map you can choose scotland and get the scottish flag ;)
Quote from: beemer on September 14, 2005, 03:27:59 PM
Me again
To have other flags ie welsh scots n irish
You need to add some entries to the table smf_location_country
I added a scottish entering eo as the c2code and the id_map as 6 (same as uk)
then copy the scottish flag into your flags folder namin it eo.gif
The when you go to the member map you can choose scotland and get the scottish flag ;)
which template are you talking about when you say to add stuff to the smf_location_country table?
no template - these are changes to the database (mysql phpmyadmin)
oh no, well I dont even know where to start with that LOL - I still have my 'L' plates on. I might just have to leave it alone for now in that case.
Hi there,
thank you very much for this mod!
I have tried to read the whole thread, but perhaps I was too quick and have missed something. Then it would be nice if someone could show me the proper post. ;)
If I haven't missed anything, I have some questions:
- Where did you get the maps? Which license do they have? Am I allowed to use them for other purposes?
- You are saving x and y coordinates, isn't it? Is it possible to computate longitude and latitude out of it or do you know the mathematical projection that was used for the map?
Thanks, Carsten2001
Quote from: Carsten2001 on September 16, 2005, 05:22:08 PM
Hi there,
thank you very much for this mod!
I have tried to read the whole thread, but perhaps I was too quick and have missed something. Then it would be nice if someone could show me the proper post. ;)
If I haven't missed anything, I have some questions:
- Where did you get the maps? Which license do they have? Am I allowed to use them for other purposes?
- You are saving x and y coordinates, isn't it? Is it possible to computate longitude and latitude out of it or do you know the mathematical projection that was used for the map?
Thanks, Carsten2001
maps are part of mod. It is additional maps thingy... I dunno about others..
I downloaded this file into the Package directory and it lists the file but there is no APPLY MOD.
Is there soemthing special I need ot apply this Mod?
Cheers
RJ
Hi! Is this MODs compatible with 1.0.5?
Tandiono
Quote from: tandiono on September 21, 2005, 06:07:15 AM
Hi! Is this MODs compatible with 1.0.5?
Tandiono
There is a 1.05 version a few pages back, the one on page 1 is for 1.1.3
Quote from: eye97 on September 19, 2005, 11:23:56 AM
I downloaded this file into the Package directory and it lists the file but there is no APPLY MOD.
Is there soemthing special I need ot apply this Mod?
Cheers
RJ
errr... delete it and maybe reupload throught the forum thing...
Err did that too but didnt work.
Quote from: eye97 on September 21, 2005, 08:26:24 AM
Err did that too but didnt work.
Charter member right = latest version probably not tested, might just be a case of updating the package-info.xml to include your version of smf ?
Hi! I can't see any flag of visitor :
http://hits.fm/index.php?action=who
Is there anyway that i can do? Thx
Quote from: beemer on September 21, 2005, 06:31:59 AM
Quote from: tandiono on September 21, 2005, 06:07:15 AM
Hi! Is this MODs compatible with 1.0.5?
Tandiono
There is a 1.05 version a few pages back, the one on page 1 is for 1.1.3
Just install it. Thanks
Quote from: tandiono on September 21, 2005, 01:57:21 PM
Hi! I can't see any flag of visitor :
http://hits.fm/index.php?action=who
Is there anyway that i can do? Thx
the ip location flags package..
Quote from: Libo on September 21, 2005, 05:58:38 PM
Quote from: tandiono on September 21, 2005, 01:57:21 PM
Hi! I can't see any flag of visitor :
http://hits.fm/index.php?action=who
Is there anyway that i can do? Thx
the ip location flags package..
I install that too.. Buth sigh can't see any flag in who :(
O yes. did u edit the who.template?
Btw when will this be updated for RC1?
Quote from: Libo on September 22, 2005, 07:25:30 AM
O yes. did u edit the who.template?
Btw when will this be updated for RC1?
no, is there any of the code that i need to edit?
Tandiono
Quote from: tandiono on September 22, 2005, 07:18:36 PM
Quote from: Libo on September 22, 2005, 07:25:30 AM
O yes. did u edit the who.template?
Btw when will this be updated for RC1?
no, is there any of the code that i need to edit?
Tandiono
See my post a few pages back, about adding 3 lines of code
Quote from: beemer on September 23, 2005, 04:14:33 AM
Quote from: tandiono on September 22, 2005, 07:18:36 PM
Quote from: Libo on September 22, 2005, 07:25:30 AM
O yes. did u edit the who.template?
Btw when will this be updated for RC1?
no, is there any of the code that i need to edit?
Tandiono
See my post a few pages back, about adding 3 lines of code
Hi! but this code is already on my line
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';
is there any other way?
If you can't see the flags then likely the images don't exist. Check the html output and see if anything is showing up there.
There is no install option in the package manager. ???
Quote from: Gobalopper on September 23, 2005, 02:22:12 PM
If you can't see the flags then likely the images don't exist. Check the html output and see if anything is showing up there.
Hi! can't find any, here's the code :
<tr class="windowbg">
<td width="25" align="center"></td>
<td>
<span>Guest</span>
</td>
<td nowrap="nowrap">September 22, 2005, 11:56:40 AM</td>
<td>Viewing the board index of <a href="http://hits.fm/index.php">Hits.FM ..:: Music Community ::..</a>.</td>
</tr>
<tr class="windowbg2">
<td width="25" align="center"></td>
<td>
<span>Guest</span>
</td>
and here's whois url : http://hits.fm/index.php?action=who
Is there anyway that i shoud do? Thanks
Hi all:
Is very very nice mod, but:
Anyone know how to install with 1.1rc1 ? ... Is compatible with 1.1rc1 ?
I uploaded with the packages manager and when I try to install it, say " No actions defined for this installation " ... :-[
many thanks in advance :D
maybe try editing the package_info.xml file. might or might not work..
I all slowley getting the few extras working with SMF 1.1 RC1 (Coppermine, FlashChat) and now trying to sort membermap
I've got it so the map appears when I click the link, and it lists all the names above the map with there flag, but all the dots which should be on the map are just in a line, and the page says done with errors..
Also flags aren't appearing under user names in posts..
Where should I be looking and what needs changing
thanks
The flags aren't appearing under the usernames because you have to add the flag code into the display.template of the theme you are using. Look in the default theme's display template and search for "flag". That should show you which code you need to put into your current theme.
Quote from: diegolyanky on September 27, 2005, 10:39:00 AM
Hi all:
Is very very nice mod, but:
Anyone know how to install with 1.1rc1 ? ... Is compatible with 1.1rc1 ?
I uploaded with the packages manager and when I try to install it, say " No actions defined for this installation " ... :-[
many thanks in advance :D
Hi, I think this should do the trick; download each package to your PC, unzip, open package-info.xml, locate the line that reads
<install for="1.1, 1.1 Beta 3 Public">
and change to
<install for="1.1, 1.1 Beta 3 Public, 1.1 RC1">
.
And the same for the line that read
<uninstall for="1.1, 1.1 Beta 3 Public">
and change it to
<uninstall for="1.1, 1.1 Beta 3 Public, 1.1 RC1">
.
Do this in each package, and if SMF code didn't change all that much for the files this mod touches, then it should just work. Good luck!
Quote from: giba_choo on September 27, 2005, 10:02:08 PM
The flags aren't appearing under the usernames because you have to add the flag code into the display.template of the theme you are using. Look in the default theme's display template and search for "flag". That should show you which code you need to put into your current theme.
Also the dots on the map, you just need to refresh your page.
Hi All
Just tried editing the xml file as above
Uploaded to PacMan tried to apply mods
/Sources/Load.php Test Failed
Any thoughts ???
Manually install the file.
:( oh dear this one isn't playing nice
uploaded the file manually....but when I click on the
map manager link or the map link I get
"Unable to load the 'main' template. "
Just had that with my themes in my test forum. Check the file sizes on the ones just uploaded. Bet there is one that is 0 bytes.
Will crying make it work :( :'(
Wel, finally got it installed and this is what I got for an error when I clicked on the member map button.
Quote from: Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
File: ***************/test_forum/Sources/MemberMap.php
Line: 101
and this error in the error log:
Quote from: Error Log
8: Undefined index: 10
File: ****************/test_forum/Sources/MemberMap.php
Line: 98
Guess I'll be waiting for confirmation that this mod is compatible with 1.1 RC1.
Update, I didn't have the additional maps installed and I think that is what generated the errors for some unknown reason. Once I installed the additional maps, I got no errors and everything worked fine! (The reason I needed them is I copied my current DB to and used it for the test forum, thus all the members that put the pins on were allready in that DB).
Bottom line, it works!!!!
Quote from: casper_shadowrider on January 14, 2005, 08:39:02 AM
I had been waiting for this, thank you.
I had not previously installed this mod, and the install of all 3 parts went fine, on a 1.0 install, using the package manager.
I had the cache problem, but once I cleared it, it all works great. Top mod.
Hi:
I don't know where can I clear the cache ( javascript cache ) ...
PLease, help me !
Many thanks in advance ;)
All sorted :) it was a case of some of the files not installing with the pacman, using my FTP prog could see which files were showing a size of 0 bytes and replaced manually
thanks for the help..now to start from fresh and make sure getting my 3 mods / add ons working on my test forum wasn't a fluke :)
Quote from: Gobalopper on September 06, 2005, 09:22:44 PM
Quote from: beemer on September 04, 2005, 04:53:29 PMSMF 1.1 public beta 3 MKP 1.0 Helios Multi 11
Not sure whats changed but member map still works and shows flags but clicking on "users online" from the forum front page gives me this error
" Not unique table/alias: 'ip2c'
File: /homepages/35/d129670262/htdocs/forum/Sources/Who.php
Line: 106"
Line 106
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
AnyBody Help Please?
I'm thinking that MySQL query has lines duplicated. Can you cut and paste the entire thing?
this is entire thing:
// 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)" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
list ($totalMembers) = mysql_fetch_row($request);
mysql_free_result($request);
// Prepare some page index variables.
$context['page_index'] = constructPageIndex($scripturl . '?action=who;sort=' . $context['sort_by'] . (isset($_REQUEST['asc']) ? ';asc' : ''), $_REQUEST['start'], $totalMembers, $modSettings['defaultMaxMembers']);
$context['start'] = $_REQUEST['start'];
// Look for people online, provided they don't mind if you see they are.
$request = db_query("
SELECT
(UNIX_TIMESTAMP(lo.logTime) - UNIX_TIMESTAMP() + " . time() . ") AS logTime,
lo.ID_MEMBER, lo.url, INET_NTOA(lo.ip) AS ip, mem.realName, lo.session,
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline, ip2c.c2code, lc.name, pin.country
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}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : '') . "
ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
LIMIT $context[start], $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
$context['members'] = array();
i have same error you can understand and fix it?
Are you sure you have that exact same error? Your code looks ok.
Hi,
I try to install it with SMF 1.0.3, i edited the xml file to allow install for this version, but when i apply the mod, i get a Syntax error on step 7 (apply the mod)
Hi!
I am anxious to run this mod!
I didn´t go so far yet :(
I installed it on my RC1 but when I run action=mm
All i get is a page with two buttons: save pin or remove pin and the list to choose the country, where all of them shows with a (0)
Under this it is just white page...
:-\
Quote from: Brasileira on October 09, 2005, 10:02:11 AM
Hi!
I am anxious to run this mod!
I didn´t go so far yet :(
I installed it on my RC1 but when I run action=mm
All i get is a page with two buttons: save pin or remove pin and the list to choose the country, where all of them shows with a (0)
Under this it is just white page...
:-\
Check that your maps were uploaded ok
& set permissions/default map in your admin cp
I just tried installing this mod - I got through everything - but when I tried loading...
index.php?action=mm
I got the error "unable to load main template."
Any help would be most appreciated!!!!
Thx
Think you will find you have sources/membermap.php 0 bytes & themes/membermap.template.php 0bytes ???????
reupload these two again & you should be OK
Quote from: beemer on October 09, 2005, 01:40:36 PM
Check that your maps were uploaded ok
& set permissions/default map in your admin cp
I don´t think I have a permissions/default map related to this on my CP.
The only thing I have is locationmod in the menu and the country to be chosen...
Quote from: beemer on October 09, 2005, 05:00:12 PM
Think you will find you have sources/membermap.php 0 bytes & themes/membermap.template.php 0bytes ???????
reupload these two again & you should be OK
GREAT thanks... actually membermap.template.php was fine, but membermap.php was zero k.
NOW... when I go to the map, I am unable to place a pin! I click and it does nothing.
Here's what I see in the mm admin area... (not sure that will tell you anything)
Quote from: Brasileira on October 09, 2005, 05:17:30 PM
Quote from: beemer on October 09, 2005, 01:40:36 PM
Check that your maps were uploaded ok
& set permissions/default map in your admin cp
I don´t think I have a permissions/default map related to this on my CP.
The only thing I have is locationmod in the menu and the country to be chosen...
You should have a membermap option in your admin cp where you can set the default map if you have installed additional maps.
Under permissions in ACP you should also be able to select who can view and or place pins
Quote from: digit on October 09, 2005, 05:40:05 PM
Quote from: beemer on October 09, 2005, 05:00:12 PM
Think you will find you have sources/membermap.php 0 bytes & themes/membermap.template.php 0bytes ???????
reupload these two again & you should be OK
GREAT thanks... actually membermap.template.php was fine, but membermap.php was zero k.
NOW... when I go to the map, I am unable to place a pin! I click and it does nothing.
Here's what I see in the mm admin area... (not sure that will tell you anything)
Do you see a world map when you go to mm ?
Try a refresh
If not check your theme/maps folder for world.gif 114k
Quote from: digit on October 09, 2005, 05:40:05 PM
Quote from: beemer on October 09, 2005, 05:00:12 PM
Think you will find you have sources/membermap.php 0 bytes & themes/membermap.template.php 0bytes ???????
reupload these two again & you should be OK
GREAT thanks... actually membermap.template.php was fine, but membermap.php was zero k.
NOW... when I go to the map, I am unable to place a pin! I click and it does nothing.
Here's what I see in the mm admin area... (not sure that will tell you anything)
you probably can't see the map... that's what happened to be as the second problem, easiest way is to just go into your images directory and upload all the maps manually.... even if they do say they have the right size (non zero) once i did thatm it worked fine for me...
that plus i installed the additional map mod part so that might have fixed the problem as well
Quote from: Motorhead on September 28, 2005, 01:46:19 PM
:( oh dear this one isn't playing nice
uploaded the file manually....but when I click on the
map manager link or the map link I get
"Unable to load the 'main' template. "
That means that the files didn't extract correctly. There is a bug on RC1 that is not extracting the files as it should and they end up empty 0kb. Extract the files to your pc and upload them with an FTP cliet to where they belong. It's going to ask you to overwrite the 0kb file with wt ever the size is.
Thaks. The maps didn´t show because they really did not download, they had 0kb just.
Problem now is:
I see the beautifull map but I only have "Save my pin" and "remove my pin" options, nothing else, not even pins... :(
Tryied to search around but didn´t get that explanation yet.
Thats all you will see if you are placing a pin!
You can only place your own pin
I've had to manually install it... it all works great for me...
but when anyone else tries to get access they get:
"You cannot view the member map."
I don't understand why... I as an admin can login and view it... I've even put my pin on it and my name appears at the bottom with my flag... we're running it on SMF 1.0.5
Thanks for any help
UPDATE: It appears only admins can view the map
Quote from: vodkarev on October 13, 2005, 12:30:56 PM
I've had to manually install it... it all works great for me...
but when anyone else tries to get access they get:
"You cannot view the member map."
I don't understand why... I as an admin can login and view it... I've even put my pin on it and my name appears at the bottom with my flag... we're running it on SMF 1.0.5
Thanks for any help
UPDATE: It appears only admins can view the map
Ignore me... the search on ths site is back and I've solved it :D
Quote from: beemer on October 13, 2005, 09:07:37 AM
Thats all you will see if you are placing a pin!
You can only place your own pin
But how am I supposed to place my pin if I can´t see any pin at all?
Quote from: Brasileira on October 14, 2005, 11:32:34 AM
Quote from: beemer on October 13, 2005, 09:07:37 AM
Thats all you will see if you are placing a pin!
You can only place your own pin
But how am I supposed to place my pin if I can´t see any pin at all?
So after clicking ''Place Your Pin' you dont get the cross hair "+" when you run the cursor over a chosen map?
Quote
So after clicking ''Place Your Pin' you dont get the cross hair "+" when you run the cursor over a chosen map?
But thats what I am trying to say. I don´t get a "Place your pin" button, just
"Save my pin" and "remove my pin"
then you already have a pin on..
Hi.
I get a problem with this as well. I'm using 1.1 RC1.
I've installed and uploaded everything and everything is schmoded correctly. But, when I (admin) click on "Place Your Pin", I don't get a map, at all. I get it in the previous screen, when I click on the button to get to '?action=mm', but not on this page.
I went a head and put in a name for the city and after I submit it, I get "You have to click somewhere on the map to place your pin."
In my forum error log, I get 10 errors just by clicking on "Place Your Pin":
Quotehttp://forum.anunlikeworld.info/index.php?action=mm;sa=edit
8: Undefined index: map
File: /home/xxxx/public_html/forum/Themes/mydefault/MemberMap.template.php (eval?)
Line: 183, 182, 181, 180, 179, 178, 169 (3 instances), 115
I can't figure this out (still relatively new to all this).
Any help would be great. Thanks much.
Check that membermap.php in your themes directory isnt showing 0kb and that all your maps,flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned) I also had to populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
Bit of a pain but it does work in rc1
Quote from: Brasileira on October 15, 2005, 04:51:52 AM
Quote
So after clicking ''Place Your Pin' you dont get the cross hair "+" when you run the cursor over a chosen map?
But thats what I am trying to say. I don´t get a "Place your pin" button, just
"Save my pin" and "remove my pin"
Its actually a text link and not a button as such,, maybe if you recheck all your files are there etc to,,
Hi,
I am TRYING to install the location mod...
http://www.treasurenet.com/f/index.php?action=mm
I too am unable to place pins - I have it set to guests can place pins... can someone please test it for me?
I also had the following problem...
Not unique table/alias: 'pin'
File: /users/treasure/pages/f/Sources/Load.php
Line: 716
so I reloaded my old Load.php :(
I also only have the world map - even though I've installed the additional maps and they ARE in the maps directory.??? Any idea why? What does oscar2001 mean by "had to populate the table location_ip2country"? I don't see that field in phpmyadmin. :(
In the admin panel, I only see the world map.
Thx.
I have fixed the problem with Load.php...
this is what I found...
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";
I removed those duplicate lines, now I have....
$select_tables = "
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_GROUP)";
but I still can't place pins. :-(
http://www.treasurenet.com/f/index.php?action=mm
Does any know if this Mod has been modified to fit SMF 1.1 RC1?
I upgraded and it doesn't work.
OK, I'm making progress...
for some reason, when I installed the additional maps mod, the mm_maps field wasn't getting the data inserted. :( So, I did that manually - now I have the additional maps...
but I still can't place pins... if someone could PLEASE take a look ....
http://www.treasurenet.com/f/index.php?action=mm
and tell me what's missing... (do I have some messed up javascript or something?)
I SURE would appreciate it!
Thanks.
Did the installer update your themedir/script.js with some code at the end of the file?
actually, that WAS the problem, my javascript file wasn't updated - so it's FIXED! YEAH!
I have a member map! Thanks Gobalopper!
Quote from: AtariKid on October 17, 2005, 02:40:07 PM
Does any know if this Mod has been modified to fit SMF 1.1 RC1?
I upgraded and it doesn't work.
What do you mean it doesnt work?
QuoteCheck that membermap.php in your themes directory isnt showing 0kb and that all your maps, flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned)
Yeah, I did all that when I first installed it.
QuoteI also had to populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
I'm still way too new to this. How would I go about doing this?
Again, thanks!
Quote from: anunlike on October 17, 2005, 10:02:40 PM
QuoteCheck that membermap.php in your themes directory isnt showing 0kb and that all your maps, flags are there and not doing the same (showing 0kb)(Probably best to just upload and over-write all files as other people have previously mentioned)
Yeah, I did all that when I first installed it.
QuoteI also had to populate the table location_ip2country via phpmyadmin as it pac man wouldnt do it.
I'm still way too new to this. How would I go about doing this?
Again, thanks!
Have you ever used phpmyadmin?
If so, (and if you even need to do this) look at (browse) the location_ip2country field if it contains a bunch of countries, you don't need to do anything to it!
If it is an empty field, you will need to run SQL commands like this... (in phpmyadmin)
INSERT INTO YOUR-PREFIX-HERE_location_country VALUES ('bg', 'Bulgaria', 6)
an entire list of countries can be found in the install.php file located in the location mod package (use your Package tool inyour SMF to view the files (List Files))
Hope that helps.
Quote from: beemer on October 17, 2005, 05:27:48 PMWhat do you mean it doesnt work?
When I click on the 'member map' link, it takes me straight to the forum.
Didn't need to do it, it wasn't empty at all, bunch of countries were listed.
Anyone have any other ideas?
Quote from: anunlike on October 17, 2005, 11:17:56 PM
Didn't need to do it, it wasn't empty at all, bunch of countries were listed.
Anyone have any other ideas?
Make sure your Javascript file was updated - it's located here....
Themes/default/script.js
- you should see a bunch of membermap info near the bottom... if not, that's your problem.
Yeah, did that when I first installed it. Dang. Well, thanks so far.
Sry folks,
but it looks like i'm to dumb to get it installed.
I'm running SMF 1.1RC1 - switchted my profile to default theme and english, then modified the .xml with that info 1.1RC1 - but after uploading the zip it says its a corrupt package or not compatible with that version of SMF.
The Forum CHMOD is on 777 for all necessary parts.
So maybe somebody can help me with that ? I really hope not to modify all .php files by hand.
Best regards
PowerPyx
Are you sure you modified the package-info.xml correctly?
What file editor did you use ?
i just used notepad - as said here in the thread...
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Location Mod</name>
<id>gobalopper:locationmod</id>
<type>modification</type>
<version>1.1.2</version>
<install for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public, 1.1RC1">
<readme type="file">install.txt</readme>
<require-dir name="flags" destination="$themedir/images" />
<require-dir name="maps" destination="$themedir/images" />
<require-file name="mm.gif" destination="$themedir/images/english" />
<require-file name="MemberMap.php" destination="$sourcedir" />
<require-file name="MemberMap.template.php" destination="$themedir" />
<modification format="xml" type="file">install.xml</modification>
<code>install.php</code>
</install>
<uninstall for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public, 1.1RC1">
<readme type="file">uninstall.txt</readme>
<remove-dir name="$themedir/images/flags" />
<remove-dir name="$themedir/images/maps" />
<remove-file name="$themedir/images/english/mm.gif" />
<remove-file name="$sourcedir/MemberMap.php" />
<remove-file name="$themedir/MemberMap.template.php" />
<modification format="xml" type="file">uninstall.xml</modification>
<code>uninstall.php</code>
</uninstall>
<upgrade from="1.0 RC2, 1.0 (preview)" for="1.1 Beta 1, 1.1 Beta 2, 1.1 Beta 3 Public">
<require-file name="mm.gif" destination="$themedir/images/english" />
<require-file name="MemberMap.php" destination="$sourcedir" />
<require-file name="MemberMap.template.php" destination="$themedir" />
<modification type="file">upgrade_1.0to1.1.xml</modification>
<code>upgrade_1.0to1.1.php</code>
</upgrade>
</package-info>
What if you try changing the line that say <install for blah blah blah...> to just say <install>, and also the <uninstall...> to just <uninstall>.
"Might" be your problem
in you xml file you got
1.1RC1
Should read
1.1 RC1
Quote from: oscar2001 on October 20, 2005, 04:22:27 PM
"Might" be your problem
in you xml file you got
1.1RC1
Should read
1.1 RC1
ditto on that one... i'd be willing to bet money that this is your problem...
jup .. changed from 1.1RC1 to 1.1 RC1 and installation works fine.
Thanks ;D
I have installed the Mod, but they didn`t find the main Template.
Look here: http://www.unsere-pfoten.web-4-free.com/forum/index.php?action=mm
Sorry for my bad English, i´m German.
I posted further back up in this topic
You need to manually upload 2 files
Quote from: beemer on October 09, 2005, 05:00:12 PM
Think you will find you have sources/membermap.php 0 bytes & themes/membermap.template.php 0bytes ???????
reupload these two again & you should be OK
It´s working, the membermap.php, have 0 Bytes, Thanks.
;)
Google maps mashup ?
There already is one in development by someone else. I don't remember the thread but you should be able to find it by searching.
I have installed this http://mods.simplemachines.org/index.php?mod=56 into an 1.1 RC1 installation. When I click on 'Member Map', I get this error message:
An Error Has Occurred!
Unable to load the 'main' template.
I have to say, I've never seen so many bugs in any piece of software in my life. Do you guys test this stuff adequately? I don't meant to insult anyone, but the bugs are becoming overwhelming and it's driving me nuts.
Quote from: batbawls on October 28, 2005, 02:32:09 AM
I have installed this http://mods.simplemachines.org/index.php?mod=56 into an 1.1 RC1 installation. When I click on 'Member Map', I get this error message:
An Error Has Occurred!
Unable to load the 'main' template.
I have to say, I've never seen so many bugs in any piece of software in my life. Do you guys test this stuff adequately? I don't meant to insult anyone, but the bugs are becoming overwhelming and it's driving me nuts.
Well the forum is a realease canidate and is not a final, so its use is only if your comfortable doing so.. As for the mods,, well they are not risk free either but with a bit of reading and tackfully asking questions you generally get steered in the right direction.
Anyway if you really go over the past couple of weeks of answers in this thread you will find your answer answered a number of times and most likely any others that may arise.
Quote from: oscar2001 on October 28, 2005, 05:22:26 AM
Quote from: batbawls on October 28, 2005, 02:32:09 AM
I have installed this http://mods.simplemachines.org/index.php?mod=56 into an 1.1 RC1 installation. When I click on 'Member Map', I get this error message:
An Error Has Occurred!
Unable to load the 'main' template.
I have to say, I've never seen so many bugs in any piece of software in my life. Do you guys test this stuff adequately? I don't meant to insult anyone, but the bugs are becoming overwhelming and it's driving me nuts.
Well the forum is a realease canidate and is not a final, so its use is only if your comfortable doing so.. As for the mods,, well they are not risk free either but with a bit of reading and tackfully asking questions you generally get steered in the right direction.
Anyway if you really go over the past couple of weeks of answers in this thread you will find your answer answered a number of times and most likely any others that may arise.
I have been over the thread. In addition, searching all forums for "Unable to load the 'main' template." returned zero results.
Also, when you attempt to Uninstall this gem of a mod, it says it was successful, but it remains installed whilst saying "Apply Mod" next to it in the Package Manager.
Now, when you attempt to browse the forums, you get this error:
Not unique table/alias: 'pin'
http://www.simplemachines.org/community/index.php?topic=20168.msg370439#msg370439
QuoteNow, when you attempt to browse the forums, you get this error:
Not unique table/alias: 'pin'
Re-upload your backup copy of load.php
Quote from: oscar2001 on October 28, 2005, 08:26:20 AM
http://www.simplemachines.org/community/index.php?topic=20168.msg370439#msg370439
QuoteNow, when you attempt to browse the forums, you get this error:
Not unique table/alias: 'pin'
Re-upload your backup copy of load.php
I had already made my way through the uninstall.xml and friends with vim.. looks like uinstalling it manually got me running again.
Has anyone made a Masochist's Mod yet?
Quote from: batbawls on October 28, 2005, 08:37:02 AM
Quote from: oscar2001 on October 28, 2005, 08:26:20 AM
http://www.simplemachines.org/community/index.php?topic=20168.msg370439#msg370439
QuoteNow, when you attempt to browse the forums, you get this error:
Not unique table/alias: 'pin'
Re-upload your backup copy of load.php
I had already made my way through the uninstall.xml and friends with vim.. looks like uinstalling it manually got me running again.
Has anyone made a Masochist's Mod yet?
As Oscar2001 said its been answered several times - unable to load template means that the two files MemberMap.template.php & MemberMap.php previously mentioned in this thread did not get uploaded correctly if you check they will be showing a size of 0 bytes.
;)
Overwrite them with and location mod will work fine
Anybody having problems with the Map not displaying properly? (Pins all clumped at the top)
I can't see it but 3 or 4 users have complained about the same thing. Have changed nothing since the original mod except upgrading SMF to the php 4.4.0 compatibility.
First of all let me say that I am a total newbie here. My host is telling me that my YaBB boards are too server-intensive, so I am having to convert to SMF. So, I just installed SMF for the first time today, and would like to get a map feature like I had with my YaBB board. From what I have seen this looks like it will be perfect for me if I can get it installed.
Am I doing this wrong? I uploaded everything in the zip file and then ran install.php. I am making an assumption that this is how installation works. However, when I try to run install.php, I get this error message:
Fatal error: Call to undefined function: db_query() in /home/rfgene2/public_html/smf/install.php on line 10
What does this mean?
P.S. I do apologize if this is a dumb question or the wrong place to ask, but this is very new to me. Thanks much in advance for any help someone might be willing to give!
Quote from: DDT on November 03, 2005, 03:17:53 PM
Anybody having problems with the Map not displaying properly? (Pins all clumped at the top)
I can't see it but 3 or 4 users have complained about the same thing. Have changed nothing since the original mod except upgrading SMF to the php 4.4.0 compatibility.
I get that too..
nepenthean, you need to use the package manager. Go to Admin, then packages. Upload the package. Then, install it. You will have to replace all the image files and the membermap.php and membermap.template.php.
You can't just unzip and run.. Use the package manager.
Quote from: NukeWorker.com on October 28, 2005, 06:53:07 PM
... or just insult people, that should make it work too.
PMSL
can anyone tell me what i need to do , to replace a standard map with a custom map to the location mod? i searched the whole topic, but haven't found a clear answer.
the thing i don't understand the most is the coordinates i need to enter with a new map.
would be great if someone could explain to me what i need to do.
Quote from: Libo on November 03, 2005, 09:47:34 PM
nepenthean, you need to use the package manager. Go to Admin, then packages. Upload the package. Then, install it. You will have to replace all the image files and the membermap.php and membermap.template.php.
You can't just unzip and run.. Use the package manager.
Thanks very much! I was able to get this mod installed and working after reading this. I had to change the package-info.xml files so I could install to RC1, but other than that everything went smoothly. Thanks much for the help!
Is there a version available somewhere which is compatible to SMF 1.0.5?
in a couple pages back. there was. look for u're self.
Quote from: Libo on November 05, 2005, 01:07:38 PM
in a couple pages back. there was. look for u're self.
Thanx alot - just checked the last 6 or 7 pages yesterday.
The version for SMF up to 1.0.5 can be found on page 37 (http://www.simplemachines.org/community/index.php?topic=20168.msg345586#msg345586) for anyone still searching for it.
I have this installed and have had some problems in the past but lately its been working ok, however, suddenly when you look at the member map, everyone's flags are in the wrong place. ie all the US people are now in the middle of the ocean and all the UK people are in Africa
This is only happening in IE, in Opera they are all where they should be!
Any ideas how this happens and how to fix it?
Thanks
Try closing both your side bars and do a F5 refresh
then open them again and F5 again
When I try to install this on smf 1.0.5 I get a failure in ./Themes/default/index.template.php Can someone post what to add to this file ???
Quote from: Bigguy on November 11, 2005, 11:52:08 PM
When I try to install this on smf 1.0.5 I get a failure in ./Themes/default/index.template.php Can someone post what to add to this file ???
Its in the xml file
Are you sure you have the 1.05 version and not the 1.1 ver?
Yep I do believe I have the right version. How do I add the info rom the xml file manually just copy and paste.
What do you mean by you "get a failure in ./Themes/default/index.template.php"?
I am using smf 1.0.5 It has about 12 modifications added onto it plus a theme called "Coolmetal" When I use the package manager to try to install this mod I get an error in "./Themes/default/index.template.php"
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv704%2Fbigguy982%2Ffail.jpg&hash=c4f123e5136a7f6b211bbbfd7a364cd7a4b60025)
I have a similar display problem to the one above, all the pins are in the wrong place on the maps, can someone please tell me how to fix this?
I have PMed the mod author too but no luck so far?
thanks
Quote from: gh0stw4lk3r on November 04, 2005, 05:58:23 AM
can anyone tell me what i need to do , to replace a standard map with a custom map to the location mod? i searched the whole topic, but haven't found a clear answer.
the thing i don't understand the most is the coordinates i need to enter with a new map.
would be great if someone could explain to me what i need to do.
Yep, I'd like to know how to do this, too. Anyone help us?
Quote from: Bigguy on November 12, 2005, 09:53:08 PM
I am using smf 1.0.5 It has about 12 modifications added onto it plus a theme called "Coolmetal" When I use the package manager to try to install this mod I get an error in "./Themes/default/index.template.php"
You will have to manually update all the file changes from the install.xml ( it might be worth first checking your index.template to see why it cant make the following changes
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];]]></search>
<add><![CDATA[
// 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'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];]]></add>
</operation>
</file>
Quote from: elliel on November 14, 2005, 09:24:18 AM
I have a similar display problem to the one above, all the pins are in the wrong place on the maps, can someone please tell me how to fix this?
I have PMed the mod author too but no luck so far?
thanks
Do you have a link ? and is guest viewing enabled?
I think its a java cache issue needs clearing
Hi,
I tried to install it onto a german smf. Messed everything up. Someone do a german install file please.
An I'd like to use this map for DE, CH and A:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbmhm.bm.funpic.de%2Fforum%2Flocator%2Flocator.gif&hash=af5a98940e4927b5af1bdcab2f067b3908426b47)
Your right I have the 1.1 version. I`ll try the other one. Where do I find it ??? 1.05 that is
Quote from: beemer on November 12, 2005, 10:52:00 AM
Quote from: Bigguy on November 11, 2005, 11:52:08 PM
When I try to install this on smf 1.0.5 I get a failure in ./Themes/default/index.template.php Can someone post what to add to this file ???
Its in the xml file
Are you sure you have the 1.05 version and not the 1.1 ver?
A few pages back...
Well I dont think its a few pages back, I just checked all the way to page 1 and didnt see it anywhere. Does anyone know where it is
Quote from: bmhm on November 20, 2005, 05:23:34 PM
A few pages back...
its attached to globaloppers post here ;)
http://www.simplemachines.org/community/index.php?topic=20168.msg345586#msg345586
Ok well I have 2 location mods uploaded now 1.1.1 and 1.1.2 I tried 1.1.1 originally and got the errors I told you about. Now I uploaded 1.1.2 and it said it was corrupt. This is what I see in package manager:
9. Location Mod 1.1.2 [ List Files ] [ Delete ]
There is no uninstall. Now what ???
EDIT: Now when I press install on the other one I only get one error, in the index.template.php This is wierd.
Quote from: bmhm on November 20, 2005, 10:06:24 AM
Hi,
I tried to install it onto a german smf. Messed everything up. Someone do a german install file please.
An I'd like to use this map for DE, CH and A:
Anyone answer my post?
@Bigguy:
Re-up the sourcefolder, delete all links from index.php and check packages/installed.list, then I recommend to use an editor like Phase 5 which can search multiple files for its content. I searched for action=mm , mm_ , location mod, locationmod, and so on. Finally I fixed it that way. Hard to do indeed.
Anyone answer my post how to use my own map? (see link in Quote)
Quote from: Bigguy on November 20, 2005, 08:38:42 PM
Ok well I have 2 location mods uploaded now 1.1.1 and 1.1.2 I tried 1.1.1 originally and got the errors I told you about. Now I uploaded 1.1.2 and it said it was corrupt. This is what I see in package manager:
9. Location Mod 1.1.2 [ List Files ] [ Delete ]
There is no uninstall. Now what ???
EDIT: Now when I press install on the other one I only get one error, in the index.template.php This is wierd.
Use the delete button on 1.1.2 and your uninstall option should come back on the first one ?
If it does uninstall the first on e reuplad the 1.05 version and install :o
Quote from: bmhm on November 21, 2005, 02:57:55 AM
Quote from: bmhm on November 20, 2005, 10:06:24 AM
Hi,
I tried to install it onto a german smf. Messed everything up. Someone do a german install file please.
An I'd like to use this map for DE, CH and A:
Anyone answer my post?
@Bigguy:
Re-up the sourcefolder, delete all links from index.php and check packages/installed.list, then I recommend to use an editor like Phase 5 which can search multiple files for its content. I searched for action=mm , mm_ , location mod, locationmod, and so on. Finally I fixed it that way. Hard to do indeed.
Anyone answer my post how to use my own map? (see link in Quote)
I did read a post some time ago about using your own map but cant find it now?
You could try just uploading it as the same name as the map you wish to replace then playing around with co-ords & scale factors till it fits together with trhe world map!
*still searching*
Dont know if this any help, not the one I was thinking of tho
http://www.simplemachines.org/community/index.php?topic=20168.msg243853#msg243853
or
http://www.simplemachines.org/community/index.php?topic=6859.msg88193#msg88193
I have version 1.1.1 and 1.1.2 I have not yet been able to find this 1.05 version. Its the 1.1.2 version that has no install. The 1.1.1 version has an install to it, but I still get an error when trying to install. Can someone point me to this 1.05 version that keeps hiding from me.
EDIT: I have deleted version 1.1.2 and now when I go to install 1.1.1 I only get one error in the index.template.php file.
OK. Can I ask the stupidest question yet please?
I have installed this successfully - or so it says. But er..... what do I do now? How do I and my members use this? I don't see any links leading to where we can access the map, or anything... Can't find any insturctions either.
Thanks. :-[
Ah never mind, I've just realised that this doesn't work with Bloc's Neptune theme.
Unless anyone knows how to get it to work?
Thanks.
Do you plan to make this mod compatible with SMF 1.1 RC1?
I don't have any issues with this on 1.1 RC1.
If you've other mods installed, chances are there's a conflict.
What should I add manually in the index.template.php file for this to work. Or will it work if I install it with this error and then add to the index.template.php file manuall ???
Quote from: Bigguy on November 21, 2005, 10:10:18 AM
I have version 1.1.1 and 1.1.2 I have not yet been able to find this 1.05 version. Its the 1.1.2 version that has no install. The 1.1.1 version has an install to it, but I still get an error when trying to install. Can someone point me to this 1.05 version that keeps hiding from me.
EDIT: I have deleted version 1.1.2 and now when I go to install 1.1.1 I only get one error in the index.template.php file.
Quote from: destalk on November 26, 2005, 08:16:11 PM
OK. Can I ask the stupidest question yet please?
I have installed this successfully - or so it says. But er..... what do I do now? How do I and my members use this? I don't see any links leading to where we can access the map, or anything... Can't find any insturctions either.
Thanks. :-[
index.php?action=mm
Quote from: Bigguy on November 27, 2005, 04:20:13 PM
What should I add manually in the index.template.php file for this to work. Or will it work if I install it with this error and then add to the index.template.php file manuall ???
Quote from: Bigguy on November 21, 2005, 10:10:18 AM
I have version 1.1.1 and 1.1.2 I have not yet been able to find this 1.05 version. Its the 1.1.2 version that has no install. The 1.1.1 version has an install to it, but I still get an error when trying to install. Can someone point me to this 1.05 version that keeps hiding from me.
EDIT: I have deleted version 1.1.2 and now when I go to install 1.1.1 I only get one error in the index.template.php file.
You could but you may be better/safer manually making all the changes as listed in install.xml
Quote from: destalk on November 26, 2005, 08:22:25 PM
Ah never mind, I've just realised that this doesn't work with Bloc's Neptune theme.
Unless anyone knows how to get it to work?
Thanks.
[/quote
It will work with blocs theme the install just updates the default theme you will need to read the install.xml to find which files to manually edit]
Quote from: mrandall131 on November 27, 2005, 07:45:27 AMI don't have any issues with this on 1.1 RC1.
I did. The files were either corrupt or were not compatible with my version of SMF (1.1 RC1.).
QuoteIt will work with blocs theme the install just updates the default theme you will need to read the install.xml to find which files to manually edit
Thanks for that. Unfortunately, I have just spent half an hour looking at install.xml and it makes little sense to me. I can see that it is indicating various files. And I
think that I get the gist that it is searching and replacing stuff in those files.
But I can't for the life of me work out where to start copying and pasting this manually. What should I be looking for?
thanks I`ll give that a shot.
Quote from: destalk on November 27, 2005, 11:36:12 PM
QuoteIt will work with blocs theme the install just updates the default theme you will need to read the install.xml to find which files to manually edit
Thanks for that. Unfortunately, I have just spent half an hour looking at install.xml and it makes little sense to me. I can see that it is indicating various files. And I think that I get the gist that it is searching and replacing stuff in those files.
But I can't for the life of me work out where to start copying and pasting this manually. What should I be looking for?
Have you still got the mod installed ?
and it works using the default theme?
Do you have any other mods installed?
how is possible add new IP range for recognize on nation ? coz mod installed something not recognize one IP and return me back no flag for nation i want add new range of IP that identify nation
how is possible do it?
Looks like they are stored in
smf_location_ip2country
In this format
IP From IP to Country
260227072 260231167 gb
260231168 260976639 us
260976640 260980735 gb
Should be easy enough to modify creat a new one ensuring they dont overlap
INSERT INTO `location_ip2country` VALUES (8728126,8728127, 'it');
i tried insert int in DB, query work and insert data but nothing appear the IP number is always unknown
may be something wrong
Just had a look :o
Do you have a matching country entry in
smf_location_country to correspond with your new IP range
in package member there is no option for uninstallation.just [ List Files ] [ Delete ]
i want to reinstall it help please.
Quote from: beemer on November 28, 2005, 07:58:28 AM
Just had a look :o
Do you have a matching country entry in
smf_location_country to correspond with your new IP range
Yes, u have to go to a site. View the contents of the package and see the install.xml or one of those files. Go to the site listed and download the latest cvs file. Unpack the location mod. Replace the old .cvs file with the new one. Make sure they have same name. Then upload and install...
Quote from: hassan on November 28, 2005, 08:42:37 AM
in package member there is no option for uninstallation.just [ List Files ] [ Delete ]
i want to reinstall it help please.
Reupload? U must have a newer version uploaded or something.
Quote from: beemer on November 28, 2005, 04:27:37 AM
Quote from: destalk on November 27, 2005, 11:36:12 PM
QuoteIt will work with blocs theme the install just updates the default theme you will need to read the install.xml to find which files to manually edit
Thanks for that. Unfortunately, I have just spent half an hour looking at install.xml and it makes little sense to me. I can see that it is indicating various files. And I think that I get the gist that it is searching and replacing stuff in those files.
But I can't for the life of me work out where to start copying and pasting this manually. What should I be looking for?
Have you still got the mod installed ?
and it works using the default theme?
Do you have any other mods installed?
Hi
Yep, mod is still installed and works with the default theme. The only other mod installed is the G+S Sticky mod.
yea i did
how i can uninstall it now?
Quote from: destalk on November 28, 2005, 07:58:42 PM
Hi
Yep, mod is still installed and works with the default theme. The only other mod installed is the G+S Sticky mod.
In your themes neptune folder
Backup display.template.php
then find
', $message['member']['group_stars'], '<br />';
echo '
And add the following below
'/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';
Not sure if you will need to add a button by editing index.template.php in the same folder (try the above first)
Backup index.template.php
Then find
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
And add below
// 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'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
QuoteIn your themes neptune folder
Backup display.template.php
then find
Hi.
Thanks, but there is no display.template.php in the Neptune them folder. Did you mean to do this for the display.template.php in the Default folder?
Copy it from your default to the neptune folder (no need to edit :D)
Thanks beemer, but that doesn't do anything (nor does editing the index.template.php file as above).
I have also tried going directly to index.php?action=mm but it just relaods the home page.
I have this mod installed now but is there a fix here somewhere for the pins not showing up or showing up off the map when you use firefox ??? I saw it here I think but I cant find it.
EDIT: got the pins to show up now all I need is a way to get the button to show up. Anyone got any ideas.
Which button?
got a link?
is guest access enabled for the map ?
Does this work with 1.1rc1? if not how can i fix it?
The menu buttons on top of the forum index, you know the "profile", "help", "Logout", "Calender" etc. i`m using the coolmetal theme and instead of a button a text link shows up. I have made a button for the theme and named it mm.gif and put it in my /themes/coolmetal/images/english/ folder and it is chmodded right. But for some reason all that shows is a text link instead of a button. here is a
link (http://www.mywworld.com)
Quote from: beemer on December 02, 2005, 01:18:32 PM
Which button?
got a link?
is guest access enabled for the map ?
Quote from: ArkServer on December 02, 2005, 01:39:33 PM
Does this work with 1.1rc1? if not how can i fix it?
yes.
Quote from: Bigguy on December 02, 2005, 03:30:30 PM
The menu buttons on top of the forum index, you know the "profile", "help", "Logout", "Calender" etc. i`m using the coolmetal theme and instead of a button a text link shows up. I have made a button for the theme and named it mm.gif and put it in my /themes/coolmetal/images/english/ folder and it is chmodded right. But for some reason all that shows is a text link instead of a button. here is a link (http://www.mywworld.com)
Backup index.template.php
Then find
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
And add below
// 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'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
I have already added that to the index template file.Here is the template I`m using, or rather the last half of it.
Quote//HELP Button
echo '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
//How about the [forum] button?
$txt['forum'] = 'Forum';
echo '
<a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['forum'] . '" style="margin: 2px 0;" border="0" />' : $txt['forum']), '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];
// 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'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
// 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'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
// The [ARCADE]!
echo '
<a href="', $scripturl, '?action=arcade"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/games.gif" alt="' . "Arcade" . '" style="margin: 2px 0;" border="0" /></a>', $context['menu_separator'];
//BEGIN Shop MOD 0.2 Code
echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";
//END SHOP MOD
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
}
?>
That doesn`t sound silly at all, the image is already there, lol. It still wont show up.
Strange bigguy i cant view source on your forum page?
I can view it in Fire fox with the native editor.
EDIT: When I right click on the buttons and got to properties I get different info for the forum button and the map button. I right xlixked on both of them and brought up the properties. Does this give anyone a clue as to whats going on:
This is the properties for the map button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv704%2Fbigguy982%2Fmapbutton.jpg&hash=c519ac6aecca5fe8baa4fff365f78fd16bb9eab4)
This is the properties for the forum button.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv704%2Fbigguy982%2Fforumbutton.jpg&hash=11ada3947f2cc26c64ec43fcebb240c0e1f5d7e4)
Dunno
you could try changing this bit in your template above to the full image path
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif"
<img src="'http://www.mywworld.com/smf/Themes/cold/images/english/mm.gif"
I tried that but it didnt work, anymore ideas ???
EDIT: If I took out the part of the code that says to use the text alternately if it cant find the image would that work ??? Wouldnt that force it to use the image ??? The image is where its supposed to be, I just dont understand it. I have made the modification to the index.template.php file in both the coolmetal theme and the default theme, in both it shows up as a text link not a button.
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?????
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.
I think this has been asked before, but I can't find an answer: Does this mod work with SMF 1.1 RC1?
I think there is an update for it for that version, check the mods page.
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.
just unzip and open package-info.xml .. Edit it so that it says 1.1 rc1 along with 1.1 beta 3 public ..
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.
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?
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!
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!
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. :)
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.
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. :)
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
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
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.
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.
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.
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.
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?
I *thought* that it did... I have tried replacing the load.php with the backed up one load.php~ - no help there... The Uninstall apparently did not go as it should have...
Should I simply try to re-upgrade? I don't want to make things worse than they are, but I gotta do sumthin'...
Well I would suggest making sure all your source and template files are from RC2. You can check that in the admin center and the easiest way to replace them is just overwrite them all with the RC2 versions. Then run the RC2 upgrade.php again.
Thanks, Jesse! I went back to the original load.php as you suggested and it helped enough for me to read the forum now. I will do as you suggested later on today. Hopefully, it will go well and then I'll be back to get some help trying to reinstall the Location Mod again.
Thanks again! :D
Hi. I just re-installed this great mod on RC2, it installed without any errors, and installed complete, BUT the error log now shows this
8: Use of undefined constant mm_mm - assumed 'mm_mm'
File: /public_html/test/Themes/default/Errors.template.php (eval?)
Line: 533
[edit]
The same error goes for Boardindex.template.php, login.templote.php and Admin.template.php
What went wrong??
The reupdate went fine and so far, so good. :D
Since I had the same errors as 1948Pal, I will wait to see how that situation resolves before I try to reinstall this wonderful mod! My users have been clamoring for a member map for a long time and I hope I can get this one installed for them soon!
Thanks so much for your hard work! ;D
I've updated the gobalopper.locationmod.zip file and it should fix that problem 1948Pal. Please let me know if it doesn't.
Thank you, yeah that seems to have fixed that. Now though, if I try to access the who's online, I get this
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
File: ../public_html/test/Sources/Load.php
Line: 781
{EDIT} Also the same error on membermap.php when the member map button is clicked.
Hmm I think there are some problems with MySQL STRICT and the queries. I will look into it.
Any chance of getting Uninstall instructions for this mod.
The option isn't available in SMF v1.0.5's package manager.
I'm getting this error with the main mod file, I'm using a cvs version from 2 days ago, would that cause it? I didn't see a RC2 install file in the zip though.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
The RC2 version should work with the CVS releases. You would have to change the version numbers in the package-info.xml file to make it work though.
Mizery1 are you using the version I just posted? Or an older one? They should all have un-install instructions with them.
Quote from: Gobalopper on January 09, 2006, 12:32:25 AM
Mizery1 are you using the version I just posted? Or an older one? They should all have un-install instructions with them.
It was version 1.1.1 Its alright though, I'm working on a doing clean re-install of 1.0.5 anyway.
Quote from: Gobalopper on January 04, 2006, 10:40:47 PM
Hmm I think there are some problems with MySQL STRICT and the queries. I will look into it.
Hi Gobalopper, sorry to be the bringer of "not so happy news", but I am still getting those errors
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation '='
File: /public_html/test/Sources/MemberMap.php
Line: 101
When the member map is clicked, and the same error, but on Load.php line 781 when the who's online is clicked.
Also found a couple of misplaced text but not a big deal;
in index.template.php
// The [member map]
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='mm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mm">' , $txt[79] , '</a>
</td>' , $current_action=='mm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
should be
// The [member map]
echo ($current_action=='mm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='mm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mm">' , $txt['mm_mm'] , '</a>
</td>' , $current_action=='mm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
peace
I thought the latest version had that index.template.php problem fixed. I will have to check that again.
Can you post the return values of these two queries for me?
Quoteshow create table smf_mm_pins;
show create table smf_location_country;
Love this mod but one problem I am having the flags in the user's post's are not displaying all we get is the square with the red cross. ?
Make sure the flags are uploaded to whatever theme folder you are using.
hmmmm...
the index.template.php is correct in the version that I downloaded in Dec 8.
Quote from: Gobalopper on January 09, 2006, 12:33:03 PM
I thought the latest version had that index.template.php problem fixed. I will have to check that again.
Can you post the return values of these two queries for me?
show create table smf_mm_pins;
#1146 - Table 'allabout_test.smf_mm_pins' doesn't exist
show create table smf_location_country;
#1146 - Table 'allabout_test.smf_location_country' doesn't exist
However, both tables do exist but without the smf part, i.e allabout_test_location_country, and allabout_test_mm_pins.
[edit]If I change it to "show create table mm_pins", I still get "allabout_test.mm_pins" doesn't exist, but it is there and is populated with data[/edit]
Wait so there is a table mm_pins? So if you go "SELECT * FROM mm_pins LIMIT 1" you get results?
OK, duh, I am such a..., well you know :).
CREATE TABLE `test_mm_pins` (\n `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',\n `ID_MAP` smallint(5) unsigned NOT NULL default '0',\n `xPin` smallint(5) unsigned NOT NULL default '0',\n `yPin` smallint(5) unsigned NOT NULL default '0',\n `country` char(2) collate latin1_general_ci default '',\n `city` varchar(50) collate latin1_general_ci default '',\n UNIQUE KEY `ID_MEMBER` (`ID_MEMBER`),\n KEY `country` (`country`),\n KEY `ID_MAP` (`ID_MAP`)\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
and
CREATE TABLE `test_location_country` (\n `c2code` char(2) NOT NULL default '',\n `name` varchar(42) NOT NULL default '',\n `ID_MAP` smallint(5) unsigned NOT NULL default '0',\n PRIMARY KEY (`c2code`)\n) ENGINE=MyISAM DEFAULT CHARSET=latin1[code]
[/code]
Quote from: Gobalopper on January 10, 2006, 11:55:18 AM
Wait so there is a table mm_pins? So if you go "SELECT * FROM mm_pins LIMIT 1" you get results?
No I had the db prefix all mixed up, a "SELECT * FROM test_mm_pins LIMIT 1" will show results. Sorry
Ok so the problem arises from those two tables having different character sets:
CHARSET=latin1 COLLATE=latin1_general_ci for mm_pins
and
CHARSET=latin1 for location_country
Can you run the show create table on one of the regular smf tables so we can find the default character set the other tables use? Try show create table test_messages;.
Show create table test_messages:
CREATE TABLE `test_messages` (\n `ID_MSG` int(10) unsigned NOT NULL auto_increment,\n `ID_TOPIC` mediumint(8) unsigned NOT NULL default '0',\n `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',\n `ID_MSG_MODIFIED` mediumint(8) unsigned NOT NULL default '0',\n `subject` tinytext collate latin1_general_ci NOT NULL,\n `posterName` tinytext collate latin1_general_ci NOT NULL,\n `posterEmail` tinytext collate latin1_general_ci NOT NULL,\n `posterTime` int(10) unsigned NOT NULL default '0',\n `posterIP` tinytext collate latin1_general_ci NOT NULL,\n `smileysEnabled` tinyint(4) NOT NULL default '1',\n `modifiedTime` int(10) unsigned NOT NULL default '0',\n `modifiedName` tinytext collate latin1_general_ci NOT NULL,\n `body` text collate latin1_general_ci NOT NULL,\n `icon` varchar(16) collate latin1_general_ci NOT NULL default 'xx',\n `ID_BOARD` smallint(5) unsigned NOT NULL default '0',\n PRIMARY KEY (`ID_MSG`),\n UNIQUE KEY `topic` (`ID_TOPIC`,`ID_MSG`),\n UNIQUE KEY `ID_BOARD` (`ID_BOARD`,`ID_MSG`),\n KEY `participation` (`ID_MEMBER`,`ID_TOPIC`),\n KEY `ID_TOPIC` (`ID_TOPIC`),\n KEY `ipIndex` (`posterIP`(15),`ID_TOPIC`)\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
Try this query:
ALTER TABLE test_location_country CHARACTER SET latin1 COLLATE latin1_general_ci;
OK, doing now. Be right back
OK, ran the query, successful. Should I be doing something else? Cause I'm still getting same errors.
What does this query return:
SHOW CREATE TABLE test_members;
Because that is the only other table that is used in the query that doesn't work.
QuoteCREATE TABLE `test_members` (\n `ID_MEMBER` mediumint(8) unsigned NOT NULL auto_increment,\n `memberName` varchar(80) collate latin1_general_ci NOT NULL default '',\n `realName` tinytext collate latin1_general_ci NOT NULL,\n `passwd` varchar(64) collate latin1_general_ci NOT NULL default '',\n `emailAddress` tinytext collate latin1_general_ci NOT NULL,\n `dateRegistered` int(10) unsigned NOT NULL default '0',\n `personalText` tinytext collate latin1_general_ci NOT NULL,\n `gender` tinyint(4) unsigned NOT NULL default '0',\n `birthdate` date NOT NULL default '0001-01-01',\n `websiteTitle` tinytext collate latin1_general_ci NOT NULL,\n `websiteUrl` tinytext collate latin1_general_ci NOT NULL,\n `location` tinytext collate latin1_general_ci NOT NULL,\n `ICQ` tinytext collate latin1_general_ci NOT NULL,\n `AIM` varchar(16) collate latin1_general_ci NOT NULL default '',\n `YIM` varchar(32) collate latin1_general_ci NOT NULL default '',\n `hideEmail` tinyint(4) NOT NULL default '0',\n `timeFormat` varchar(80) collate latin1_general_ci NOT NULL default '',\n `signature` text collate latin1_general_ci NOT NULL,\n `posts` mediumint(8) unsigned NOT NULL default '0',\n `timeOffset` float NOT NULL default '0',\n `avatar` tinytext collate latin1_general_ci NOT NULL,\n `pm_ignore_list` text collate latin1_general_ci NOT NULL,\n `pm_email_notify` tinyint(4) NOT NULL default '0',\n `lastLogin` int(10) unsigned NOT NULL default '0',\n `karmaBad` smallint(5) unsigned NOT NULL default '0',\n `karmaGood` smallint(5) unsigned NOT NULL default '0',\n `usertitle` tinytext collate latin1_general_ci NOT NULL,\n `lngfile` tinytext collate latin1_general_ci NOT NULL,\n `notifyAnnouncements` tinyint(4) NOT NULL default '1',\n `notifyOnce` tinyint(4) NOT NULL default '1',\n `MSN` tinytext collate latin1_general_ci NOT NULL,\n `memberIP` tinytext collate latin1_general_ci NOT NULL,\n `secretQuestion` tinytext collate latin1_general_ci NOT NULL,\n `secretAnswer` varchar(64) collate latin1_general_ci NOT NULL default '',\n `disableCensoring` tinyint(4) NOT NULL default '0',\n `city` tinytext collate latin1_general_ci NOT NULL,\n `country` tinytext collate latin1_general_ci,\n `showOnline` tinyint(4) default '1',\n `WARNING` int(11) default NULL,\n `instantMessages` smallint(5) NOT NULL default '0',\n `unreadMessages` smallint(5) NOT NULL default '0',\n `ID_THEME` tinyint(4) unsigned NOT NULL default '0',\n `ID_GROUP` smallint(5) unsigned NOT NULL default '0',\n `is_activated` tinyint(3) unsigned NOT NULL default '1',\n `validation_code` varchar(10) collate latin1_general_ci NOT NULL default '',\n `ID_MSG_LAST_VISIT` int(10) unsigned NOT NULL default '0',\n `additionalGroups` tinytext collate latin1_general_ci NOT NULL,\n `smileySet` varchar(48) collate latin1_general_ci NOT NULL default '',\n `totalTimeLoggedIn` int(10) unsigned NOT NULL default '0',\n `ID_POST_GROUP` smallint(5) unsigned NOT NULL default '0',\n `passwordSalt` varchar(5) collate latin1_general_ci NOT NULL default '',\n `isPostModerated` tinyint(4) NOT NULL default '0',\n `moderatedPosts` int(8) NOT NULL default '0',\n `messageLabels` text collate latin1_general_ci NOT NULL,\n `buddy_list` tinytext collate latin1_general_ci NOT NULL,\n `notifySendBody` tinyint(4) NOT NULL default '0',\n `notifyTypes` tinyint(4) NOT NULL default '2',\n PRIMARY KEY (`ID_MEMBER`),\n KEY `posts` (`posts`),\n KEY `dateRegistered` (`dateRegistered`),\n KEY `lastLogin` (`lastLogin`),\n KEY `ID_MEMBER` (`ID_MEMBER`),\n KEY `posts_2` (`posts`),\n KEY `dateRegistered_2` (`dateRegistered`),\n KEY `lastLogin_2` (`lastLogin`),\n KEY `ID_GROUP` (`ID_GROUP`),\n KEY `birthdate` (`birthdate`),\n KEY `ID_POST_GROUP` (`ID_POST_GROUP`),\n KEY `lngfile` (`lngfile`(24))\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
Sorry about the smilies, didn't know how to make them not show up.
Ok and the show create table for the location_country table now shows the collation as being COLLATE=latin1_general_ci?
Yes it does
CREATE TABLE `test_location_country` (\n `c2code` char(2) character set latin1 NOT NULL default '',\n `name` varchar(42) character set latin1 NOT NULL default '',\n `ID_MAP` smallint(5) unsigned NOT NULL default '0',\n PRIMARY KEY (`c2code`)\n) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
Ok try finding the collation on your database then:
SHOW CREATE DATABASE yourdatabasename;
Actually try doing this:
ALTER TABLE test_mm_pins MODIFY COLUMN `country` CHAR(2) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
ALTER TABLE test_location_country MODIFY COLUMN `c2code` CHAR(2) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
Great, that worked for the member map button (?action=mm), The who is still getting the collation error
Can you post the error message for that one?
Or try this query:
ALTER TABLE test_location_ip2country MODIFY COLUMN `c2code` CHAR(2) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
Is this situation unique to my server/host?
[error]
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
File: /home/allabout/public_html/test/Sources/Who.php
Line: 103
[error]
Quote from: Gobalopper on January 10, 2006, 04:51:54 PM
Or try this query:
ALTER TABLE test_location_ip2country MODIFY COLUMN `c2code` CHAR(2) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
YESss, that worked. Excellent and outstanding work. Thank you so much.
Well somehow your table collations got changed from what I think the default is for the overall database.
Basically what happens is your database has a set charset/collation, which can then be overridden at the table level or at the column level. So somewhere along there was a difference. Glad to see it is working again.
One last question, and thank you again, if I am to reinstall or install this on a different forum, do you think I will have to run these queries again to alter the tables?
Hmm... I'm not sure. You might have to, it depends on the setup really. It is possible it could happen again.
Work's fine!
BUT:
After installation, the error-log has thousands of entries like:
8: Use of undefined constant mm_mm - assumed 'mm_mm'
Datei: /YYYY/XXXXX/forum/Themes/default/Errors.template.php (eval?)
Zeile: 456
You have to replace $txt[mm_mm] in the index.template.php with $txt['mm_mm']
Then it will work free of errors :D
I oinly got this on various places during install, related bug?
It seems to work fine otherwise and no further errors.
http://furvert.net/smf/index.php?action=admin
8: Undefined index: mm_mm
File: /home/content/f/u/r/furvert/html/smf/Themes/default/Admin.template.php (eval?)
Line: 569
I love the Who Flags mod but I want to try the Google Map mod.
Unfortunately it wont work with your Location Mod at the same time;(
Do you think it is ok to make Who Flags independant of Location, I could probably figure out how if I looked into it. I suspect it just uses some functions but could be wrong.
Otherwise, do you know how to allow both maps to work at the same time?
Thanks Webster there was a bug with 1.1 RC1 that caused that. I have uploaded a new version.
And yes you could fairly easily make Who Flags work without have the other parts of the location mod installed.
The googlemap writer is also interested in getting both maps working together ;D
I may look into the Who Flags code then.
I managed to make it work with the who.template.php that shows users/guest/spiders but the Googlebot & Spiders Mod would not install on RC2, I need to post there on that. They used to use both together fine when I has 1.1b3p running. Likely not to hard to fix.
EDIT-Googlebot for RC2 is fixed 1.05 version
I use 1.1 RC1. Uploaded the mod with pacman, installed, fine. No errors. But then, when i do "...index.php?action=mm", it happens:
An Error Has Occurred!
Unable to load the 'main' template.
Can you help me?
there is a problem with rc1 pacman
if you check several of the mod files will have a 0k file size(cant remember which ones, but it has been answered in this thread)
just overwite with the files from the zipped mod
Thx for your help and sorry that i didn't find the answer in this thread! :)
Hi All,
Just like to say, I've spent the last 4 days trying to install this MOD on my 1.1RC2 site.
I encountered many problems during the 4 days, ALL of which were answered in this one thread.
Anyone having problems should really take time to read ALL the messages - the answers ARE there!!!
That said, my sincere thanks go to Gobalopper, for a brilliant MOD. Looking forward to the next incarnation!
I get the next error when i klik on member map ! :(
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
Bestand: /home/jmtech/domains/jmtech.nl/public_html/gifkikkernederland/Sources/MemberMap.php
Regel: 101
And i read this whole list of postings !
edit: problem solved, 1 had only one map selected, now with two.
But i still have a other problem,
When i go to member map , i see a map but when i whant to put a pin, i dont see a map , only city en country field ?? is there somting wrong ??
And i get this error code on my forum !
8: Undefined index: map
Bestand: ........rland/Themes/default/MemberMap.template.php (eval?)
Regel: 183
What is this mod? What does it do?? How is it different from Google Member Map ?
This mod basically, has a normal image map. You place a pin for where u live... Google Member Map uses the google maps to generate the map instead of static images..
Quote from: Hans_de_Echte on January 18, 2006, 09:54:22 AM
And i get this error code on my forum !
8: Undefined index: map
Bestand: ........rland/Themes/default/MemberMap.template.php (eval?)
Regel: 183
Set a default map in admin cp
when on the member map do a refresh/reload
Quote from: DemonicInfluence on January 18, 2006, 01:53:09 PM
This mod basically, has a normal image map. You place a pin for where u live... Google Member Map uses the google maps to generate the map instead of static images..
oh okay
so then which is better
i wudnt want 2 similar mods on my site
Quote from: Prasad007 on January 18, 2006, 11:43:11 PM
Quote from: DemonicInfluence on January 18, 2006, 01:53:09 PM
This mod basically, has a normal image map. You place a pin for where u live... Google Member Map uses the google maps to generate the map instead of static images..
oh okay
so then which is better
i wudnt want 2 similar mods on my site
They both have very good points and I have used the location mod for a long time (since it was first introduced here, same person did it for yabb too)
When I upgraded to rc2 I did a poll with our staff members and the results bordered on the google map , so we are currently using that. Would be cool if both mod authors could kinda combine each others mods as i miss the flags etc but seeing and putting a pin on my houses roof in australia is kinda cool too lol)
Up to you what you choose but the writer for this mod did put in a lot of work over a long period of time :)
Quote from: oscar2001 on January 19, 2006, 12:37:41 AM
Quote from: Prasad007 on January 18, 2006, 11:43:11 PM
Quote from: DemonicInfluence on January 18, 2006, 01:53:09 PM
This mod basically, has a normal image map. You place a pin for where u live... Google Member Map uses the google maps to generate the map instead of static images..
oh okay
so then which is better
i wudnt want 2 similar mods on my site
They both have very good points and I have used the location mod for a long time (since it was first introduced here, same person did it for yabb too)
When I upgraded to rc2 I did a poll with our staff members and the results bordered on the google map , so we are currently using that. Would be cool if both mod authors could kinda combine each others mods as i miss the flags etc but seeing and putting a pin on my houses roof in australia is kinda cool too lol)
Up to you what you choose but the writer for this mod did put in a lot of work over a long period of time :)
oh okay thanks for the info!
QuoteWould be cool if both mod authors could kinda combine each others mods as i miss the flags etc but seeing and putting a pin on my houses roof in australia is kinda cool too lol)
yeah that would be really great!! :)
En stil get this error, al the files al fine, al the maps exist, what is the solution ???
http://.............../index.php?action=mm;sa=edit
8: Undefined index: map
Bestand: /home/...............rnederland/Themes/default/MemberMap.template.php (eval?)
Regel: 183
Quote from: beemer on January 18, 2006, 02:28:16 PM
Quote from: Hans_de_Echte on January 18, 2006, 09:54:22 AM
And i get this error code on my forum !
8: Undefined index: map
Bestand: ........rland/Themes/default/MemberMap.template.php (eval?)
Regel: 183
Set a default map in admin cp
when on the member map do a refresh/reload
that is the FIX!
Ok sorry, i try that, iám go to cp and set a default map. i save that en go to membermap, 1 see the card i set default, then i click on place your pin, next screen noting know map at all, i push CTRL+F5 nothing happens , yes one thing is happen the row numbers in the error are increasing 181,182,183 etc etc .. and i get the same error ! now wath ??
8: Undefined index: map
tech.nl/public_html/gifkikkernederland/Themes/default/MemberMap.template.php (eval?)
Row: 183
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
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
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';
}
}
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
Thanks Oscar....all sorted now!
np glad thats it all it was lol :)
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
nope... RC2... and all my membermap files are correct and everything works fine... except in the admin section!
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.
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...
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?
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.
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/ (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
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__);
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.
just unzip and then copy the flags into your flags folder?
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.
so I can just do it manually you think? does anyone know what goes where and what I'd have to edit?
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.
No, i has new flags..
Or else why is it called extra flags?
Unzip and just follow the package_info.xml instructions..
The flags are already in the main mod. This one is a whois add-on which shows flags in the whois area according to IP.
There's a 1.6 MB csv file there which is what gets stuck.
Quote// populate the ip2country table
$fp = fopen($boarddir . '/Packages/temp/ip-to-country.csv', 'r');
while (list($ip_from, $ip_to, $c2code) = fgetcsv($fp, 1000, ','))
{
$c2code = strtolower($c2code);
db_query("
INSERT INTO {$db_prefix}location_ip2country
VALUES ('$ip_from', '$ip_to', '$c2code')", __FILE__, __LINE__);
}
fclose($fp);
and that csv file is being called in the code.
Yes it stores the IP addresses in the database and then checks against that to find out what country they are from. You need to have that there in order for it to work.
sorry to bother you all,
but i have the following problem :
i have installed the Location-Mod in 1.0.5 (English) and it works perfekt !,
when i change the language to German, it does'nt work at all.
i did a new install of 1.0.5 and first changed the language to German,
then i tried to install the Location-Mod which did'nt work.
does anybody know which files have to be edited, so that i can install it with a German 1.0.5
thanks in advance
You would have to translate it to German first.
got it working without having to translate it, now that it's working i can set about translating the English text.
all i did was the following :
copied the contents of Modifications.english.php into Modifications.german.php
and copied mm.gif into ./themes/default/images/german
Ok let me know when you do and I will include it with the next release.
Quote from: beemer on January 28, 2006, 10:37:18 AM
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__);
Just me getting this error trhen?
Can you post that entire query?
Gobalopper I will do so when I get home later!
What do you want?
// get all the pins
$request = db_query("
SELECT p.ID_MAP, p.ID_MEMBER, p.xPin, p.yPin, p.country, p.city, mem.gender, mem.realName, c.name
FROM {$db_prefix}mm_pins AS p, {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}location_country AS c ON c.c2code = p.country
WHERE (p.xPin BETWEEN {$context['maps'][$ID_MAP]['xStart']} AND {$context['maps'][$ID_MAP]['xEnd']})
AND (p.yPin BETWEEN {$context['maps'][$ID_MAP]['yStart']} AND {$context['maps'][$ID_MAP]['yEnd']})
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER BY c.name, mem.realName", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$context['pins'][$row['ID_MEMBER']] = array
(
'ID_MAP' => $row['ID_MAP'],
'xPin' => round(($row['xPin'] - $context['maps'][$ID_MAP]['xStart']) * $context['maps'][$ID_MAP]['scale']) - 4,
'yPin' => round(($row['yPin'] - $context['maps'][$ID_MAP]['yStart']) * $context['maps'][$ID_MAP]['scale']) - 4,
'ccode' => $row['country'],
'country' => $row['name'],
'city' => $row['city'],
'gender' => $row['gender'],
'name' => $row['realName'],
'text' => (!empty($row['city']) ? $row['city'] . ', ' : '') . implode(', ', array($row['name'], $row['realName'])),
);
}
obExit();
}
Do you have a mm_pins table? Maybe try re-installing the mod if you don't.
Quote from: Gobalopper on February 02, 2006, 01:44:00 PM
Do you have a mm_pins table? Maybe try re-installing the mod if you don't.
Yep populated with 70 records
Thinking it may be related to the php 5.0.5 & mysql 5.0.15 on my test pc will try it on older versions at the weekend
I like dirt ;D
Quote from: Gobalopper on January 31, 2006, 04:01:02 PM
Yes it stores the IP addresses in the database and then checks against that to find out what country they are from. You need to have that there in order for it to work.
Gobalooper do you think you could come up with a solution for that add-on? Isn't there some way the csv file could be shrunk or a liter version could be created?
The CSV file is already shrunk down from its original size. Basically if you want to be accurate it has to be that big.
You could try loading the csv file into MySQL using a query browser instead but that would depend on what sort of access you have to your database.
How can I edit or remove a pin put by someone?
Quote from: haktanir2 on February 04, 2006, 11:33:03 AM
How can I edit or remove a pin put by someone?
You will have to use phpmyadmin
Quote from: beemer on February 04, 2006, 01:01:59 PM
Quote from: haktanir2 on February 04, 2006, 11:33:03 AM
How can I edit or remove a pin put by someone?
You will have to use phpmyadmin
Ok and what would I look for? I mean what's the table name?Figured it out.
Hi Gobalopper
Sorry to hassle you but can you advise if this mod works on 1.0.6 ?
I have had mega hassles upgrading to 1.0.6, and with other mods working I don't want to install it again if it will cause problems.
Rob
Gobalopper, how could additional maps you have not provided me added, such as a large map of Turkey?
I've updated the package-info.xml file so the install works under 1.0.6, no code changes were needed.
I will see what I can do for a Turkey map.
I have install all of this just minutes ago on smf 1.1rc2 and it works awesome but I can`t place a pin, Is there a simple fix ???
EDIT: got it. Sorry bout that. I had to edit the script file.
Very good mod ;)
Is there any way to find a Greek map ?
Im using smf 1.0.6 and has install previous version of location mod.
My question is if i want to upgrade to the latest version should i uninstall the previousn version?
and will there be any problem with 1.0.6?
Thanks
@ aku: Yeah, it would probably be a good idea to uninstall the first one first. As for any problems, that I`m not sure about.
@ Yngwiedis: There are extra maps that come with it. Is there not a Greek map there ???
You can prolly add your own?
I installed this but it only gave me the option of the world map.
When trying to figure out how to get the other maps working, I think i installed it again.
Now I have two Location Map buttons on my boards. :(
Trying to un-install it only un-installed 1 button, and now the other button doesnt work, just given errors all over the place.
Anyone know a quick fix for this? :'(
Ok I managed to remove the non-working button (by replacing a backup file of index.template.php) but the Location Map link is still in my Admin Panel...
This is not too much of a problem, but I would like it to not be there!
Anyone know a fix for this!
...
Just out of interest, how do you install the other maps? As I only ever get the world map, and nothing else!
Install them through the package manager like you did the map mod.
Hi
Thats what I did!, but it said 'This is already Installed, you should un-install it first to stop any problems'... So I installed it anyway, and it gave me 2 Member Map buttons!... When I then un-installed it, only one of the buttons went away, leaving one button which gave the site errors ...
In the end I had to completly re-install my site from a backup (over-wrote all files) and re-installed the database from a backup.
I've done it now, but I had to download the extra maps, un-zip them, then I up-loaded the maps I wanted and entered the info direct in to my database by Myphp Admin.
Its working, great mod, by the way.
Just wondering if there is a Map of Spain, as this seems to be missing, or is the author working on that one?
:D
I had the same problem as you, djalecc. However, I didn't hit proceed to install the package. In which part of the database do I put the maps? I already extracted the images.
-Shayna
@ djalecc: Thats wierd because all I did was use package manager and it all installed great. Glad you got it working though.
Quote from: stargazer_1017 on March 07, 2006, 07:30:12 PM
I had the same problem as you, djalecc. However, I didn't hit proceed to install the package. In which part of the database do I put the maps? I already extracted the images.
-Shayna
Hi.. Up load the Map Images you want to use to
http://yourdomain.com/forum/Themes/default/images/maps/
Then you need to go in to your database via PHP My Admin.
Look for table called mm_maps and click INSERT
If you open the file called 'install.php' in a text editor like notepad, you will see the values you need to enter in to the database there... here are a few examples.
18, 'GB-IE.gif', 'United Kingdom', 2850, 3032, 415, 585, 4, 1
19, 'FR.gif', 'France', 2929, 3119, 560, 725, 4, 1
20, 'CZ-SK.gif', 'Czech Republic, Slovakia', 3170, 3330, 560, 625, 4, 1
Just enter the Values direct in to the boxes you see in PhpMyAdmin table mm_maps no need to enter the , or ' which soround the names etc, and make sure you enter then in order from top to bottom. (Example = After you click 'Insert' in phpmyadmin on the table mm_maps in the top box enter
18 in the second box enter
GB-IE.gif in the third box enter
United Kingdon in the 4th box enter
2850 in the 5th box enter
3032 in the 6th box enter
415 in the 7th box enter
585 in the 8th box enter
4 and in the 9th box enter
1. Then click the GO button to save it.
Providing you have uploaded the correct MAP GIF to the correct place, it will now show up correctly! ;D
Repeat the process for any map you have uploaded to the Maps folder!
Wow, thank you djalecc! I probably shouldn't hit proceed on the installation through package manager then, right? I'll try what you suggested and see if it works for me *crosses fingers*
-Shayna
Quote from: stargazer_1017 on March 09, 2006, 03:12:56 AM
Wow, thank you djalecc! I probably shouldn't hit proceed on the installation through package manager then, right? I'll try what you suggested and see if it works for me *crosses fingers*
-Shayna
Good Luck ! ;)
It worked! Thank you very much, djalecc! I appreciate it lots :)
-Shayna
Quote from: Bigguy on March 04, 2006, 01:02:26 AM
@ Yngwiedis: There are extra maps that come with it. Is there not a Greek map there ???
I dont see any Greece's only map in the package of extra maps...
Sorry if this has been covered... but can you fix the Location Mod to work with Firefox Browser? :D
Works fine for me with FireFox ...
Quote from: hebxi1 on March 11, 2006, 09:53:06 AM
Works fine for me with FireFox ...
Don't know why its not working with mine then... :'(
All I get is one dot in the upper right corner :'(
Make sure that you don't have the javascript file cached from before you installed the mod and also make sure that if you are using a custom theme that the javascript gets added to the javascript file for that theme.
Quote from: Gobalopper on March 11, 2006, 11:22:21 AM
Make sure that you don't have the javascript file cached from before you installed the mod and also make sure that if you are using a custom theme that the javascript gets added to the javascript file for that theme.
Not sure what you mean there, but I dont use FireFox... only just quickly checked it today (as I sometimes check my sites with firefox). All I can say is... this is the first time I've ever tried to load the Map page with FireFox and it don't work! :'(
Just trying to please the 3 people in the world that seem to use it!!!!!!!! LOL
I use firefox as well. . .the only thing that's a bit off is where the pins show up after you save it. I put my pin on Hawaii, and I have to put it a bit lower from Hawaii in order for it to be saved on the actual island chain.
-Shayna
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.
Gobalopper,
I want to make up maps for the states of Australia ....
In the mod we only have the one which incorporates most of the region - Auss and everywhere around it. What I need to make up is a separate map for all of the states and New Zealand. When I work with the "Global Map" I can't zoom in very far before it becomes out of wack and blurred etc - any chance of getting a copy of your big "Global Map" - the one you used to make your maps, might just make life a little easier ....
rotor
how can I move User Listing to under Place Your Pin ? Thanks
I've this problem.
What do I have to do?
If somebody could it in German, it would be great, but English is good as well. Thanks a lot in advance:
Unknown column 'p.country' in 'on clause'
File: /homepages/16/d153720143/htdocs/forum/Sources/MemberMap.php
Line: 101
:'(
Quote from: Astaroth27 on March 15, 2006, 03:20:27 PM
I've this problem.
What do I have to do?
If somebody could it in German, it would be great, but English is good as well. Thanks a lot in advance:
Unknown column 'p.country' in 'on clause'
File: /homepages/16/d153720143/htdocs/forum/Sources/MemberMap.php
Line: 101
:'(
I've the same problem ??? Anyboy could help us ?
Thank
EDIT :
I've found some information that may help to resolve the problem. In Profil_Info / Track_User :
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/Memberlist.template.php (eval?)
Ligne: 533
?action=mlist Today at 14:48:19
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/PersonalMessage.template.php (eval?)
Ligne: 533
?action=pm Today at 14:48:15
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/languages/Who.french.php (eval?)
Ligne: 533
?action=profile Today at 14:48:13
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/Admin.template.php (eval?)
Ligne: 533
?action=admin Today at 14:48:12
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Sources/Subs.php
Ligne: 2750
?action=admin Today at 14:48:12
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/Search.template.php (eval?)
Ligne: 533
?action=search Today at 14:48:11
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/languages/Manual.french.php (eval?)
Ligne: 533
?action=help Today at 14:48:09
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/BoardIndex.template.php (eval?)
Ligne: 533
Today at 14:48:07
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/Packages.template.php (eval?)
Ligne: 533
?action=packages;sa=browse Today at 14:47:55
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Sources/Subs.php
Ligne: 2750
?action=packages;sa=browse Today at 14:47:55
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Themes/default/Packages.template.php (eval?)
Ligne: 533
?action=packages;sa=browse Today at 14:47:50
195.6.25.114 8: Undefined index: mm_mm
Fichier: /homepages/15/d148587084/htdocs/Forum/Sources/Subs.php
Ligne: 2750
?action=packages;sa=browse Today at 14:47:50
195.6.25.114 512: parseModification(): The filename 'index.php' is not a full path!
Fichier: /homepages/15/d148587084/htdocs/Forum/Sources/Subs-Package.php
Ligne: 1329
?action=packages;sa=install2;package=gobalopper.locationmod.zip Today at 14:47:25
195.6.25.114 512: parseModification(): The filename 'index.php' is not a full path!
Fichier: /homepages/15/d148587084/htdocs/Forum/Sources/Subs-Package.php
Ligne: 1329
?action=packages;sa=install;package=gobalopper.locationmod.zip Today at 14:47:21
My default language is French. I switch to English and I 've got no more log mm_mm error
It looks to me like the mod didn't install correctly because it is not finding a column from a table that is created when you install the mod. Can you see if you have the tables mm_pins, mm_maps, location_country?
And the mod only supports English right now so other languages will give you that error.
I've tried to re-install SFM 1.1 RC2 (English version with Mysql 5.0 table). Then I Install Location Mod and I've still the same error.
I check the table and I see mm_pins (0 enr) , mm_maps(1 enr) , location_country(239 enr).
Due to the Track below, there were error during the mod installation :
195.6.25.114 admin Database Error: Unknown column 'p.country' in 'on clause'
File: /homepages/15/d148587084/htdocs/Tests/Forum_test/Sources/MemberMap.php
Line: 101
?action=mm Today at 09:19:07 AM
195.6.25.114 admin 512: parseModification(): The filename 'index.php' is not a full path!
File: /homepages/15/d148587084/htdocs/Tests/Forum_test/Sources/Subs-Package.php
Line: 1329
?action=packages;sa=install2;package=gobalopper.locationmod.zip Today at 09:17:42 AM
195.6.25.114 admin 512: parseModification(): The filename 'index.php' is not a full path!
File: /homepages/15/d148587084/htdocs/Tests/Forum_test/Sources/Subs-Package.php
Line: 1329
?action=packages;sa=install;package=gobalopper.locationmod.zip Today at 09:17:37 AM
May be this help you.
Unknown column 'p.country' in 'on clause'
File: C:\xxx\xxx\xxx\xxx\xxx\Sources\MemberMap.php
Line: 101
What a **** is that?
Look back on page 55 There might be an answer there.
Didn`t find it :(
Sorry, I thought I seen the same error as that back there. Sorry to waste your time. :)
Thanks for trying to help :D
Was there any errors on installation?
No, after, when try opening ?action=mm from mainmenu on top
getting the same errors on a upgraded 1.1b3 -> 1.1rc2 - had no problems testing the mod on a spanking new 1.1rc2 install, but not after upgrading
Can you do a DESCRIBE smf_mm_pins in your MySQL query browser. I want to see if that column is actually there.
yup, the column appears to be there
Edit Delete ID_MEMBER mediumint(8) unsigned NO PRI 0
Edit Delete ID_MAP smallint(5) unsigned NO MUL 0
Edit Delete xPin smallint(5) unsigned NO 0
Edit Delete yPin smallint(5) unsigned NO 0
Edit Delete country char(2) NO MUL
Edit Delete city varchar(50) YES
is what it gave me in phpmyadmin
What version of MySQL are you running?
Not unique table/alias: 'pin'
File: /home/ipococo/public_html/xforums/Sources/Load.php
Line: 477
I'm suddenly getting the above error after installing the location mod, additional maps and flags.
I can add a post but the error shows up when I go to read a post.
Any ideas appreciated
Thanks
C
Had you installed this mod before? Or accidently installed it twice maybe? Were there errors on install?
Unknown column 'p.country' in 'on clause'
File: C:\Program Files\xampp\htdocs\erik\forum\Sources\MemberMap.php
Line: 101
Hwo to fix this??
Anyone willing to help me?
Quote from: Erik™ on March 23, 2006, 11:08:10 AM
Unknown column 'p.country' in 'on clause'
File: C:\Program Files\xampp\htdocs\erik\forum\Sources\MemberMap.php
Line: 101
Hwo to fix this??
Anyone willing to help me?
Install the additional maps, then set a default map in adminCP
Done, don`t work, same message...
dudes.
I must be a moron. Forum had been working well, used pkg mgr to install mod, site error occurred, removed the 'arcade' mod, which magically allowed users to begin viewing threads again..so, I assume there must be some sort of conflict there, as well. Just to mention it.
Now, here's where the problem comes from. I have NO IDEA what I am doing, what I need to modify, where I need to place the button, how to link to it, etc..... at this point, the package is installed, but has no functionality, since I have done nothing but 'apply mod' from manager.
The instructions in the text file merely give a shout to the creator. No info I could find on what to do after application of the mod. I have searched pretty much all of the 59 pages in this thread, but can find no specifics. Am I correct in that 3 files need to be modified? I have my google ID, and once again, no idea how to add it to the code....lol...or even which code file I need to add it to. I think I need the grand 'ole click here, type this on this line, etc.
Any use in me trying to forge ahead, or should I just uninstall, cause I am not knowledgeable enough to get past this hump?
skyshroud I think you have the wrong thread, this isn't the Google member map.
Erik same question for you, what version of MySQL are you running?
Quote from: Erik™ on March 23, 2006, 12:39:55 PM
Done, don`t work, same message...
Was this a new install or was it on a forum you upgraded?
I had exactly the same error on a forum I upgraded
I think I deleted all location mods from within package manager and reinstalled, and it fixed it
Using a totaly clean rc2, installed, not upgraded... :(
Quote from: beemer on March 23, 2006, 02:05:58 PM
I think I deleted all location mods from within package manager and reinstalled, and it fixed it
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
Fil: C:\Program Files\xampp\htdocs\erik\forum\Sources\MemberMap.php
Linje: 101
Quote from: Erik™ on March 23, 2006, 02:09:42 PM
Quote from: beemer on March 23, 2006, 02:05:58 PM
I think I deleted all location mods from within package manager and reinstalled, and it fixed it
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
Fil: C:\Program Files\xampp\htdocs\erik\forum\Sources\MemberMap.php
Linje: 101
Yep that one sounds familiar too
As I recall something was clashing I didnt have all the options available in pacman to uninstall, apply etc for the 3 location mods and deleting one (sorry cant remember which one) let me apply the mod again.
Are you just using the default theme?
Have you checked to see if pacman applied the updates to the theme files are the maps and flags present in there folders?
Using default theme, but now I deleted whole forum (just a local test-forum)...
Gonna reinstall...
thanks, Global....directed my comment to the proper thread....
see my earlier Moron comment...
lol
um - okay - not sure if this is the right place to post this but I think it is.
I'm using smf 1.0.6, and TP. I had some problems getting the location mod to work in TP but seem to have resolved them. I did install and uninstall Location Mod several times which seemed to add multiple requests to several files like load.php
like the below example:
$select_columns = "
IFNULL(lo.logTime, 0) AS isOnline, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, mem.signature,
mem.personalText, mem.location, mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName, mem.realName,
mem.emailAddress, mem.hideEmail, mem.dateRegistered, mem.websiteTitle, mem.websiteUrl, mem.birthdate,
mem.memberIP, mem.location, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin, mem.karmaGood,
mem.ID_POST_GROUP, mem.karmaBad, mem.lngfile, mem.ID_GROUP, mem.timeOffset, mem.showOnline, pin.country, c.name, pin.country, c.name, pin.country, c.name, pin.country, c.name, pin.country, c.name,
mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,
pg.onlineColor AS post_group_color, IFNULL(pg.groupName, '') AS post_group,
IF((mem.ID_GROUP = 0 OR mg.stars = '')$moderator_fix[pg], pg.stars, mg.stars) AS stars" . (!empty($modSettings['titlesEnable']) ? ',
mem.usertitle' : '');
$select_tables = "
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_country AS c ON (pin.country = c.c2code)
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS pg ON (pg.ID_GROUP = mem.ID_POST_GROUP)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = $moderator_fix[mg])";
but I've cleaned all that up and it seems to be working fine except for one annoying issue that I can't seem to find.
Here are the clues:
A users country flag shows up 4 times in all posts and the flag associated with the country ip he or she is coming in from appears twice in the who's online jazz.
When using the TP theme I added the munu item and button for membermap and it shows once along the top as it should, however, if one uses the default SMF theme the menu item for member map shows 4 times.
At first I thought there might be multiple items in the DB itself that was causing mm to output multiple iterations of a single users flag - but I can't seem to find anything wrong in the DB.
I've looked thru all the code modified by MM (Location mode) and can't seem to find anything out of place.
What am I missing here?
Thanks
C
www.ipoco.com (http://www.ipoco.com)
the four flags must be the code in (your theme)display.template
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';
it only seems to be there once . . .
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';
it shows up 5 times if you view source
Try comparing your display template with the original you can use winmerge for comparing files
http://winmerge.sourceforge.net/
Quote from: Gobalopper on March 23, 2006, 01:36:47 PM
Erik same question for you, what version of MySQL are you running?
I've made some test. The mod generate the error message when using a MySQL 5.0 and work correctly with MySQL 4.0
I hope this may help you to solve the problem
Thanks OncleBen, thats what I was starting to think. I will look into a fix.
fixed - winmerge was a great help
so is PHP Designer (http://www.mpsoftware.dk/phpdesigner.php)
i tried to install this mod on a fresh and clean installed 1.1 rc.2
first i got errors that the mod cannot be installed correct
7. Execute Modification smf1.1.x/install.xml Modification parse error
8. Execute Modification - Modification parse error
After doing all by hand installing the tables changing all the files by hand, the button apears, the admin panel is working but when i click on the member_map button the following error is shown
Unknown column 'p.country' in 'on clause'
File: /www/.../htdocs/smf/Sources/MemberMap.php
Line: 101
mysql version is 5.0.18
Theme is default, language is english
Whats wrong?
Stefan
If done some tests and have found there is a problem with this sql statement
MemberMap.php
// get all the pins
$request = db_query("
SELECT p.ID_MAP, p.ID_MEMBER, p.xPin, p.yPin, p.country, p.city, mem.gender, mem.realName, c.name
FROM {$db_prefix}mm_pins AS p, {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}location_country AS c ON c.c2code = p.country
WHERE (p.xPin BETWEEN {$context['maps'][$ID_MAP]['xStart']} AND {$context['maps'][$ID_MAP]['xEnd']})
AND (p.yPin BETWEEN {$context['maps'][$ID_MAP]['yStart']} AND {$context['maps'][$ID_MAP]['yEnd']})
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER BY c.name, mem.realName", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
when i change some parts of the SQL the map is shown. Seems to be incompatible or something else.
But i have no solution for the problem, it was only a test.
Stefan
after a little try and error, this seems to work
// get all the pins
$request = db_query("
SELECT p.ID_MAP, p.ID_MEMBER, p.xPin, p.yPin, p.country, p.city, mem.gender, mem.realName, c.name
FROM {$db_prefix}mm_pins, {$db_prefix}members AS mem
LEFT JOIN ({$db_prefix}location_country AS c, {$db_prefix}mm_pins AS p) ON (c.c2code = p.country)
WHERE (p.xPin BETWEEN {$context['maps'][$ID_MAP]['xStart']} AND {$context['maps'][$ID_MAP]['xEnd']})
AND (p.yPin BETWEEN {$context['maps'][$ID_MAP]['yStart']} AND {$context['maps'][$ID_MAP]['yEnd']})
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER BY c.name, mem.realName", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
Thanks fun4us, I've been meaning to get a server where I could test with MySQL 5 but haven't been able to. I will try to get a new version out shortly with that fix.
Yeah it works now :D
Very nice mod, but i have to install it step by step because the installation would'nt work. Don't know why because it was a fresh install ...
but it works - *smile* :D :D
How can an Admin change the users pins (move / delete /add)?
Stefan
Quote from: fun4us on March 28, 2006, 11:02:38 AM
Yeah it works now :D
Very nice mod, but i have to install it step by step because the installation would'nt work. Don't know why because it was a fresh install ...
but it works - *smile* :D :D
How can an Admin change the users pins (move / delete /add)?
Stefan
Not easily, would be a nice feature
You have to edit in phpmyadmin
Does the Location Mod work with the latest version (1.0.7)?
I have a clean install of 1.0.7, and when I try to install the mod through PacMan, it comes up with
Install Actions for archive gobalopper.locationmod.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Then, when I am taken back to the Package manager install page, I am only presented with the option of 'List Files' (this works, and all the files in the package are there) and 'Delete' - no 'Install/Uninstall' option.
Install worked under 1.0.6 on same server with same settings.
Absolutely no reason why it shouldnt work on 1.07
But you will need to edit package-info.xml and add 1.07 to it
Quote from: Bigguy on February 15, 2006, 04:32:08 PM
I have install all of this just minutes ago on smf 1.1rc2 and it works awesome but I can`t place a pin, Is there a simple fix ???
EDIT: got it. Sorry bout that. I had to edit the script file.
hi bigguy
I think I have the same problem now I have joomla. I cant place a pin as it doesnt display the map anymore (it used to work perfectly before the bridge)
Would you pls be able to tell me what you did exactly to fix the problem
~thanks very much
i found that the google map wont really work with Joomla so I uninstalled it and moved it to Joomla as they also offer a google member map.
Most likely its a javascript problem. Make sure you have the pin placement code in your javascript files.
Quote from: fun4us on March 28, 2006, 05:55:12 AM
Unknown column 'p.country' in 'on clause'
File: /www/mineralienatlas/htdocs/smf/Sources/MemberMap.php
Line: 101
I get the same error, but without any errors during the installation of the mod. I use 1.1 RC2. I suppose there's a line missing in the installation, which doesn't add this column to a table. Are you sure, that the column is called "p.country" and not simply "country" in mm_pins?
I think the problem is related to MySQL 5. Is that what you are running?
Error : Unknown column 'p.country' in 'on clause'
I googled "phpinfo.zip" and this is what it revealed ...
PHP Version 5.1.2
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
Ok there is a new version of locationmod.zip posted, give that a try for those of you with MySQL 5.
Ok disregard my last post. :)
I've finally gotten a server to test with MySQL 5 and the version I've just posted should work.
If you already have the mod installed then you can look for this:
FROM {$db_prefix}mm_pins AS p, {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}location_country AS c ON c.c2code = p.country
and replace it with this:
FROM {$db_prefix}members AS mem
LEFT JOIN ({$db_prefix}location_country AS c, {$db_prefix}mm_pins AS p) ON (c.c2code = p.country)
great little mod i like it :) im just wondering how do i use the "who flags" part of the mod??? i cant see the flag when i am online isnt that what it does?? ???
You have to look in action=who..
Quote from: perplexed on April 02, 2006, 10:06:38 AM
Quote from: Bigguy on February 15, 2006, 04:32:08 PM
I have install all of this just minutes ago on smf 1.1rc2 and it works awesome but I can`t place a pin, Is there a simple fix ???
EDIT: got it. Sorry bout that. I had to edit the script file.
hi bigguy
I think I have the same problem now I have joomla. I cant place a pin as it doesnt display the map anymore (it used to work perfectly before the bridge)
Would you pls be able to tell me what you did exactly to fix the problem
~thanks very much
I'm having this problem too. Does anyone know how to fix this? Bigguy, do you know what script we need to edit? Thanks!
This could be the problem
Quote from: Gobalopper on April 02, 2006, 04:51:02 PM
Most likely its a javascript problem. Make sure you have the pin placement code in your javascript files.
Hey this is an AWESOME mod I love it!!! Just a quick request: Is there any way I can get a map of the West Coast of America? Like, maybe, Oregon and surrounding areas or something like that? Just about ALL of my members are from southern Oregon and surrounding areas and it doesn't do too much good to have a map that just has a jumble of dots all in one area that you can't distinguish from or zoom in. If this is at all possible I would GREATLY appreciate it.
Many Thanks!!
-Mike
P.S. And if you really want to you could even do a map of the Rogue Valley, OR (Medford, OR - Central Point, OR, Etc.) If you want to, You don't have to. Thank you very much!
hi galopper,
did you any updates in this mod?
i tryed to install but in 1.0.7 and 1.1.RC2 it says check file permissions ,but i gave every one 777.
pls check it.
Hi All,
I've installed this mod via the package manager, but am receiving the following error when selecting the 'member map' button from the main forum index:
Database Error
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country) WHERE ' at line 4
File: /var/www/html/forums/Sources/MemberMap.php
Line: 101
Any ideas on what is causing this? Im using SMF 1.0.7 and the installation didnt advise of any errors. I was unable to find anything via search of the forums.
Any help is very much appreciated :)
Thanks for your time!
Okay, I really tried to search throughout the thread but at 62 pages and having to get up early in the morning I figured it wouldn't hurt to ask. My apologies if it has come up alot as it could be a common question/request.
Is it possible to insert the flag input information from the Member Map and place it on the profile page? Like in this picture (with the flag coming up too, possibly)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg134.imageshack.us%2Fimg134%2F1579%2Ftest51tq.png&hash=6ac22e670bffd26bce08b5b4742f4605c999a312)
(I was in a rush so pretend city meant flag) ;)
Since we just converted to SMF from Invision, we had a cool flag feature that we could setup through the profile, yet having to do it through the World Map would be confusing for the members so if possible, if someone could provide the correct code (of course after they've confirmed it can be done or not :P) then I would be very appreciative.
Thank you in advance, oh and excellent mod!
I know the whole "Does anyone know this" type bump is annoying and I understand that some people may have seen this question and are working on it right now. Yet in another way it's hoped that I'm not ignored aswell, sorry about the bump yet I would really like to know. I've tried countless of times to adapt the script from the Membermap template into the profile template yet the closest I get is the drop down select box with nothing in it. Could anyone share any light on this?
Thanks in advance,
Broomie
Okay. i can help with the flag but not the other part with country next to the flag..
Also, this is using the Location Mod stuff so if they lie there it might mess the thing up.. Anyway:
In profile.template.php
find:
<tr>
<td width="40%"><b>', $txt[231], ': </b></td>
<td>
<select name="gender" size="1">
<option value="0"></option>
<option value="1"', ($context['member']['gender']['name'] == 'm' ? ' selected="selected"' : ''), '>', $txt[238], '</option>
<option value="2"', ($context['member']['gender']['name'] == 'f' ? ' selected="selected"' : ''), '>', $txt[239], '</option>
</select>
</td>
</tr>
Add after:
<tr>
<td width="40%"><b>Flag: </b></td>
<td>
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />
</td>
</tr>
I have not tested this. But I think it should work.
Well I added it but wouldn't that display the flag once it's selected? Since there is no flag to select I'm guessing nothing will come up, is there a way for the drop down menu which is on the member map to be displayed on the profile and saved?
Thanks anyway, much appreciated.
LOl. That is beyond me :(
the drop down list ur looking to add can be done using [unknowns] tutorial (http://www.unknownbrackets.com/tutorials/custom-profile)
check it out and lemme know if it makes any sense?
I made something similar but with "religion icons"
But for country icons the drop down option list will be pretty huge with over 140 entries (140 countries) additionally ull have to rename 140 flag files exactly the same as in the drop down list options so it will be a head ache to make
But still have a loot at the tutorial
I did it! I'll post it as a package later on.
Thank you everyone, especially akulion (or is that [unknown] :P) since that tutorial really helped.
Does anyone know how to manual install the whoflags mod. Thanks :P :P :P
Quote from: Broomie on May 01, 2006, 04:55:30 PM
I did it! I'll post it as a package later on.
Thank you everyone, especially akulion (or is that [unknown] :P) since that tutorial really helped.
great job!
really looking forward to ur mod post! i also need it :D lol
Users of the forum are consistently getting an error message - as follows:
An Error Has Occurred!
You cannot view the member map.
Members have reported the problem occurs no matter which browser they are using.
Fix??
- Dan
Quote from: DHC on May 02, 2006, 09:07:59 PM
Users of the forum are consistently getting an error message - as follows:
An Error Has Occurred!
You cannot view the member map.
Members have reported the problem occurs no matter which browser they are using.
Fix??
- Dan
Nevermind - I found the answer (simple).
- Dan
Guys, as with another guy that posted here, I'm getting this error message...
Not unique table/alias: 'pin'
File: /home/forum/Sources/Load.php
Line: 788
How can I correct this? Also I have uploaded all three packages and yet only have to install one for them all to state that they're installed?? whats going on there?
Finally, I have three instance of 'Member Map' across the top navigation bar, what file do I have to edit to change that? I'm using the Default Theme.
Appreciate your help with this great mod!
Cheers, Ash
With the flag code, I'm having trouble making it into a package. If I give someone the code and the flags would they be able to make it into a package?
Thanks,
Broomie
Quote from: ashleyhall on May 04, 2006, 04:35:52 PM
Guys, as with another guy that posted here, I'm getting this error message...
Not unique table/alias: 'pin'
File: /home/forum/Sources/Load.php
Line: 788
How can I correct this? Also I have uploaded all three packages and yet only have to install one for them all to state that they're installed?? whats going on there?
Finally, I have three instance of 'Member Map' across the top navigation bar, what file do I have to edit to change that? I'm using the Default Theme.
Appreciate your help with this great mod!
Cheers, Ash
3 instances remove the 2 extra member map things in your index.template.php lol.
Spotted that one last night, but thanks anyway, all sorted now, just a shame the install routine doesn't work properly.
What does this mod actually do ? Show the members location ?
It shows the members location on a world map or several others you can choose from.
Hey, how would I go about adding another map to the mod? I want to be able to zoom in more on Oregon and surounding areas.
With this mod I don`t think it actually allows you to zoom in on anything. There are however different maps of the world to choose from as well as a world map. The google member map allows you to zoom.
I know that. I was wondering if anyone could help me get another map that is zoomed in more. Like for instance the other maps DO exist, how can I create another one?
I will look into the google one though, thank you.
I'm interesting in something similar to what Broomie wanted, but rather than letting the user pick their own flag, I'd like it displayed on the action=profile display.
For example, if I click on my own profile, I'd like to see the flag graphic displayed on a line right below (or to the right of) the location field.
If I click on someone else's profile, I'd like to see their flag in the same spot.
I looked into the previous suggestions about modifying Profile.template.php but it didn't go so well...
Any hints?
I wanted to write and tell you thanks for the great mod and offer a bit of constructive critism in case you are looking to improve on this mod. Now for the constructive critism. I do not know about the rest of you guys, but some of the maps used are so hard to make out due to it being so light in color. For example, you can barely make out anything for Russia or Australia when looking at the map. I am not sure what could be done but figured I'd throw this out there to the maker of the mod :)
I noticed we could probably edit the map ourselves but I'd do best to leave it alone :)
Well I've written this mod, and I can do what Mykl said, however you can only select your flag. The only problem is that I keep having troubles turning it into a package. If someone could help me or if I send the files to them and they can do it, you'll have a nice flag mod. :)
Quote from: Bigguy on May 09, 2006, 06:30:09 PM
With this mod I don`t think it actually allows you to zoom in on anything. There are however different maps of the world to choose from as well as a world map. The google member map allows you to zoom.
Something like google earth ?
Hi, I've the the Location Mod on my board for some time, but today when I checked, the button 'Member Map' had dissapeard!
I can still see and access the Mod, but this has totally baffeled me!
Any one have any ideas on this strange one?
Many thanks
:D
Maybe add the button!
Yep something like that.
Quote from: Vinspire on May 10, 2006, 11:40:40 PM
Quote from: Bigguy on May 09, 2006, 06:30:09 PM
With this mod I don`t think it actually allows you to zoom in on anything. There are however different maps of the world to choose from as well as a world map. The google member map allows you to zoom.
Something like google earth ?
Quote from: Bigguy on May 11, 2006, 10:23:27 PM
Yep something like that.
Quote from: Vinspire on May 10, 2006, 11:40:40 PM
Quote from: Bigguy on May 09, 2006, 06:30:09 PM
With this mod I don`t think it actually allows you to zoom in on anything. There are however different maps of the world to choose from as well as a world map. The google member map allows you to zoom.
Something like google earth ?
Well, I guess what I'm asking is this: We have the World map, right? And we also have a USA map. Can someone help me add ANOTHER map to the mod that is closer than the USA map and contains Oregon, Washington, Northern California.
And I don't really like the google mamber map. I guess if theres no way anyone could help me add another map to this then I'm gonna have to get that one. :'(
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.
Very very kewl mod ... installed it on my test board and it is working great.
BUT most of my forummers is from the same country as me so still couldn't figure out the use of this mod in my site.
1 comment - can make the map look more interesting as the location name ? it look kinda dull now.
There is a post here somewhere that explains how to add a button to a theme. To start though you will need to add it to the index.template.php file of the theme you are using.
Quote from: djalecc on May 12, 2006, 03:26:44 AM
Quote from: DemonicInfluence on May 11, 2006, 08:44:05 PM
Maybe add the button!
OK, so how would I do that? :D
Quote from: Gobalopper on May 12, 2006, 12:36:50 AM
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.
Great! I'll PM you my email address. How do I find the coordinates? Is it in pixels? I guess the x/y Start/End would be easy to figure out.. how do I calculate the scale? I guess I'll need your help.
Thanks a MILLION!!
The button itself should have been installed with the mod on the default theme, all you have to do is add the code for it in the index.template.php file and it should show up on your theme you are using.
Quote from: Bigguy on May 12, 2006, 04:24:43 PM
The button itself should have been installed with the mod on the default theme, all you have to do is add the code for it in the index.template.php file and it should show up on your theme you are using.
Hi
I've managed to re-add the button, by finding the code that was missing from the index.template.php file using the install code, my real point was tho, how did it dissapear in the first place!!!!
I've been running the MOD for ages with no problems, then the other day I log in to the forum and its gone!!!
Spooky!
Anyway, all fixed now :)
Thanks for the help everyone, it had me scratching my head for a bit :)
i can see people are discussing the google mod and the location mod
ive used both and i can say this honestly: both have their advantages and disadvantages
how?
Location mod:
- it has a really cool feature that little flags get added to user profiles / posts and on the map and 'whos online' list (if u install the flags with it)
Google maps
- You can zoom in right down to your neighbourhood so its awesome
So basically if you run a big forum i would recommen googlemap since it allows more pins to be placed, but not without consequences, the more crowded the map is the more slower it will take to load
But if you run a smaller board then location mod will be A-OK for you
Hi!
I installed the location mod, very nice.
But i´m form portugal and woul like the portugal map
do you know how to do it? Or somebody have already do it?
thanks
vasco
Quote from: akulion on May 13, 2006, 06:36:07 AM
i can see people are discussing the google mod and the location mod
ive used both and i can say this honestly: both have their advantages and disadvantages
how?
Location mod:
- it has a really cool feature that little flags get added to user profiles / posts and on the map and 'whos online' list (if u install the flags with it)
Google maps
- You can zoom in right down to your neighbourhood so its awesome
So basically if you run a big forum i would recommen googlemap since it allows more pins to be placed, but not without consequences, the more crowded the map is the more slower it will take to load
But if you run a smaller board then location mod will be A-OK for you
Akulion, any demo on google maps ?
SMF Version: SMF 1.1 RC2
okay i just installed the map MOD or Location MOD, and it stopped in the middle, and ended up restarting installation.. as such i ended up with two buttons in my top menue, both for Member Map, also now when i click on the who's online i get the following message
Database Error
Table 'd60235781.smf_location_country' doesn't exist
File: /mnt/web_m/d47/s23/b02814d1/www/SMF/Sources/Load.php
Line: 797
same message also appears if i click on the members button in the top bar.
Member map also still has a link in the admin centre as well.
can someone please help....
Quote from: DHC on May 02, 2006, 09:20:44 PM
Quote from: DHC on May 02, 2006, 09:07:59 PM
Users of the forum are consistently getting an error message - as follows:
An Error Has Occurred!
You cannot view the member map.
Members have reported the problem occurs no matter which browser they are using.
Fix??
- Dan
Nevermind - I found the answer (simple).
- Dan
I am getting this error too, can you advise me how I correct it?
By default, no one has the permissions to see the map, so you need to set everybodys permissions accordingly.
Hopefully that's the problem! ;)
An Error Has Occurred!
You cannot view the member map.
What should I do?
Quote from: SurfExcelerator.com on June 09, 2006, 10:49:43 AM
An Error Has Occurred!
You cannot view the member map.
What should I do?
Hehe ok I fixed that.
One more question: why are there are maps under my name when I view a post I've made or replied to?
What file needs to be edited to fix this?
maps or flags? The mod should add a flag under the names of people who have selected a location on the map (in the user information in posts)
Quote from: Kindred on June 09, 2006, 01:38:07 PM
maps or flags? The mod should add a flag under the names of people who have selected a location on the map (in the user information in posts)
Go here for example: http://www.surfexcelerator.com/smf/index.php?topic=576.0
It shows TWO flags under each person's name that have added their pin.
looks like you either added a mod that placed a flag there before... or you clicked install twice for this mod...
You'll have to edit display.template.php to remove the duplicate code...
Modification Packages
Mod Name Version
1. SMF 1.0.7 / 1.1 RC2 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
2. Affiliate System 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Ad Managment 1.2 [ Uninstall ] [ List Files ] [ Delete ]
4. Karma Buttons 1.01 [ Uninstall ] [ List Files ] [ Delete ]
5. Googlebot & Spiders Mod 1.0.5 [ Uninstall ] [ List Files ] [ Delete ]
6. Merge Double Posts 1.05 [ Uninstall ] [ List Files ] [ Delete ]
7. Board Notes 1.0.4 [ Uninstall ] [ List Files ] [ Delete ]
8. Board Viewers 0.6 [ Uninstall ] [ List Files ] [ Delete ]
9. GeSHiSmf 0.0.8 [ Uninstall ] [ List Files ] [ Delete ]
10. Hide Post 1.0.7 [ Uninstall ] [ List Files ] [ Delete ]
11. Ignore user 1.2 [ Apply Mod ] [ List Files ] [ Delete ]
12. Karma On Memberlist 1.0 [ Uninstall ] [ List Files ] [ Delete ]
13. VisualWarning 1.3 [ Uninstall ] [ List Files ] [ Delete ]
14. SMF Arcade 1.2.4 [ Apply Mod ] [ List Files ] [ Delete ]
15. Location Mod 1.2 [ Uninstall ] [ List Files ] [ Delete ]
16. SMF Shoutbox 1.04 [ Uninstall ] [ List Files ] [ Delete ]
17. SMF Staff Page 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. SMF Trader System 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. Award Mod 1.1 [ Uninstall ] [ List Files ] [ Delete ]
20. PaypalDonations 1.6 [ Apply Mod ] [ List Files ] [ Delete ]
What part of display.template.php do I edit? What should I look for?
Edit: thanks, I found it!! ;)
I tried installing this Mod and it said it was sucessful,
yet when I go into a topic, any topic, I get this error:
Not unique table/alias: 'pin'
File: /home/chatfest/public_html/Sources/Load.php
Line: 783
Help!
alright, sux looking through 65 pages of replies..
could anyone tell me why the additional maps don't work on my 1.0.7 forum?
also, it looks like only the admins can use the mod for some reason... how do I fix that?
tia
~pure~
Okay, I have installed the mod, several times, and as of yet it still won't work. I can't get it to work on my admin account, after I install the mod, I attempt to place a pin, and it won't work. I have tried to place the pin using IE, firefox, and opera. As of yet I can't get it to work. And when I try to create a dummy account and place their pin, it says that I don't have permission to view. Unfortunately, I am pretty slow to pick up new things, so whomever decides to help me please give me specific instructions to follow. Thanks in advance.
ywbd
purebllod and youwill...
1, you have tro go into the permissions for each group and give them permission to see the mpa and place a pin on the map...
youwill....
2- installing multiple times is going to cause issues... why do people assume that installing again and again will solve problems? Computers do not leanr by repetition. If you had a problem the first time, you are going to continue having problems unit you fix the original issue.
Kindred, I backed up SMF before adding the mod, and just reverted to the previous state after each failed attempt to install. I have been asking for help on this issue for quite a while, and no one can give me any ideas as to what is going wrong. I am still pretty new to this, and it is taking a LONG time to figure out some of the easier issues. I can install the MOD just fine, that isn't the problem. It just will not allow anyone to place a pin. I have tried as an admin, and created a new group that had all permissions, and it still won't allow a pin to be placed. I am using firefox, and have cleared the cache from my browser after every install. If there is something that I am doing wrong, or should be doing, please enlighten me. I have asked the other admins, and mods on my forum, and none can place a pin. We can all see the map, and I have checked the permissions to make sure that they have the ability to place a pin, but yet it won't allow it to happen.
Someone with some ideas please help!
Thanks
ywbd
are you using the default theme?
Okay, I have this problem solved for the default skin, but it won't port over to the other skins that I have installed. Anyone know how to solve this problem?
TIA for any help.
ywbd
yes, you have to add the code into your other theme template files by hand.
Alright, I was having issues with the mod not placing pins, and tried finding this board to find out if anyone else had this issue and been fixed, but for the life of me, couldn't find a topic listed on the thread index. So I uninstalled the mod, to use later, and after it was uninstalled, the button is still visible. How do I get rid of this, so I can attempt a reinstall and clearing the cache on my server? I have tried reinstalls on things before, and two buttons appeared, which is very annoying.
I had some issues with the mod not appearing in the correct matter in some themes. In the default themes it worked alright but for some other themes it did not work at all. I could nog add pins, I could not see the buttons (or at least the txt on the buttons) and the buttons were not even working.
The solution however was pretty easy. I had to copy al the mm text lines from modification.english.php from the default theme to the modification.english.php of the used theme. Then it's working again :) Perhaps you can profit from this information, it took me a couple of days to figure it out.
Great mod though :D
depending on whta template.php files your theme has, you may have to do more...
As with ALL mods, this one changes the files in the default theme only. This means that you must make changes to any other themes by hand.
I have a problem (again) with my member map and all the pins displaying in the ocean instead of on the countries lol
I remember it happened before and I think its because of the position of the shoutbox.
I have the shoutbox at the top of the board again, below the user box/navigation tabs, so I think that is causing the member map to be displayed wrongly.
Last time this happened (from memory) I uninstalled the location mod and reinstalled it, and everything was ok. Now when I went to uninstall I get errors in display template, index template and for the 'flags' in the who template
can anyone help with this? would it be ok to go ahead with the uninstall with these errors?
~thanks
Hello :) , I have the same problem with location mod installation using package manager :(
Quote from: fun4us on March 28, 2006, 05:55:12 AM
7. Execute Modification smf1.1.x/install.xml Modification parse error
8. Execute Modification - Modification parse error
When I click on Install, it reports:
QuoteFatal error: packageinstall(): Failed opening required '/var/www/..../forums/Packages/temp/./install.php' (include_path='.') in /var/www..../forums/Sources/Packages.php on line 534
where I find
Quoterequire($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);
Do you have any Idea what do I have to change?
Am using also 1.1 RC2
This change didn't help
Quote// get all the pins
$request = db_query("
SELECT p.ID_MAP, p.ID_MEMBER, p.xPin, p.yPin, p.country, p.city, mem.gender, mem.realName, c.name
FROM {$db_prefix}mm_pins, {$db_prefix}members AS mem
LEFT JOIN ({$db_prefix}location_country AS c, {$db_prefix}mm_pins AS p) ON (c.c2code = p.country)
WHERE (p.xPin BETWEEN {$context['maps'][$ID_MAP]['xStart']} AND {$context['maps'][$ID_MAP]['xEnd']})
AND (p.yPin BETWEEN {$context['maps'][$ID_MAP]['yStart']} AND {$context['maps'][$ID_MAP]['yEnd']})
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER BY c.name, mem.realName", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
Thank you very much
I will try to install it "step by step"
Hi when trying to install the first file (locationmod.zip)
I get this error after clicking proceed
2: copy(index.php~): failed to open stream: Permission denied
File: /home/tgforums/public_html/yabbse/Sources/Subs-Package.php
Line: 1241
what should I do :)
Are the permissions on your sources folder set right ??? Try changing them to 777
I have removed the location mod from my board as nobody was using it and I am now seeing the following errors in the error log from the board:
8: Undefined index: mm_mm
File: /home/ibfnetw/public_html/forum/Sources/Subs.php
Line: 2750
What need I do to remove this error please?
There might have been some edits in the Subs.php file that were missed.
Quote from: Bigguy on June 27, 2006, 07:21:42 AM
There might have been some edits in the Subs.php file that were missed.
Thanks but how do I identify and rectify this problem?
Look in the install.xml file that comes with the mod. It should have all the edits in it. BACKUP before playin around though.
Quote from: Bigguy on June 27, 2006, 09:23:20 AM
Look in the install.xml file that comes with the mod. It should have all the edits in it. BACKUP before playin around though.
Now ain't that the most user friendly solution you could read about!
Thanks, it might be easier just to re-install smf and re-apply the mods that are being used...
Rather than sifting through 67 pages of the thread, can anyone confirm for me whether it works for 1.0.7? I ask because of the cyptic review mentioning this version.
Quote from: JamesWC on June 28, 2006, 11:11:47 AM
Rather than sifting through 67 pages of the thread, can anyone confirm for me whether it works for 1.0.7? I ask because of the cyptic review mentioning this version.
It says it is:
Compatible With: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2
Quote from: SurfExcelerator.com on June 28, 2006, 11:13:00 AM
Quote from: JamesWC on June 28, 2006, 11:11:47 AM
Rather than sifting through 67 pages of the thread, can anyone confirm for me whether it works for 1.0.7? I ask because of the cyptic review mentioning this version.
It says it is:
Compatible With: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2
Thanks, but I'm just concerned by the review suggesting problems. As much as I'd usually trust the compatibility list, I was hoping someone who had tried it with 1.0.7 could tell me from their own experience.
How do I add the additional maps?
I was wondering, are there additional maps available besides the ones that are there now. I'd like to have more detailed versions of the US states.
Quote from: Pat26 on July 11, 2006, 01:08:29 PM
How do I add the additional maps?
Download the maps from the link on the first page of this thread.
Go to your Admin/Packages section.
Select Download Packages.
In the Upload Package section Click Browse and select the file from where you saved it.
Click the Upload button and wait a few seconds for the file to upload.
Then Apply the update.
How can I edit the profile.template.php page to have a Member Map link in there? I'm trying to reduce the number of menu buttons I have....
I have a quick question: The mod installed fine, and people have already started placing their pins, but the maps are too large for my webpage, they "spill" out of the space in joomla that I have. (I'm using SMF and a joomla bridge). So, can I change the size of the maps? If I do it manually, would it screw up the coordinate system? Is there a setting for the scale of the maps? Thanks!
Hi!
I have a little problem with the member map.
None of my members (or I) can't place a pin.
The map is simple not shown.
I figured it out myself. I had to go to the MySQL Admin page and manually play with the scales until the maps fitted in the space I allocated. I think this "scale change" should be part of the admin page, so that it can be adjusted from the backend. Just a suggestion.
Quote from: JamesWC on June 28, 2006, 11:11:47 AM
Rather than sifting through 67 pages of the thread, can anyone confirm for me whether it works for 1.0.7? I ask because of the cyptic review mentioning this version.
yea I have it working on 1.07.
getting the basic install is simple, but it didnt install the additional maps, so I had to upload them manually (although it said "installed" in the packet manager).
Quote from: Breathwork on June 27, 2006, 07:24:26 AM
Quote from: Bigguy on June 27, 2006, 07:21:42 AM
There might have been some edits in the Subs.php file that were missed.
Thanks but how do I identify and rectify this problem?
well, you might want to consider a
find $forumtop -name "*.php" -exec grep mm_mm {} /dev/null \;
where $forumtop equates to whatever directory Settings.php lives in.
that'll identify the files that have references to that particular message index. you might want to expand that search out a bit by changing the search string to just 'mm_'... that should get everything related to MemberMaps.
Quote from: Gobalopper on May 12, 2006, 12:36:50 AM
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.
do you supposed you could make the map available, and also include a (detailed) set of instructions on how to carve out a small section into its own map? that way, people could add their own sub-maps all by themselves, without pestering you.
TIA. and thanks for the mod itself... it rocks!
Hi emrys01 -
Let me describe how I isolated and "showcased" a particular country. In my case I used Venezuela. I did not need the original 10MB file, but I didn't mind a little pixelation. This can be done in 10 min:
Open the regional map that shows the country you want to showcase in the best detail. In my case, Venezuela was shown in: World, Central America and South America. World is too small therefore it pixelates too much, Central America cropped the country, so I used South_America.gif. Open the file in any graphic editor (I used Photoshop).
The idea now is to change the size of the drawing to the size that matches the coordinates for that map. You can quickly calculate them from the Location Map Admin screen, by simply substracting the Xend - Xstart and Yend - Ystart of the map you are using. In this example the values for South_America.gif are: Xstart=1620, Xend=2440, Ystart=1275, Yend=2575. So the correct size should be x = 2440-1620 = 820 and y = 2575-1275 = 1300.
Change the image size from the original file (780x1237 in this case) to the actual pixel coordinates of that map: 820x1300 (calculated above).
Next, using guidelines, create a "croping section" of the country you wish to showcase. In my case I set my guides at 150 and 400 in the X axis and 250 in the Y axis. Crop the map and "save as" your country name (in my case "Venezuela.gif").
Now, calculate the coordinates X and Y by adding these numbers to the Xstart and Ystart of the original map. In my case I got:
new xStart = 1620+150 = 1770
new xEnd = 1620+400 = 2020 [NOTE: USE xStart, not xEnd in the formula]
new yStart = 1275+0 = 1275 [NOTE: in my case I did not need to crop the top, so my new yStart matched the yStart of the orig. map]
new yEnd = 1275+250 = 1525 [NOTE: USE yStart, not yEnd in the formula]
Now upload the map via FTP to the directory \\yourSMFinstallation\Themes\default\images\maps
Next, you need to use your PhpMyAdmin, and access your Database. In my case, the table for the maps is: smf_mm_maps. Open that table and create a new row with the following values (values in [brackets] represent my example's values, with explanation if needed):
ID_MAP: mapnumber [22] (use next consecutive decimal number in the sequence of maps)
mapFile: filename.gif [Venezuela.gif]
mapName: map name [Venezuela]
xStart: new xStart [1770]
xEnd: new xEnd [2020]
yStart: new yStart [1275]
yEnd: new yEnd [1525]
scale: map scale [3.00] (you can test several scales, start with "1.00" and simply go up or down until you find the one you like)
visible: yes or no [1] (1=yes, 0=no)
and Done!
You should be able to see the map appear in the Admin list of maps, and in the drop down box. Test the scale by refreshing the map, and changing the scale in your database (via PHPmyAdmin)
I hope you find this useful!
Quote from: guachiman on July 27, 2006, 02:23:23 AM
I hope you find this useful!
immensely so! thanks very much, i now have the US broken into 6 smaller areas. i should probably break canada up into provinces, as well. (it's a hockey board, so there'll end up being a fair number of canadians hanging around...)
thanks again. it was exactly what i needed.
Quote from: Gobalopper on May 12, 2006, 12:36:50 AM
Well I can send you the original map if you want. It is over 10MB though and you will need to know the co-ordinates of the area you cut out in order to add it.
hey gob, is this file publicly accessible anywhere? if not, you can email it to me via the mail icon over in the user-info block.
i've created some zoomed regional maps of the us, but did it from the USA.gif file that was in the package, which was the 108k version. i'd like to remake them from the higher-resolution file.
thanks
Hi Guys,
I have tried to install the mod quite a few times, but still having the same problem -> only admin can view the member map, I also can't change permissions because I am missing the box for this. I found this problem a few times in this topic but not with an answer. Am using 1.1 RC2
.... edit
I solved this by installing a new test forum, installing new package and overwriting. Everything works fine. Didn't have to change anything for the babylon theme. The icon won't show, but actually I don't need it.
i have this message when installing (smf 1.07)
QuoteFatal error: Call to undefined function: db_query() in /home/emutribu/www/install.php on line 10
QuoteDatabase Error
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country)
WHERE ' at line 4
File: /var/www/html/forum/Sources/MemberMap.php
Line: 101
This is the Error I am getting now...
if I try to install it without manager then I get the following error
Fatal error: Call to undefined function: db_query() in /home/emutribu/www/install.php on line 10
Its some DB error
and I am stucked!!! any help please.
Quote from: leah on February 11, 2005, 05:02:31 PM
I've attached flags for England, Scotland, and Wales, not the best but they'll do in a pinch. ;)
Drop new flags into the flag directory, Themes/default/images/flags.
Then run this query in phpMyAdmin, being sure to replace the dbprefix with your own:
Quote
INSERT INTO dbprefix_location_country VALUES ('en', 'England', 5);
INSERT INTO dbprefix_location_country VALUES ('sx', 'Scotland', 5);
INSERT INTO dbprefix_location_country VALUES ('wa', 'Wales', 5);
Worked on mine, but use at your own risk.
worked an absolute treat 1st time nice1 :) althoug i changed the map nuber to 6 coz thats what it was in mine...
Hi!
I've install this great mod, but my member can't view the map...
Only me as admin...
http://www.john-howe.com/forum/smf/index.php?action=mm
What can I do to correct this? I've try several time to desinstall and reinstall on my 1.0.7 version but unsuccesfully.
could someone help?
A lot of thx in advance,
Dominique
Did you authorize your users and visitors to have permission to view the map? Check in Permissions > User Group Permissions, and click on the "regular users" group. You should have checked the boxes for "can view users map" and "can modify its pin". I'm using SMF in spanish, so the menu items and options might be slightly different.
:-[ ohhh dear!
I complete forget to check this point.
Thx a lot, i will check and com back.
Regards, Dom
Hi!
All is working, execpt the gobalopper.locationmod.whoflags.zip mod.
How can I install ist on my 1.0.7 version?
Doesn't work.
Regards, Dominique
Ohh and I can't find the meaning of the 3 pin colors on the map (green, red and blue).
Could you explain me?
Regards, Dominique
Mod worked great on RC2, but is incompatible with RC3.
Has anyone same problem, i hade it installed on RC2 but now it doesn't install anymore :( :o
Hey All,
Been enjoying the mod. Trying to do some other work on my site and need to uninstall it for a while.
However, I found that when I did, it seemed to leave some stuff behind. For instance, if you uninstall, then go to Users Online, you get an error - it is trying to go get the flag that the MOD puts to the left of the users name on the Users Online view.
There may be more, but I am wondering what the "Approved" method of uninstalling this MOD is?
I don't want to delete it, I just want to uninstall it.
Thanks,
R
Quote from: djavet on August 23, 2006, 04:40:35 AM
Ohh and I can't find the meaning of the 3 pin colors on the map (green, red and blue).
Could you explain me?
Regards, Dominique
Male/Female/Unknown Gender
Quote from: WhatsUp on August 23, 2006, 05:32:42 AM
Mod worked great on RC2, but is incompatible with RC3.
What's incompatible with RC3 ?
To install re-install you will need to edit the package-info.xml to include RC3 string.
I think I replied earlier in this thread how to change for an RC2 install
I shall probably upgrade to RC3 at the weekend and see if it works :(
I modified the package-info.xml to include 1.1 RC3...
now the file tells me it can't even upload because it is not a valid package!
Quote
The package you tried to upload either is not a valid package or has become corrupted.
grumph...
Im waiting for the RC3 modification
when does it come ?!
I couldn't get my modificaiton of the install to work, so I went and did it by hand...
Ok Guys.
I was reviewing error logs and apparently clicked on one of the error links and somehow managed to double install the Location MOD by doing so.
I now have MEMBER MAP listed twice in my menu and whenever I try to access any layout that shows a map, I get the following error:
QuoteNot unique table/alias: 'pin'
File: /home/whitelr/public_html/thebetteragent/Sources/Load.php
Line: 783
So, I am getting this on the users online area and for every post since the flag is included there.
My first problem is to just get my site working again. Any suggestions?
The second problem is to get Location MOD completely UNINSTALLED.
Any help appreciated.
Thanks,
R
Quote from: rebelminion on September 01, 2006, 08:27:47 AM
Ok Guys.
I was reviewing error logs and apparently clicked on one of the error links and somehow managed to double install the Location MOD by doing so.
I now have MEMBER MAP listed twice in my menu and whenever I try to access any layout that shows a map, I get the following error:
QuoteNot unique table/alias: 'pin'
File: /home/whitelr/public_html/thebetteragent/Sources/Load.php
Line: 783
So, I am getting this on the users online area and for every post since the flag is included there.
My first problem is to just get my site working again. Any suggestions?
The second problem is to get Location MOD completely UNINSTALLED.
Any help appreciated.
Thanks,
R
Have a look in load.php around line 783 i am guessing its installed several times so you have some repetitive code.
Remove any duplicate strings
Thanks, I will give that a shot.
To clarify a bit tho, the error I was getting is when I go to any screen where the FLAG is for the location mod is presented, not the MAP.
I have uninstalled the Location Mod. So at least now I only have 1 menu selection for Member Map and I have uploaded a back up of the Load.php file which has everything working, but now I am still left with a Member Map option that gives an error about a missing file (of course, it has been uninstalled! Grrr)
I will check my current Load.php for any duplicate code.
Thanks,
R
Quote from: Gobalopper on April 04, 2006, 10:16:54 PM
Ok disregard my last post. :)
I've finally gotten a server to test with MySQL 5 and the version I've just posted should work.
If you already have the mod installed then you can look for this:
FROM {$db_prefix}mm_pins AS p, {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}location_country AS c ON c.c2code = p.country
and replace it with this:
FROM {$db_prefix}members AS mem
LEFT JOIN ({$db_prefix}location_country AS c, {$db_prefix}mm_pins AS p) ON (c.c2code = p.country)
perfectly work for that error
thx goba
I have this installed on RC2 and it works fine. However I am trying to upgrade to RC3 and the member map doesn't work. I have modified the XML file to allow the package manager to work and the mod installs ok apart from the index.template.php file which is to be expected. However when trying to use the mod I get this SQL error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
File: /home/dillan/public_html/Sources/MemberMap.php
Line: 101
I know sweet fa about sql, any ideas? i presume it's a problem with the syntax in membermap.php.
Gerry
I know here is clever people, could some nice coder fix this Location MOD to work coreectly in RC3. It can't be that hard to do when it worked very well in RC2. 8)
Can any one please tell me as to how does one place the pins on the map. Is it through the profile seetings or something?
Please reply. It's urgent.
umm.. In the membermap display
it seems that you don't see the Member's Map button in the main menu. If you installed the mod properly should show automatically. If you have a different theme, you need to add the code for the button to appear.
Greetings,
Will an installable version be coming that can install on SMF 1.08?
Or is a manual install recommended?
Best Regards, Phil
I can pretty much guarantee you that this will be unlikely to be released for 1.0.8. The 1.0.x series is going away and all support for just about every mod is moving to the 1.1 series...
Thank you Kindred,
Can I just modify packag-info.xml to install on 1.08? I've only been working with SMF for a few months so don't know if that would work in this case. Or, is a manual install possible? If so, I can search for instructions and get it done that way.
I'm hesitant to install the 1.1 series before it is oficially released.
Thanks again for the help!
Best Regards, Phil
I originaly posted in this topic that I had an SQL error when trying this mod on rc3.
I can now happily report that the error was my fault and that this mod works perfectly on rc3. I had the error because before I upgraded I run a simulated forum on my server with a database backup from the real forum. On the real forum I had the location mod, extra flags and maps. On the test forum I just tried the location mod leaving the other two off thinking they were just additions to the main mod. It was this that caused the error.
All you need to do is alter the install file in the mod for rc3. I just changed one of the older ones!
Gerry
Ok I have updated the install files so it will work on 1.0.8 and 1.1 RC3. I didn't change any of the code so if anyone has conflicts listed when trying to install please post here. It should be fine though.
Cool! Now our member map at Fine Spot Network is back.
Thanks a lot. :D
Hi!
I am using 1.1 RC3 and installed the location mod, but when i try to access the map i get the following error:
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country)
WHERE ' at line 4
File: /kunden/74932_97082/Forum/Sources/MemberMap.php
Line: 101
(I used the latest version of location mod)
Any ideas?
where did the whoflags and additional maps go?
Quote from: Velairon on September 30, 2006, 09:11:05 AM
Hi!
I am using 1.1 RC3 and installed the location mod, but when i try to access the map i get the following error:
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country)
WHERE ' at line 4
File: /kunden/74932_97082/Forum/Sources/MemberMap.php
Line: 101
(I used the latest version of location mod)
Any ideas?
I had the same problem after I upgraded to RC3 but it was because the database had been backed up with the whoflags and additional maps but initially I just reinstalled the location mod causing that error. If you reinstall the whoflags and additional maps it works fine.
Gerry
Where are the links for additional maps and whoflags ?
Are not in the page of the mod now.
I have attached them to the first post. There is a restriction where the mod id has to be the same for all files uploaded however this causes problems when you are installing the mods because it will think they are all installed when just one is.
So to get around that and keep them with separate ID's they are attached to the post now.
Sorry but i dont see the files at the time i wrote the previous post.
Thank you very much :)
Quote from: pheasant_plucker on September 30, 2006, 12:31:52 PM
I had the same problem after I upgraded to RC3 but it was because the database had been backed up with the whoflags and additional maps but initially I just reinstalled the location mod causing that error. If you reinstall the whoflags and additional maps it works fine.
Gerry
I tried that, but without success, i still get
You have an error in your SQL syntax near '(smf_location_country AS c, smf_mm_pins AS p) ON (c.c2code = p.country)
WHERE ' at line 4
File: /kunden/74932_97082/Forum/Sources/MemberMap.php
Line: 101
Any ideas?
1.) when I look at the map the pins are in the wrong locaton, however if i click on the names in the list below the map the 'pins' jump to the correct location and flash...
2.) Is there and easy way for an admin to move incorrectly located user pins?
Thanks...
I can get the base install and the additional maps working ok through the package manager but I get an error when i do the whoflags. I am using 1.0.8.
An Error Has Occurred!
2: packageinstall(/home/content/M/e/a/Meat/html/forums/Packages/temp/install.php): failed to open stream: No such file or directory
File: /home/content/M/e/a/Meat/html/forums/Sources/Packages.php
Line: 414
I have no idea why, the path looks ok but the files isnt there. Package Manager creates a temp directory in my Packages directory when its unzipping the file but it doesnt seem to unzip it totally and it then cant find the install.php file.
Quote from: Gobalopper on October 01, 2006, 12:09:40 AM
I have attached them to the first post. There is a restriction where the mod id has to be the same for all files uploaded however this causes problems when you are installing the mods because it will think they are all installed when just one is.
So to get around that and keep them with separate ID's they are attached to the post now.
ah, thanks :)
Quote from: topdog2k on October 02, 2006, 12:10:19 PM
I can get the base install and the additional maps working ok through the package manager but I get an error when i do the whoflags. I am using 1.0.8.
An Error Has Occurred!
2: packageinstall(/home/content/M/e/a/Meat/html/forums/Packages/temp/install.php): failed to open stream: No such file or directory
File: /home/content/M/e/a/Meat/html/forums/Sources/Packages.php
Line: 414
I have no idea why, the path looks ok but the files isnt there. Package Manager creates a temp directory in my Packages directory when its unzipping the file but it doesnt seem to unzip it totally and it then cant find the install.php file.
try chmodding the packages directory to 777 :)
Quote from: Kindred on November 19, 2004, 04:09:28 PM
And if you have a non-default theme, you will have to insert the 3 lines into Display.template.php in your chosen theme(s).
(which I did, but I prefer my flag to show below the stars)
Globalopper.... very nice mod!!!
one quick question; What determines the colour of the pin to mark your location?
Ok.. another quick question, any way to have this read (or write to) the location string in the user's profile?
Ähhh??
What three lines do I have to insert in my non-default theme?
Thanks!
Frank
Hi!
I always got this messages when I tried to install the location mod
QuoteFatal error: packageinstall(): Failed opening required '/home/htdocs/web31/html/smf/Packages/temp/./install.php' (include_path='.') in /home/htdocs/web31/html/smf/Sources/Packages.php on line 534
Any ideas but to chmod all data on 777?
All data are already on 777!
Thanks!
Frank
Do you have a temp folder in the packages folder and is it chmodded to 777. ??? If not create one and see what happens.
Quote from: Bigguy on October 04, 2006, 11:50:01 AM
Do you have a temp folder in the packages folder and is it chmodded to 777. ??? If not create one and see what happens.
Thanks! That worked!
So, I installed everything; Location Mod 1.2 Location Mod - Additional Maps 1.2 Location Mod - Who Flags!
I made the entries for the button in my used theme and I got the space and the link shows me "http://www.aks-germany-forum.de/index.php?action=mm"!
But nothing will happen, even I have no possibility to change anything in the admin panel!
There is nothing to see - nothing!!!!!
Who can help me please?
Thanks!
Hier are some off the errors are occured:
Quotehttp://www.aks-germany-forum.de/index.php?action=viewErrorLog;desc;start=0
8: Use of undefined constant mm - assumed 'mm'
Datei: /home/htdocs/web31/html/smf/Themes/default/languages/index.german.php (eval?)
Zeile: 3
Quotehttp://www.aks-germany-forum.de/index.php?action=viewErrorLog;desc;start=6795
8: Use of undefined constant mm - assumed 'mm'
Datei: /home/htdocs/web31/html/smf/Themes/default/languages/index.german.php (eval?)
Zeile: 3
Quotehttp://www.aks-germany-forum.de/index.php?action=theme;sa=settings;th=6;sesc
8: Undefined index: custombutton3
Datei: /home/htdocs/web31/html/smf/Themes/helios_multi11rc2/Settings.template.php (eval?)
Zeile: 177
Quotehttp://www.aks-germany-forum.de/index.php?action=theme;sa=settings;th=6;sesc
8: Undefined index: custombutton2
Datei: /home/htdocs/web31/html/smf/Themes/helios_multi11rc2/Settings.template.php (eval?)
Zeile: 157
Quotehttp://www.aks-germany-forum.de/index.php?action=viewErrorLog;desc
8: Use of undefined constant mm - assumed 'mm'
Datei: /home/htdocs/web31/html/smf/Themes/helios_multi11rc2/index.template.php (eval?)
Zeile: 630
.. and there are many more!!!
This mod apparently doesn't work with Firefox browsers. I installed it successfully but when I tried to click on the map to place my pin nothing would happen. As an after thought I tried in with IE and it works fine. Also, when you view the map with Firefox all of the pins are on the right hand side of the screen, not on the map.
Just wanted to let you know in case someone reports an error with the Mod and you can't figure out why...it may be thier Internet Browser - not the mod.
Make sure you haven't cached your javascript file. It should work fine in Firefox and has since it was first released.
How do I check that?
This is solved, IGNORE this message! ;)
Installed Gopaloppers location mod and now several messages and other functions gives this error when try to read them? My version is rc3
Any idea what to do?
Not unique table/alias: 'pin'
File: /home/xxxxxxx/public_html/xxxxxxxxx/forum/Sources/Load.php
Line: 875
Hi there,
after having upgraded my SMF RC2 to RC3 there are two big errors:
1.) the packet manager doesn't work any more. The installed packages (just location mod and ad management, no more mods installed) aren't shown as installed. It's impossible to delete them (the mods are listed, but they are not marked as installed, just "list files" and "delete" is shown - file listing works, delete doesn't).
Installation of other mods seem to be impossible too.
2.) There is a error message after clicking on the link that used to show the member map site (location mod by gobalopper). This is the message:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_
File: /home/path/html/forum/Sources/MemberMap.php
Line: 101
I removed the mod and tried to install it again. Afterwards the "uninstall" link appeared, but the mod still didn't work (same errormessage as above). It is either impossible to deinstall the mod - this errormessage appears:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
I've tried, but I can't solve the problem. Are there any suggestions?
Many thanks for your help.
Greetings,
redwood
I'm not sure, i hade similar problems after installing it and removed Dilber MC Theme. I'm just build the board so i installed a new board from scratch and all worked filn after that. Reason is unknown, suspose the database is destroyed in some way because i got many database error messages. This not gonna help you much but it solved my problem. Gopalopper Location mod works fine now, and all other mod installed after this issue. 8)
Everything installed fine on RC 3 however there is no button on the forum to access the map. Is there somewhere I can install one manually?
Do you use another language than english, if...you have to edit Modifications.xxxxxx.php 8)
If you try english lang with default theme it should be there?
No it is in english. I guess the problem is because I am using the 7dana theme. I was so looking forward to using this mod.
Heya,
I've got an little error at this mod,
this is the total file:
<?php
// Version: 1.1 RC3; Who
// The only template in the file.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
// Display the table header and linktree.
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg">
<td width="30%" colspan="2"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=user', $context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td style="width: 14ex;"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td>', $txt['who_action'], '</td>
</tr>';
// This is used to alternate the color of the background.
$alternate = true;
// For every member display their name, time and action (and more for admin).
foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>
<td>';
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<div style="float: right; width: 14ex;">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', '
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], '
</div>';
}
echo '
<span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';
if (!empty($member['ip']))
echo '
(<a href="' . $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank">' . $member['ip'] . '</a>)';
echo '
</td>
<td nowrap="nowrap">', $member['time'], '</td>
<td>', $member['action'], '</td>
</tr>';
// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)
$alternate = !$alternate;
}
echo '
<tr class="titlebg">
<td colspan="4"><b>', $txt[139], ':</b> ', $context['page_index'], '</td>
</tr>
</table>';
}
?>
I'm not good in PHP so is someone able to find out the error?
Only mod maybe involved:
Google bots&spiders
Thanks for helping
Umm.. What do you mean?
Oh sorry, me was doing to many things at the same time.
The error I get is that people out of South-Africa don't get a normal flag at the Who's Online list.
I already found the flag, so thats not the problem,
And my package manager says there is a bug in this file, but don't know where
Hope this is a better error report, sorry again
Hi all,
I installed the Location Mod on SMF 1.1 RC3 and everything is fine, only nobody can place a pin because no maps will be shown after click on the link "Place your Pin" ! Why ?
greets PW
(lol same avatar)
I also had that problem, might work if you de-install it and install it again,
think I fixed it like that
No didn't work here :(
[EDIT]
But reinstall of the mappack did help on this :D
So Problem is solved ;)
[/EDIT]
Can't make this work. Despite several install/uninstall/install tries. The mod says it installed correctly and the extra menu item shows up. When clicking 'member map' I get the following error message:
Table 'greenpowertalk.smf_mm_maps' doesn't exist
File: C:\WWW\Solacity\GPT\Sources\MemberMap.php
Line: 281
Checking the database shows that the table is indeed missing. SMF has CREATE access on the schemata, so that's not it. This is on RC3.
-Rob-
I've been searching this thread but I haven't found what I would like to do, how can I add countries and their flags? I'd like to add England, Scotland & Wales
[edit]I worked it out, and used modified install.php file[/edit]
have two questions regarding this mod. for some reason it says there are more pins that are actually on the map. (+1) If you have 200 pins on the map for example, in the drop down box it will say 201. How can I correct this?
also, I'm using the alienation theme, and wondering how I can add the member map button to that theme. I assume that I would have to modify the display.template.php? but when I have tried doing that for other mods, It never really quiet worked out for me. I hope someone can help :)
ah well everything is fine but the place your pin link doesn't appear in my theme, only appears in the default theme...really weird. And it works with firefox, which it didn't before...
hmmmm....
this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:
Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123
This is the line that is causing the error (117)
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline, ip2c.c2code, lc.name, pin.country
Wow there are 72 pages? Here's my issue, maybe someone can help me find it faster:
This Mod is great. Works great in default, but I want it to work in a TP theme. Which files do I need to tweak or what code to where?
Any help is VERY welcome.
Thanks,
Aaron
------
I found it! The modifications.english file :) Thanks !
Quote from: Kindred on December 05, 2006, 04:21:37 PM
hmmmm....
this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:
Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123
I'm having the same error now. Any suggestions?
Thanks
When this will be available to the new SMF 1.1 ?
thanks ;)
Same question, I need it updated to use it :(
it works for me in 1.1 final
Quote from: JediAaron on December 11, 2006, 03:09:45 PM
Quote from: Kindred on December 05, 2006, 04:21:37 PM
hmmmm....
this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:
Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123
I'm having the same error now. Any suggestions?
Thanks
me to, tried manually running the install.php and got an error.
I've read every page of this thread now ( i think) and i can't find anything to help.
I've even tried updating the database manually using the info in install.php but i am getting nowhere.
uninstalled reinstalled in various different orders.
I removed the offending variables...
but now my error log fills up with "unknown variable..."
lol... I'm not sure what the problem is that changed between 1.1RC3 and 1.1(.1), but something is acting differently in the code...
Quote from: chinclub on October 06, 2006, 10:31:58 AM
This mod apparently doesn't work with Firefox browsers. I installed it successfully but when I tried to click on the map to place my pin nothing would happen. As an after thought I tried in with IE and it works fine. Also, when you view the map with Firefox all of the pins are on the right hand side of the screen, not on the map.
Just wanted to let you know in case someone reports an error with the Mod and you can't figure out why...it may be thier Internet Browser - not the mod.
I have the same problem.
Someone replied with this -
"Make sure you haven't cached your javascript file. It should work fine in Firefox and has since it was first released."
How do I do this? Thanks!
Quote from: vipmoney on December 12, 2006, 07:59:20 PM
When this will be available to the new SMF 1.1 ?
The same question but different: When will this mod be available for SMF 1.1.1?
I like this mod very much.
I have SMF 1.1.1. I have
most of the mod working after manually editing everything but I keep getting the following error:
Unable to load the 'MemberMap' template.
Everything has been CHMOD'd correctly. Any suggestions?
Thanks in advance.
EDIT: I managed to get beyond that issue, but now none of my images show. Everything seems to be working other than this.
Works ok in 1.1.1 for me
Gerry
I have the image problem worked out, but get a permissions error when trying to access the maps with any account other than Admin. I have permissions checked for appropriate membergroups, but it doesn't seem to be working correctly.
Can you tell me where to go to manually adjust permissions per group?
in the permissions section of your admin
OK. I have looked throughout the Admin CP for a place to allow or disallow Member Map. It is no where to be found. I have checked and rechecked the manual changes to each file and all seems correct. Yet the mod only works for Admins. My coding knowledge is rudimentary ;) and I have only been able to get as far as I have through the miracle of modern Googling and 73 pages of posts here at this forum. Is there a PHP file I can edit permissions to allow certain groups to access the Member Maps?
EDIT: Just installed a clean "test" forum and installed the mod with NO problems. :) Apparently, there are conflicts between some of the mods I am using. Now to figure out which ones.......
Thanks for a great mod!
Hi I installed 1.1.1 an set all mods manually back but on the location mod the installer says:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
What can I do?
I'm having that same problem, I just updated to 1.1.1 and lost the member map mod and am getting that same error when I try to install it throught the Admin section
O.K I edited the package-info.xml, so the installer works, but I get some test errors in a few files and the installation fails.
Mhhhmm - When will this mod be available for SMF 1.1.1?
I like it really much and my users too.
I went threw the .xml file that installs it and added the mod in manually, and it appears to work but it wasn't an enjoyable experience :D. If the mod gets updated and I decide to reinstall it will it over write the lines I copied in manually or might it cause a problem?
You've got the who flags in too?
Where do these appear?...I have flags listed by forum member's names on the "member map" section and Flags appear next to member's posts (for the members that have pins placed on the map,that's a new one for me. The old location mod didn't do that on our forums). So if that is what you are referring to then yes...but I'm not really sure, I can go back and look at what I did if you wish. I sorta did the manual installation without really looking at the code I was placing, just found where it was suppose to be rplaced or inserted and did it.
Here's a link to our forums if you want to look and see if I have the who flags or not, the map should be available to guests, but feel free to register too...www.freelancersallianceonlinegaming.com (http://www.freelancersallianceonlinegaming.com)
oh wait I see what you are talking about, no I haven't gotten that far yet...just the basic mod
Quote from: OmegaSupreme on January 10, 2007, 07:36:10 AM
I went threw the .xml file that installs it and added the mod in manually, and it appears to work but it wasn't an enjoyable experience :D. If the mod gets updated and I decide to reinstall it will it over write the lines I copied in manually or might it cause a problem?
Wow. I made this on 1.1 RC3, but it was a challenge for me. Never. I´m a "NOcoder"
Hello
I just install the patch for 1.1.1 and lose my maps...
And when I try to reinstall a fresh copy, I receive this:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
What happen?
Thx for your help.
Dominique
Hi djavet,
it could be that you need to edit the package_info.xml for 1.1.1.
I simply changed the appropriate section for the latest RC of 1.1 to match the "1.1.1" version string and pointed it to the directory "smf1.1.x" of the latest location mod package.
This solved it for me.
cu
Davy
Thx for the tip. I will try it.
Regards,
Dom
Quote from: Davy-D on January 20, 2007, 04:21:18 PM
I simply changed the appropriate section for the latest RC of 1.1 to match the "1.1.1" version string and pointed it to the directory "smf1.1.x" of the latest location mod package.
This solved it for me.
Dave, can you elaborate on *which* section you made *what* change? This is what I did without success:
The file package-info.xml in the package gobalopper.locationmod.zip have three install sections:
install for="1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8"
install for="1.1 Beta 3 Public, 1.1 RC1"
install for="1.1 RC2, 1.1 RC3, 1.1"
First modified the last section as:
install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1"
Still I got error message "The package you are trying to download or install is either corrupt or not compatible with this version of SMF.", this happened both on a fresh SMF 1.1.1 install AND a patched SMF 1.1.1 (from 1.1 RC3).
On the fresh install, I have successfully uploaded the original mod through package manager, just when I click on "Apply Mod", the error message appeared. If I modify the package-info.xml before uploading, the package manager won't even through.
Any ideas? Thanks for the input!
jindan
Is there a way to make this mod to work like a "pin point - resturant locator?"
My idea is to use this mod to work like a locator for resturants
Members add his/hers favorite resturant in a forum topic, and it pins out the location on the map
for others to easy find :)
Hey guys, new version for 1.1.1. Let me know of any problems.
Thanks a lot. It works :D
Seems to me the who flag addon is missing a chunk of code:
It does this:
<file name="$sourcedir/Who.php">
<operation>
<search position="replace"><![CDATA[
mem.realName, IFNULL(mem.showOnline, 1) AS showOnline, lo.session, mg.onlineColor
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.ID_MEMBER)]]></search>
<add><![CDATA[
mem.realName, IFNULL(mem.showOnline, 1) AS showOnline, lo.session, mg.onlineColor, ip2c.c2code, lc.name, pin.country
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)]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
'is_hidden' => $row['showOnline'] == 0,]]></search>
<add><![CDATA[
'flag' => array($row['c2code'], $row['name']),
'url' => $row['url'],]]></add>
</operation>
</file>
I was getting an error and when I went back to my back up i found once I put in the old who it worked fine. I tracked through the code and found that it needed all this.
SELECT COUNT(*)
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)" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
list ($totalMembers) = mysql_fetch_row($request);
mysql_free_result($request);
----Snip----
// Look for people online, provided they don't mind if you see they are.
$request = db_query("
SELECT
(UNIX_TIMESTAMP(lo.logTime) - UNIX_TIMESTAMP() + " . time() . ") AS logTime,
lo.ID_MEMBER, lo.url, INET_NTOA(lo.ip) AS ip, mem.realName, lo.session,
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline, ip2c.c2code, lc.name, pin.country
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}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : '') . "
ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
LIMIT $context[start], $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
$context['members'] = array();
$member_ids = array();
$url_data = array();
while ($row = mysql_fetch_assoc($request))
{
$actions = @unserialize($row['url']);
if ($actions === false)
continue;
// Send the information to the template.
$context['members'][$row['session']] = array(
'id' => $row['ID_MEMBER'],
'ip' => allowedTo('moderate_forum') ? $row['ip'] : '',
// It is *going* to be today or yesterday, so why keep that information in there?
'time' => strtr(timeformat($row['logTime']), array($txt['smf10'] => '', $txt['smf10b'] => '')),
'timestamp' => forum_time(true, $row['logTime']),
'query' => $actions,
'is_hidden' => $row['showOnline'] == 0,
'flag' => array($row['c2code'], $row['name']),
'url' => $row['url'],
Of course correct me if I'm wrong but it is working on my site now.
Siath
using the above i inserted the missing code into my who.php and it works now..
thank you.
Ok, I posted a new version of who flags that should have a fix for that.
Hi there! My members like this so thanks very much. It's a nice piece of work :)
On the http://www.hldrforum.com/index.php?action=who area though, it gives me
Not unique table/alias: 'ip2c'
File: /home/hldrforu/public_html/Sources/Who.php
Line: 107
I've seen the error (roughly page 45 of this thread) but didn't see a fix. Is there any help for this one?
Thanks so much!
I like this mod very much.
I installed the new version for SMF 1.1.1, but I get this message:
Not unique table/alias: 'pin'
Bestand: /home/a2642hob/public_html/forum/Sources/Load.php
Regel: 892
How do I fix this?
@Threepwud I think he fixed it with a new who flag file if not it sounds like my error just look at my post that is up a few. It should fix it.
Siath
I'm trying to add the whoflags file and keep getting server errors: Premature end of script headers: index.php
I have no idea what's going on and I've tried several times to install this. I had no problem installing the other files.
Let me know if anybody knows what I need to do.
Bernard
Thanks Siath and Gobalopper :)
Clarkkent93, do you have all files set to be 'all writable' from within the forum's options? Just a guess.
OK, so mine is now up (thanks!!!!!!!!!) but in the who.php page I'm seeing each flag listed THREE times. Anyone know if this is meant to be the case?
Need some code pasting in?
Thanks!
Quote from: Threepwud on February 12, 2007, 07:16:29 PM
Thanks Siath and Gobalopper :)
Clarkkent93, do you have all files set to be 'all writable' from within the forum's options? Just a guess.
OK, so mine is now up (thanks!!!!!!!!!) but in the who.php page I'm seeing each flag listed THREE times. Anyone know if this is meant to be the case?
Need some code pasting in?
Thanks!
Thanks for everybody's help. I updated the file so it wouldn't be rejected by 1.1.2 and so far so good.
My next question is if I want to update the country database ie the csv file, how would I go about doing that? Would I have to repackage the entire package to include the newer database?
I'm also wondering if this mod would be responsible for the following error I'm receiving: "Not unique table/alias: 'pin'
File: /home/www/riverside.doddemagen.com/Sources/Load.php
Line: 895"? Any ideas?
Thanks again.
BTW, are there basic instructions on how to use this package ie how do I add the state?
Quote from: Surferbird on October 07, 2006, 04:25:33 PM
This is solved, IGNORE this message! ;)
Installed Gopaloppers location mod and now several messages and other functions gives this error when try to read them? My version is rc3
Any idea what to do?
Not unique table/alias: 'pin'
File: /home/xxxxxxx/public_html/xxxxxxxxx/forum/Sources/Load.php
Line: 875
How was this issue resolved? This is the error message that I'm getting:
Not unique table/alias: 'pin'
File: /home/www/riverside.doddemagen.com/Sources/Load.php
Line: 895
I've tried uninstalling the package but that seems to mess things up even more. Can anybody help?
If you get those errors it likely means the code got duplicated during uninstall or install. Go back to the original version of the SMF source/theme files and try installing again.
Quote from: Gobalopper on February 13, 2007, 04:23:40 PM
If you get those errors it likely means the code got duplicated during uninstall or install. Go back to the original version of the SMF source/theme files and try installing again.
I'm a noob (whew I said it! :-[) but can you explain that in more detail so I don't repeat the mistake again? I had someone over at TinyPortal fix the problem for me (thanks IchBin!) but it would be good to know for next time.
Know that the error is fixed, I do have an honest question for you. How do I get the flag to appear in the profile?
Again, the website is http://riverside.doddemagen.com (http://riverside.doddemagen.com)
Quote from: Threepwud on February 12, 2007, 07:16:29 PM
Thanks Siath and Gobalopper :)
Clarkkent93, do you have all files set to be 'all writable' from within the forum's options? Just a guess.
OK, so mine is now up (thanks!!!!!!!!!) but in the who.php page I'm seeing each flag listed THREE times. Anyone know if this is meant to be the case?
Need some code pasting in?
Thanks!
Nope you should only see each flag once. Correct me if I'm wrong. It sounds to me like it got duplicated. If you want I can take a look at your code and see if I can fix it. Need the address for your board. I don't mean to step on Gobalopper toes, just trying to help if I can.
Siath
http://riverside.doddemagen.com
btw, that's exactly what happened.
Go figure.
When I try to download the flags, from here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;attach=26651
I get "You are not allowed to access this section."
Shame.
Quote from: kat on February 15, 2007, 04:05:23 PM
Go figure.
When I try to download the flags, from here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=20168.0;attach=26651
I get "You are not allowed to access this section."
Shame.
If you're trying to get it from the download area, I received the same error. You can download it from the topic itself. It's in the very first one. Just so you know there is a new ip database file as of January 2007. The one in the download is old. Just replace it. You can get the web address for the file when you install the mod. Good luck!
Actually the IP database in the latest file is the new one from January.
And the link from the mod page should work now, it was going to a deleted version of the file before, thanks for pointing that out.
I must have had an older version. ::)
Quote from: siath70 on February 13, 2007, 08:27:01 PM
Quote from: Threepwud on February 12, 2007, 07:16:29 PM
Thanks Siath and Gobalopper :)
Clarkkent93, do you have all files set to be 'all writable' from within the forum's options? Just a guess.
OK, so mine is now up (thanks!!!!!!!!!) but in the who.php page I'm seeing each flag listed THREE times. Anyone know if this is meant to be the case?
Need some code pasting in?
Thanks!
Nope you should only see each flag once. Correct me if I'm wrong. It sounds to me like it got duplicated. If you want I can take a look at your code and see if I can fix it. Need the address for your board. I don't mean to step on Gobalopper toes, just trying to help if I can.
Siath
Siath, I'll take all the help I can get. It finally works but I have two flags. I just need to know where to look to fix the problem. Also is the flag supposed to show up in the profile or just in the post?
New site address is listed in my profile but just in case, here it is: http://www.ussriverside.us (http://www.ussriverside.us)
Quote from: Gobalopper on February 15, 2007, 07:33:32 PM
And the link from the mod page should work now, it was going to a deleted version of the file before, thanks for pointing that out.
No problem. It sure works, now! Thanks!
I know you from your "Dune" forum, too! :D
i got this installed easily on a 1.1.2 but when i click Place Your Pin, it doesn't show the map. not sure why.
Which file would I edit if I'm ending up with two of the same flags in a post?
Ideas?
I have 1.1.2 installed and the package installer will not allow me to install this MOD because the MOD says it is for version 1.2. Please provide me with detailed instructions as to how to fix this problem. I am not well versed in coding so please be explicit.
Thank you.
-Compton
You need to open the "package-info.xml" file, that's in the archive, in notepad and find the line that says:
<install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1">
and make it read:
<install for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2">
and the one that says:
<uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1">
to
<uninstall for="1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2">
and save it back into the archive, over-writing the original.
Simple as that.
You'll probably need to do the same to the xml file in the "WhoFlags" package.
I installed all 3 packages, but I can not see the flags appera, can anyone please tell me what should I do in order that the flags appear next to the IP
Is that using the SMF default theme, or all of them?
By that, I mean "Do they appear, if you use the default theme?"
yeas, I am using the SMF Default Theme, and the flags still don''t appear next to the IP-adresses in the view on line list
Have you got other mods installed that could affect it?
I'm thinking of, perhaps, the "Users online today" mod.
Quote from: kat on February 25, 2007, 04:12:48 PM
Have you got other mods installed that could affect it?
I'm thinking of, perhaps, the "Users online today" mod.
Yes, I have installed the "Users online today" mod. I didn''t know that that could affect it. Thanks for the tip
I'm not saying that it definitely IS that, but it's a thought.
Maybe Gobalopper will see this and comment, ay?
Quote from: kat on February 25, 2007, 04:33:36 PM
I'm not saying that it definitely IS that, but it's a thought.
Maybe Gobalopper will see this and comment, ay?
I hope so
When installing did you get any errors? Or did it say it couldn't apply certain parts of the mod?
Quote from: Gobalopper on February 25, 2007, 05:15:22 PM
When installing did you get any errors? Or did it say it couldn't apply certain parts of the mod?
No, it installed clean, no errror message. When I view the on line list, there is blank where the flags are supposed to appear.
Gobalopper's good at this, is he not? ;)
Hmm... maybe the HTML is there but your images are not in the correct spot? I suppose this could happen if you are using a custom theme.
Quote from: Gobalopper on February 25, 2007, 11:06:26 PM
Hmm... maybe the HTML is there but your images are not in the correct spot? I suppose this could happen if you are using a custom theme.
I am using the default theme, SMF version 1.1.2. Could it be as kat sugested above, that they could be in conflict with some other mod?
Uh...
1. Execute Code install.php
2. Extract Tree ./Themes/default/images/flags
3. Extract Tree ./Themes/default/images/maps
4. Extract File ./Themes/default/images/english/mm.gif
5. Extract File ./Sources/MemberMap.php
6. Extract File ./Themes/default/MemberMap.template.php
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Display.php Test successful
9. Execute Modification ./Sources/Load.php Test failed
10. Execute Modification ./Sources/ManageMembers.php Test failed
11. Execute Modification ./Sources/ManagePermissions.php Test successful
12. Execute Modification ./Sources/Subs.php Test failed
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/Display.template.php Test successful
15. Execute Modification ./Themes/default/index.template.php Test failed
16. Execute Modification ./Themes/default/script.js Test successful
That isn't good... is it? I'm running SMF 1.1.2...
Those messages are usually caused by another mod having altered the file(s), so the thing that the install is looking for aren't where they think they are, or they've been modified.
If you look at install.xml, which is in the directory named "smf 1.1.x", or whatever version of SMF you're using (Inside the location mod package), it'll tell you what's being looked for and what modifications it's trying to make. You can make the alterations, manually, then.
Doing that, manually, can be a bit scarey, the first couple of times that you try it. It's not so bad, though, once you've done it a few times.
Just remember to back up the files that you alter, just in case.
What I do, in this kind of situation, is rename the original file to add a "0" at the end, so I can just rename it back to the original name, if it all goes wrong.
I have members only from a particular state. Is there a way that i can show a state specific map?
A member asked me to remove himself from the member map, how can I do that?
This is an awesome mod- Thanks so much for it- However, can someone explain how to take the flags from the posts. I wouldn't want them showing on every single post of the members. Thanks
This is the change made to display.template.php file in the default theme's directory, NOT the one in "Sources":
</file>
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[
', $message['member']['group_stars'], '<br />';]]></search>
<add><![CDATA[
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';]]></add>
</operation>
</file>
You just need to reverse that.
Namely, find these lines and remove them:
if (!empty($message['member']['flag']['country']))
echo '
<img src="', $settings['default_images_url'], '/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';]]></add>
Keep a backup of display.template.php, just in case I'm wrong.
Excelent! That worked perfect - and you were right!
I'm sure it's been said somewhere in this thread about this, but I'll ask anyway. Could you tellme why some of the pinns are red and some are Green?? Thank you
I just found my answer. Thanks so much anyway! :)
Pleasure, mate.
Hello, i had installed this mod in my forum : http://ligaworms.org/foro ("Mapa de usuarios" link)
I installed it before updating to 1.1.2, then i upgraded, and it was working fine.
But i had it on a temporary folder (because the website wasn't ready to launch). We've now opened it to the public, which means i moved all the files to the respective folder "/foro/", but now when i click on the button i made it isn't working. It just redirects to the main forum index. Doesn't return any errors at all.
The mod was working fine, even on Bloc's "leviathan" skin. Until i moved all the files. What might be happening?
Thanks in advanced for your help, this is a terrific mod :) I'd really like to get it working asap.
I would assume that all your paths are screwed.
You'll need to reinstall the mod, I'd imagine. Or, manually edit the files to make them point to the right directory.
Why would that be, everything else is working fine :P And which files would i have to edit? I've checked the only two .php's brought with the mod, none uses absolute paths. I dont get it :o
Also, the administration link to users map config redirects to the main index. Without any errors.
EDIT: solved. the problem was i had uploaded an outdated index.php... so it wouldn't reckognize the 'mm' action.
sorry! ;)
Anyone have a zip of this mod that will install with 1.1.2?
Great Mod.
A couple issues I came across.
1. When a new member posts himself on the map, a ll the member dots go up to the header area. The fix for this is to refresh a page. After refreshing all the dots go to where they are supposed to be.
2. Mod addition when you can see country flag on "who" page stalls my server. And I have only 2 websites on a very powerful machine. Any ideas on how to get those fixed?
If you go into the package-info.xml file and add 1.1.2 to the install line, then repackage the mod it may install but watch out for errors.
Quote from: dklassen on March 14, 2007, 04:20:41 PM
Anyone have a zip of this mod that will install with 1.1.2?
I think it would be beneficial to add number of users from a particular country to the left of the flag
Quote from: bbmtalk on March 07, 2007, 10:27:59 PM
A member asked me to remove himself from the member map, how can I do that?
Anyone please help. thanks.
Quote from: bbmtalk on March 07, 2007, 10:27:59 PM
A member asked me to remove himself from the member map, how can I do that?
Never mind. I found the solution.
Click "Place Your Pin" - it will show the option of removing.
Sorry, I new in SMF.... and all that stuff
as I like to implement a country map and no world map.
where do I find the additinal maps for Location maps?
sofar my search in here for that addition brought no result.
The additional maps are attached to the first post as well as downloadable form the mod download page
probally missing somethinf obvious here but:
Installing this package will perform the following actions: Type Action Description
1. Execute Code install.php
2. Extract Tree ./Themes/default/images/flags
3. Extract Tree ./Themes/default/images/maps
4. Extract File ./Themes/default/images/english/mm.gif
5. Extract File ./Sources/MemberMap.php
6. Extract File ./Themes/default/MemberMap.template.php
7. Execute Modification smf1.1.x/install.xml Modification parse error
8. Execute Modification - Modification parse error
Quote from: Gobalopper on February 25, 2007, 05:15:22 PM
When installing did you get any errors? Or did it say it couldn't apply certain parts of the mod?
Can you please confirm this mod is compatible with SMF 1.1.2 ?
Thanks!
Same question: Can you please confirm this mod is compatible with SMF 1.1.2 ?
Thanks!
Quote from: Surferbird on March 31, 2007, 06:10:59 AM
Same question: Can you please confirm this mod is compatible with SMF 1.1.2 ?
Thanks!
Try this to make it compatible with 1.1.2. Download the package, unzip it and open the Info file. There find where it says Install and at the end of the smf versions that there are already mentioned there, add 1.1.2 after 1.1.1 or replace 1.1.1 with 1.1.2, same thing.
Do the very same thing where it says uninstall, zip the package back againn including the changes you made and you are good to go. It worked for me and I hope this helps and it works for you as well
Thanks, i'll try this :)
It worked after few reinstallations, thank you so much :)
I'm having the exact same "modification parse error" problem/message as niatram posted last week.
It's taken me all day to get alll the previous problems/errors whittled down to just this one last error message......so I don't want to cross my fingers and click on Install hoping that I won't have to delete everything and start over from scratch.
If someone has any ideas, comments, suggestions, advice or anything else to say about how to solve this "modification parse error" please don't hesitate to post it here (and soon!! :) ).
Thank,
Diamondhead
Mine started working after 2-3 uninstall and reinstall, if this is of any help?
Quote from: Diamondhead on April 02, 2007, 12:06:11 AM
I'm having the exact same "modification parse error" problem/message as niatram posted last week.
It's taken me all day to get alll the previous problems/errors whittled down to just this one last error message......so I don't want to cross my fingers and click on Install hoping that I won't have to delete everything and start over from scratch.
If someone has any ideas, comments, suggestions, advice or anything else to say about how to solve this "modification parse error" please don't hesitate to post it here (and soon!! :) ).
Thank,
Diamondhead
i was never able to resolve this and have since installed the googlemap mod
This is all VERY confusing.
It appears that this mod is NOT compatible with SMF 1.1.2. Some people have success with it - and others do not. On the downloads page, the author of the mod does NOT indicate compatibility with SMF 1.1.2, so positive experiences of some folks notwithstanding, it seems there is a likely compatibility issue.
What are the chances that the mod will be upgraded to be CONFIRMED compatible with SMF 1.1.2 ?
Niatram, how is the googlemap mod working? Any problems or heavy drawbacks you've noticed yet?
Surferbird, uninstalling and reinstalling this mod is what eventually whittled down the errors to that final "modification parse error."
I ended up clicking the Install button anyway.....and nothing about the forum changed. It didn't install the mod (although it says it is installed).....but at least it didn't crash the forum. Oh, and the difference between my error message and Niatram's was that on Line 7. of his error message it says "smf1.1.x/install.xml" whereas mine said ""smf1.0.x/install.xml"
(After the install) the error logs from within the Admin section of the forum were informative about what caused the problem....but gave no clues about how to fix it. Apparently the install program is looking for maps and flags in the TEMP folder (which I had to manually create, per instructions elsewhere in this forum thread)....and when it can't find them there it gives the mod parse error. "Parse" means "read"...so I was already aware that problem was that the mod was unable to find/read/interpret a file.
Btw, I also installed the "unlimited number of member fields" mod....and it has the same problem. It shows as being installed but it doesn't do any thing. Seems as if those mods that have been around for years need a little code tweaking to bring them fully into compliance with 1.1.2?
I'm wishing everyone else the best of luck with these mods...... :D
been using it for about 1 week with no issues, my users love the functionality that it provides. hopefully it will scale well as more users add pins
I cleaned up temp and files on server after install, run table error fix every time and then, voilaa it was there and working very well without detailed reasons that i know. I'm in no way experienced with programming and PHP...therefore the "Voilaa" ;)
For those of you who are as new to this as I am here is some fantastic advice about installing mods....
Even from clean SMF (re)installs I was having to fight most mods to get them in. Somewhere in these forums I discovered that you have to manually create a "temp" directory within your Packages directory (I never saw that in any of the official SMF documentation)....and I was having to recreate that "temp" directory with every new attempt at installing a mod. Even though I created the "temp" directory, most mods still would not install without those "modification parse errors" and Test Failed messages.
I had almost decided to go mod-less when I installed the No Temp Directory Removal mod from a new SMF reinstall. WOW!! What an incredible difference that made!! Once that mod was installed, every one of the 11 mods aftwards has slid right in without a hitch. The only one that has still refused to install is the Location Mod. Not a big deal. I'll wait until they shake a another bug or two out of it and try it then (or go to the GoogleMaps mod).
Bottom line to this story... If your 1.1.2 mods are refusing to install, try installing the No Temp Directory Removal and see if it doesn't make a 100% difference in installing the mods specifically noted to be 1.1.2 compatible.
One more thing... I just discovered a site called SMFHacks.com. I have only scanned their site for a minute but they seem to have tons of mods not found here on simpleminds.org. They are definitely worth a look.
Good luck and happy installing!
Good to hear you solved the problems :)
I found them maps, thank you. :)
Installed like a Charm, works Fine on 1.1.2, just wondering if/where I can find more specfic maps. Something like the 50 states.. Would be extra nice..
Apologies if this has already been answered, i did search but didn't find anything.
Most of my members are in the UK. How can I make the drop down country list (not map list) default to United Kingdom, rather than Afghanistan?
Great mod btw - worked like a charm on 1.1.2
Regards,
Wilsy.
there is a default map to show listed in the admin for this mod...
Hi Kindred,
There is a default map option, but I want the drop down country list to default to United Kingdom, rather than Afghanistan.
Regards,
Wilsy.
then you will have to change the code in membermap.template.php
new versione wen are aviable?
Weird error
Installed the mod in 1.12 It works for me as admin but no-one else appearse to be able to view the membermap
Found a solution , I un-installed and reinstalled the mod and there are now additional options in the permissions settings for each group, to enable disable membermap
Quote from: babjusi on March 31, 2007, 11:47:34 AM
Quote from: Surferbird on March 31, 2007, 06:10:59 AM
Same question: Can you please confirm this mod is compatible with SMF 1.1.2 ?
Thanks!
Try this to make it compatible with 1.1.2. Download the package, unzip it and open the Info file. There find where it says Install and at the end of the smf versions that there are already mentioned there, add 1.1.2 after 1.1.1 or replace 1.1.1 with 1.1.2, same thing.
Do the very same thing where it says uninstall, zip the package back againn including the changes you made and you are good to go. It worked for me and I hope this helps and it works for you as well
I can confirm the validity of this. Took very little effort and worked like a charm.
It would be nice to have this mod upgraded as well.. I haven't been able to use it as I started with 1.1.2
Kind Regards
Hello all :)
I've searched on this thread and nothing came up about this so i'll apologise now if its been mentioned before.
I have installed the member map and fixed the duplicate installation error so its working - except....
You can place a pin etc fine, but when you then go to view the member map the pin is showing after the image (to the right) - not on it where it should be. This affects all of my themes (even default) - can you help please? as I really like this mod?
SMF Version 1.1.3
Addy for member map : http://the-quizzone.co.uk/board/index.php?action=mm
thanks all :)
Quote from: confused.com on July 06, 2007, 08:45:52 AM
You can place a pin etc fine, but when you then go to view the member map the pin is showing after the image (to the right) - not on it where it should be. This affects all of my themes (even default) - can you help please? as I really like this mod?
SMF Version 1.1.3
I have the same problem. Since I upgraded, ALL of the pins are pushed to the side, and there's no window for choosing a new pin. I guess the old mod isn't compatible with the new version of smf 1.1.3 :( I really like this mod, and I hope someone knows the cure for it.
just refresh the page...
it works fine on my 1.1.3
but it's been doing that occasionally since I installed it 4 revs ago...
Nahh- I tried and nothing happend. Same old problem. I went to check in the forum error log- and this is the message:
8: Undefined index: mm_click_highlight
File:public_html/Themes/default/MemberMap.template.php (eval?)
Line: 75
Any takers??
Does anyone know maybe how to manually change this mod, please? If not- than I'll just erase it out of my forum, but it's an awesome mod and I rather have it. :-\
This mod was working for me fine on 1.1.3. Now all of a sudden, pins have started to appear in the wrong place (off to the right of the map as described above). This change happened apparently all by itself as I've made no changes to my forums and installed no new mods, any ideas what the heck has happened... It's the same in both ie and firefox, I can re-place my pin in the correct position and it seems to save but asking all members to re-place is a real pain ::)
you don't have to replace the pin... just refresh the screen.
Mine don't even work at all- ALL of the pins are to the right, and there's no more drop down window either. Nothing :(
Quote from: Kindred on August 09, 2007, 08:07:05 AM
you don't have to replace the pin... just refresh the screen.
yeah tried that, several times. Deleted cache etc and is still the same...???
Well- I went and deleted it with intention of uploading it again, hoping it'll just miraculously start working, and now It's telling me that the file is corrupted, or my forum doesn't support it :(
Does anyone know If this will ever be available for 1.1.3, please??
ok, I don't know if this is allowed or not, I hope I don't get in trouble. I was looking at another mod and how you had to change the package-info.php file to include the version numbers and I did that with this and it worked for me on 1.1.3. the only thing I edited was that one snippet (added "1.1.2" and "1.1.3" in each install direction) in each file! I don't see where it was necessary in the additional maps file. I in no way am responsible for anything to do with this mod! ;)
Oh Man that's so exciting. I tried downloading it, but when I went to apply it, Error came up:
Installing this package will perform the following actions: Type Action Description
1. Execute Code install.php
2. Extract Tree ./Themes/default/images/flags
3. Extract Tree ./Themes/default/images/maps
4. Extract File ./Themes/default/images/english/mm.gif
5. Extract File ./Sources/MemberMap.php
6. Extract File ./Themes/default/MemberMap.template.php
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Display.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Sources/Subs-Members.php Test successful
11. Execute Modification ./Sources/ManagePermissions.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
14. Execute Modification ./Themes/default/Display.template.php Test successful
15. Execute Modification ./Themes/default/index.template.php Test failed
16. Execute Modification ./Themes/default/script.js Test successfu
What to do with that one now?? :-\
I did have to go through the list of files by gobalopper on the first page of this thread (http://www.simplemachines.org/community/index.php?topic=20168.msg162182#msg162182) and be sure and chmod all the files he listed to 755, then it worked for me. I got an error before I did that, but I don't recall it editing that particular file? might be worth a try anyway I guess. after I chmod'd them back btw.
Ok, thanks so much. I checked and the Index.template.php is nOT on that list, should I just install it anyway?/ ::) Sorry- I'm a bit clueless when it comes to stuff like this. :-[
I would prolly go ahead and chmod that file too if it was me. I looked, it does edit that file to include the action=mm thing in that index.template.php file
no... action=mm is in INDEX.PHP.
index.template.php is the addition of the map button to the forum menu.
Im doing a full back up of my forum, than I'll try just doing it- wish me luck! :-[
YEAH!!!! I GOT IT!!!! OOOOH I'm soooo happy!!!! Pitchick- I can't thank you enough!!!!! Yey!
I installed the mod to the mod that pitchick furnished and it put the location package right up to my 1.1.3
But when I click on the map to place a pin, nothing happens.
Then I click on place pin and click on the map and nothing happens except I get a message saying that I need to click on the map for the location. But I did that.
I then went in permissions and made sure everything was configured properly. It is.
What could be wrong?
--Martin
Did you try to refresh?? UI did it and it worked for me.
Another question:
I also have the "Country Flag" installed, and now with the location mod- some of the members are having 2 flags in their post. How can I eliminate one set of flags for the members who have 2 without erasing the country flag mod?
Quote from: Kindred on August 10, 2007, 05:35:39 PM
no... action=mm is in INDEX.PHP.
index.template.php is the addition of the map button to the forum menu.
haha, we're saying the same thing...
"action=mm thing" = default theme button for the map.
really I was just saying the install does edit that index.template.php file too so chmod'ing it prolly wouldn't hurt. :)
glad it worked for you dl. ;D
now my only thing I'm left trying to do with this mod, is to make it where guests can place a pin too. it let me place a pin as a guest, but it doesn't appear afterwards that I see even after cache clearing. It lists 2 pins at the top ("World (2)") but the second pin isn't on the map or in "user listing" below.
Quote from: pitchick on August 10, 2007, 01:46:45 PM
ok, I don't know if this is allowed or not, I hope I don't get in trouble. I was looking at another mod and how you had to change the package-info.php file to include the version numbers and I did that with this and it worked for me on 1.1.3. the only thing I edited was that one snippet (added "1.1.2" and "1.1.3" in each install direction) in each file! I don't see where it was necessary in the additional maps file. I in no way am responsible for anything to do with this mod! ;)
It worked like a charm! We've been without this feature since upgrading from 1.1 RC2, and it is nice to have it back!
Strange stuff sometimes happens!! It is up and performing just fine now. Went up this afternoon without a hitch. Just announced it with a topic to my members.
Here is my site: Moderated sci.astro.amateur (www.moderatedsciastroamateur.org)
Thanks pitchick!
--
Martin
This is not compatible for Version 1.1.3.
when will it be?
Quote from: rchrist364 on August 28, 2007, 04:08:50 PM
This is not compatible for Version 1.1.3.
when will it be?
It is! Look here please: http://www.simplemachines.org/community/index.php?topic=20168.msg1196300#msg1196300 :)
The mod is great. But what is the meaning of red and blue pins? ???
gender
Aaaaaaahhhhhhhh... THX! :)
I've tried searching this problem and couldn't find anything. Location Mod and Addtl maps installed fine. I try installing Who Flags and I get the following test fail errors:
./Sources/Who.php
./Themes/default/Who.template.php
When I tried to install anyways...I get the following error:
Error message:
Premature end of script headers: index.php
Anybody have any ideas.
Hello,
i've SMF 1.1.4 and tried to install the base mod but SMF gives me the error that the package could be corrupt when i click on Apply mod.
Any suggestion?
Thanks,
F.
Since the latest version of the forum has been implemented several modifications are not yet updated.
Please update the locations mod as our users do use it and love it.
http://www.thethriftshopper.com/forums/shopper/index.php
I would like to see this mod updated for 1.14 as well. can I count on this soon or don't hold my breath?
It should work just fine under 1.1.4... just use the emulate_version commandline argument.
http://www.simplemachines.org/community/index.php?topic=198163.msg1260406#msg1260406 (http://www.simplemachines.org/community/index.php?topic=198163.msg1260406#msg1260406)
EDIT:
Quote from: Kindred on October 08, 2007, 09:18:23 AM
It should work just fine under 1.1.4... just use the emulate_version commandline argument.
i've tried your tip on the link in the previous post but..nothing..
i've uploaded the mod, clicked "Apply mod", than copied the target url:
http://domain/index.php?action=packages;sa=install;package=gobalopper.locationmod.zipthen added &emulate_version=1.1.3 to the end of the previous link:
http://domain/index.php?action=packages;sa=install;package=gobalopper.locationmod.zip&emulate_version=1.1.3..but nothing..
Suggestions?
Thank you,
F.
my gaWD i feel so stupid when I come here. calgo take me awayyyyyyyyyy. lol
in laymans terms for us po unedumicated peeps please and thankya
*bump!*
any help is appreciated.
F.
I anyone still wants this to work in 1.1.4 and hasn't been able, mine is now working and all I did was to edit package-info.xml for all three packages, changing 1.1.1 to 1.1.4. uninstalled and re-installed with edited xml files and it's working fine.
Quote from: glee on March 10, 2008, 08:56:32 AM
I anyone still wants this to work in 1.1.4 and hasn't been able, mine is now working and all I did was to edit package-info.xml for all three packages, changing 1.1.1 to 1.1.4. uninstalled and re-installed with edited xml files and it's working fine.
Can you give me the specific edits that need to be made to all files?
run the mod through the mod parser....
Quote from: Kindred on April 22, 2008, 11:06:42 PM
run the mod through the mod parser....
Did you read my post? I was talking in response to version 1.1.4.
If I run the mod through the mod parser....
"An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.
Back"
in that case, run it as an earlier version.... or open the archive and read through the install.xml file.
Quote from: Kindred on April 22, 2008, 11:42:22 PM
in that case, run it as an earlier version.... or open the archive and read through the install.xml file.
K thanks.
Has anyone come up with a fix for the pins being offset to the right until the screen has been refreshed - it looks kinda messy as the members wont know to refresh the screen?
Regards,
Wilsy.
I'm trying to install this on a friend's forum, having made the edits for it to go on v1.1.5.
When I hit "Apply mod", I get "15. Execute Modification ./Themes/default/index.template.php Test failed".
Having checked and found that the modification it makes is this:
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></search>
<add><![CDATA[
// The [member map]
echo ($current_action == 'mm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mm">' , $txt['mm_mm'] , '</a>
</td>' , $current_action == 'mm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></add>
</operation>
</file>
I removed that section, so that I could do the edit manually.
However, when I try to install it, I'm still getting the same error.
I can't see any other alterations that are made to the index.template, so I'm a bit lost.
Any ideas, please?
you don't have to remove it... if you know what you have to manually install, just ignore the error and install anyway, then do your manual edit(s)
Ah... I wasn't sure whether the install might screw something, if I did that.
I'll give it a go.
Ta!
Hello helpers !
I am quite new to SMF and no good at coding. To that my English is not the best.
Can anyone put a zip file her for the latest version that could run on smf 1.1.5 + TP 0.9.8 ?
I would be a big help for me as I would destroy my portal when I try to put codes into files.
Thank you very much
Greetings.
I have been using this mod successfully for YEARS - currently running on smf 1.1.5...
I would like a variation of this mod, where when someone posts a message, they can add a pin to a map.... the pin would be linked to that post.
Then there would be a map showing pins of all the posts.
1. is that possible
2. any chance we could make this a reality? :P
I would pay for it.
Thanks in advance.
Well I uopload the zip file via upload manager in ACP. Then when I hit the "Make modifikations" it says no modifaction was made ??? Any idea how I can get it running ?
I'm totally confused! on the download page it doesn't mention being compatable with 1.1.5 but I thought I read somewhere in this thread that it was compatable with 1.1.5.
So what is the final word? Does this mod work with 1.1.5???
For the record. I'm using SMF 1.1.7 with this mod and it's working fine.
Quote from: digit on July 08, 2008, 03:23:45 AM
I have been using this mod successfully for YEARS - currently running on smf 1.1.5...
I would like a variation of this mod, where when someone posts a message, they can add a pin to a map.... the pin would be linked to that post.
Then there would be a map showing pins of all the posts.
1. is that possible
2. any chance we could make this a reality? :P
I would pay for it.
Thanks in advance.
No takers? 8) :P
I can't get this working with version 1.1.10, is they're any help avaliable?
I think this mod looks very nice and I would love to have it on my site..
will this mod be available for 1.1.10 sometime?
We have install this mods since years, and we love "our" member map in the forum.
I know one day we have to upgrade to SMF 2, but we won't lose our member map, will be there
a version of this mod available for SMF 2?
is there a solution to get it work with smf 1.1.11 .. I get the error "no Actions defined" (German: "Es sind keine Aktionen definiert!")
Quote from: bemax on July 12, 2010, 12:16:31 PM
is there a solution to get it work with smf 1.1.11 .. I get the error "no Actions defined" (German: "Es sind keine Aktionen definiert!")
Have you tried to install the mod manually?
An odd problem just occurred.
I had the maximum number of pins shown on map set at 8000... everything was FINE for the longest time... then a member reported the map was no longer working... I checked and sure enough... it wasn't.
SO, I set the max number to 200 to test, and everything was fine.
SO, I tried 6000... NADA.
Then I tried 5000, and VOILA... it worked. I wonder if there is now a 5000 pin limit at google?
Is there any chance this will be upgraded for 2.0
It would seem not. :(
its compatible with 2.0.4 forum version?
not in the least... did you even read the first post?
Ok, I know I'm not the first who asks this, but, is there maybe a chance that the mod will be upgraded to a newer version? It really is a nice one.
Quote from: Kindred on September 26, 2013, 08:00:11 PM
Quote from: Kindred on March 05, 2013, 02:12:14 PM
did you even read the first post?
Yes, I did, so I ask do maybe someone will try to upgrade it to a newer version.
SInce no one has requested the mod to be switched to them, or even commented on having any interest in this thread, I think the answer is still no.
shame this mod hasn't been updated for 2.0.6 it looks like it had promise