PDA

View Full Version : Major Additions - DamnComp - MemberMap


Pages : [1] 2

soniceffect
07-11-2012, 10:00 PM
ABOUT
After moving over from xenforo the one thing I was missing on my forum was a membermap. This is a map where your users can pin their location so that others can see where people are. This modification does just this.


FEATURES
Admin Settings:

Enable Membermap - Globally switches membermap and associated tabs off
Allowed Usergroups - Which usergroups can see the membermap
Can Edit - Which usergroups can add/edit markers on the map



User Functions

Add/Edit marker by drag drop on map
Add/Edit marker by searching for location by text
Online users show different colour
Popup bubble on markers with avatar and profile link
Live user search

INSTALL

Upload all files in the upload folder to your forum directory leaving their structure intact, then import the product file. If you are using a custom skin, please ensure you also add the dcmembermap image folder to your own misc directory within images

PLEASE NOTE THIS MODIFICATION IS IN BETA STAGE. SUPPORT WILL BE GIVEN ONLY TO THOSE WHO SPECIFY INSTALLED.

Changelog:
13 July 2012 - Updated failed installer
14 July 2012 - Beta 1.1 Release. Fixes missing avatars and removed unused column from database which may be causing installation issues.
14 July 2012 - Beta 2 Released. Infomation box has now been replaced so that css can be edited if required. Prefix added to install code to fix issues with install. Various other minor fixes.
15 July 2012 - Beta 3 Released - Installer prexif code amended. Who's online now fixed to show members online within map area. Avatars set from admin set avatars now working. Various other minor fixes.
17 July 2012 - 1.0.0 final Released - Final phrases added so the product is now fully phrased.
18 July 2012 - 1.0.1 Released - Phrase added for breadcrumb text, support for umlauts and other utf8 characters.
20 July 2012 - 1.0.2 Released - All phrases now utf encoded for foreign language support, avatar creation changed to reduce query and remove problems, missing table prefix added, new settings added for default longitude/latitude/zoom level.
29 July 2012 - 1.0.3 Released - Security update
29 July 2012 - 1.0.4 Released - Fixed what I previously broke due to being half asleep. That will teach me!
30 July 2012 - 1.0.4b Released - Quick fix for markers not updating correctly.

ProFifaLeagues
07-12-2012, 07:59 PM
Will Install when i get home Nice work mate thank you

Krusty1231
07-12-2012, 10:00 PM
Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT U.username as username,
U.userid as userid,
MM.lat as lat,
MM.lon as lon,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM _vbdc_membermap AS MM
LEFT JOIN _vbuser AS U ON U.userid = MM.userid
LEFT JOIN _vbavatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN _vbcustomavatar AS CAV ON (CAV.userid = U.userid);

MySQL Error : Table 'jerry_forum._vbdc_membermap' doesn't exist
Error Number : 1146
Request Date : Thursday, July 12th 2012 @ 05:59:39 PM
Error Date : Thursday, July 12th 2012 @ 05:59:40 PM
Script : http://www.XXXXXX/forum/dcMembermap.php
Referrer : http://www.XXXXXX/forum/forum.php
IP Address : XX.XX.XX.XXX
Username : Jerry
Classname : vB_Database
MySQL Version : 5.5.23-55

soniceffect
07-12-2012, 10:07 PM
Did you get any errors when you installed?

EDIT: Issue with installer, sorting now an will reupload

Krusty1231
07-12-2012, 10:11 PM
None. It installed fine....

soniceffect
07-12-2012, 10:20 PM
This one will work. Updating main package in a min

EDIT: Main package now updated also. If you have already installed, please uninstall the product and reinstall with the latest one. The old one wasnt creating tables correctly. Sorry guys

Please ensure you click on INSTALL if you add :)

orangefive
07-12-2012, 10:35 PM
Hi - installed but cant see a marker to drag.

soniceffect
07-12-2012, 10:37 PM
You need to add a marker first by clicking an area on the map. Please click installed

soniceffect
07-12-2012, 10:39 PM
Hi - installed but cant see a marker to drag.

Ah sorry now I understand .. Are you running this on a custom skin? If so you will need to add the image files into your own image directory.

misc/dcmembermap is the folder. You will need to ensure that the folder dcmembermap is within the skin folder of the skin you are using as well.

CoZmicShReddeR
07-12-2012, 10:55 PM
I think some are used to the one that grabs your IP... Is it possible to set it to choose a user info box color to match web design and html mockup color scheme.. For instance my theme is dark and the user names are white...

Need a fix it shifts the theme/style over to the left
http://www.cozworld.com/dcMembermap.php

Anyways thanks for making something simple to hook up! :)

soniceffect
07-12-2012, 11:03 PM
I think some are used to the one that grabs your IP... Is it possible to set it to choose a user info box color to match web design and html mockup color scheme.. For instance my theme is dark and the user names are white...

Need a fix it shifts the theme/style over to the left
http://www.cozworld.com/dcMembermap.php

Anyways thanks for making something simple to hook up! :)

Seems to be the social icons which are making it shift over for some reason. Will take a look at this tomorrow unless Jos (BlueWolf_) gets to it first. 1am here and head losing it a little LOL

Thankyou for the feedback. Please could you click installed m8 :)

voglermc
07-13-2012, 12:48 AM
Can this use a member profile field to set a marker? Would be a nice feature for the future

Mr_Running
07-13-2012, 02:04 AM
Excellent :)

Currently my Avatar is not displaying? All I see is the default no avatar image
It would be nice to have it fully Phrased ....example: I would like to change Member Map

ProFifaLeagues
07-13-2012, 05:45 AM
No Avatars Show up for us but otherwise Easy install and Working great Thank you Sir!

soniceffect
07-13-2012, 07:00 AM
Can this use a member profile field to set a marker? Would be a nice feature for the future

Not something I have planned tbh as I have tried it before and its far from accurate. For example if I geocode Rochdale which is where I am in the UK I end up in Rochdale in the US. I would have to type rochdale,uk which is not IMO very user friendly.

Excellent :)

Currently my Avatar is not displaying? All I see is the default no avatar image
It would be nice to have it fully Phrased ....example: I would like to change Member Map

The modification is fully phrased unless I missed somewhere.

No Avatars Show up for us but otherwise Easy install and Working great Thank you Sir!

Will have a look at the avatar problem when I get home from work tonight. Thankyou for the complement

orangefive
07-13-2012, 07:44 AM
You need to add a marker first by clicking an area on the map. Please click installed

will try your suggestion - now marked installed. will feed back. cool mod by the way!!

soniceffect
07-13-2012, 07:47 AM
will try your suggestion - now marked installed. will feed back. cool mod by the way!!

Hi m8,
Need to read the comment after that. You are quite right in saying to need to drag it. The problem is (Im assuming) that you are on a custom skin and havent got the images in the misc directory of your skin.

DannyV
07-13-2012, 08:11 AM
Installed here.
The map is working, but after trying 3 times or so, the location I set isn't remembered.
I click "save location" every time, but eacht time I go to the map again, I get the message "You haven't set your location yet!"

Is it also possible to somewhere edit what the height of the map will be?
Ans since, I'm asking anyway :D, where can I change the background of the avatar popup ?

soniceffect
07-13-2012, 08:23 AM
Installed here.
The map is working, but after trying 3 times or so, the location I set isn't remembered.
I click "save location" every time, but eacht time I go to the map again, I get the message "You haven't set your location yet!"

Is it also possible to somewhere edit what the height of the map will be?
Ans since, I'm asking anyway :D, where can I change the background of the avatar popup ?

That quite odd as I cant replicate that problem here. Are you getting any errors when you click on save location? Are you logged in at the time?

The popup colouring etc is something I am looking at tonight so pls bare with me on that. The height of the window you should be able to change from the dcmembermap.css template

orangefive
07-13-2012, 08:42 AM
wicked! put them into my modded styles misc and now working, avatars are not displaying though.

DannyV
07-13-2012, 09:10 AM
That quite odd as I cant replicate that problem here. Are you getting any errors when you click on save location? Are you logged in at the time?

The popup colouring etc is something I am looking at tonight so pls bare with me on that. The height of the window you should be able to change from the dcmembermap.css template


I re-uploaded the files, all working fine now.
Thanks on the tip for the mapheight. Adjusted now.

I know it's not in the scope of a membersmap, but would it be possible if certain membergroups can place "general" marks on the map. So locations that have anything to do with the community?

orangefive
07-13-2012, 09:58 AM
this is an ace mod already, keeping my eye on this - well done!!

soniceffect
07-13-2012, 09:59 AM
I re-uploaded the files, all working fine now.
Thanks on the tip for the mapheight. Adjusted now.

I know it's not in the scope of a membersmap, but would it be possible if certain membergroups can place "general" marks on the map. So locations that have anything to do with the community?

Not possible at present, however it is something that I have in mind for a future update.

DannyV
07-13-2012, 10:10 AM
No worries, was just wondering.
It's a really nice mod. Thanks for that.
Nominated for MOTM.

soniceffect
07-13-2012, 10:22 AM
No worries, was just wondering.
It's a really nice mod. Thanks for that.
Nominated for MOTM.

Cheers for the vote of confidence :) Very much appreciated

Vick98
07-13-2012, 10:30 AM
For some reason my avatar isn't showing on the popup bubble. Any suggestions?

soniceffect
07-13-2012, 10:34 AM
For some reason my avatar isn't showing on the popup bubble. Any suggestions?

Aware of some problems with avatars which I am looking into tonight. Please could I have link to your site so I can determine the cause?

Vick98
07-13-2012, 10:49 AM
I only have it set for registered users and members. Do you want me to change it for this test?
Link: http://www.clansks.com/dcMembermap.php

Thank you for the quick reply.

ProFifaLeagues
07-13-2012, 11:02 AM
Could it maybe to do with some of us using the database to store images and some sites using the file system maybe?
Just a quick thought when I was looking this morning I will have a try and move mine and see if any changes arise

BadgerDog
07-13-2012, 11:06 AM
Is this a 4.20 mod only, or will i work with 4.1.3?

We've been using Digitalpoint's User Map up to now, but this looks interesting ... :up:

Thanks for your efforts ... :)

Regards,
Doug

Mr_Running
07-13-2012, 11:07 AM
The modification is fully phrased unless I missed somewhere.

I have played around with it some more and one Button I was looking to change was the

Update Your Location and next to it the phrase You haven't set your location yet!
I did a search for this phrase and changed it but it did not change it here.

I would also like to change the Page Title Member Map

Cheers, :)

orangefive
07-13-2012, 11:10 AM
Aware of some problems with avatars which I am looking into tonight. Please could I have link to your site so I can determine the cause?

Hello - mines the same www.thewoollybacks.co.uk

soniceffect
07-13-2012, 11:14 AM
I only have it set for registered users and members. Do you want me to change it for this test?
Link: http://www.clansks.com/dcMembermap.php

Thank you for the quick reply.

yeah please.. and no problem :)

soniceffect
07-13-2012, 11:17 AM
Hello - mines the same www.thewoollybacks.co.uk

Cheers

soniceffect
07-13-2012, 11:21 AM
Hello - mines the same www.thewoollybacks.co.uk

No access on there m8 even for registered member

I have played around with it some more and one Button I was looking to change was the

Update Your Location and next to it the phrase You haven't set your location yet!
I did a search for this phrase and changed it but it did not change it here.

I would also like to change the Page Title Member Map

Cheers, :)

No problem, will take a look at these once Im back from work tonight for ya.

Vick98
07-13-2012, 11:23 AM
yeah please.. and no problem :)

Done...temporarily.

soniceffect
07-13-2012, 11:29 AM
Done...temporarily.

Cheers. Looks like an issue with avatars when stored in the database. Will have a look into this tonight also and get a fix out

Vick98
07-13-2012, 11:34 AM
Cheers. Looks like an issue with avatars when stored in the database. Will have a look into this tonight also and get a fix out

Thank you.

Mr_Running
07-13-2012, 11:56 AM
Can this use a member profile field to set a marker? Would be a nice feature for the future

Not something I have planned tbh as I have tried it before and its far from accurate. For example if I geocode Rochdale which is where I am in the UK I end up in Rochdale in the US. I would have to type rochdale,uk which is not IMO very user friendly.

How about profile field id set / displayed in the popup bubble. :)

soniceffect
07-13-2012, 12:01 PM
Could it maybe to do with some of us using the database to store images and some sites using the file system maybe?
Just a quick thought when I was looking this morning I will have a try and move mine and see if any changes arise

Is this a 4.20 mod only, or will i work with 4.1.3?

We've been using Digitalpoint's User Map up to now, but this looks interesting ... :up:

Thanks for your efforts ... :)

Regards,
Doug

How about profile field id set / displayed in the popup bubble. :)

This however, is planned for the next version :)

orangefive
07-13-2012, 12:45 PM
No access on there m8 even for registered member



No problem, will take a look at these once Im back from work tonight for ya.

Hi - looks liek someones given you access to the same issue - if you need access let me know and ill sort your account out.

Geisthund99
07-13-2012, 12:45 PM
Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT U.username as username,
U.userid as userid,
MM.lat as lat,
MM.lon as lon,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM _vbdc_membermap AS MM
LEFT JOIN _vbuser AS U ON U.userid = MM.userid
LEFT JOIN _vbavatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN _vbcustomavatar AS CAV ON (CAV.userid = U.userid);

MySQL Error : Table 'jerry_forum._vbdc_membermap' doesn't exist
Error Number : 1146
Request Date : Thursday, July 12th 2012 @ 05:59:39 PM
Error Date : Thursday, July 12th 2012 @ 05:59:40 PM
Script : http://www.XXXXXX/forum/dcMembermap.php
Referrer : http://www.XXXXXX/forum/forum.php
IP Address : XX.XX.XX.XXX
Username : Jerry
Classname : vB_Database
MySQL Version : 5.5.23-55

I just downloaded zip file and got the same error.
Also same error when I downloaded updated file!!
No vbulletin.vb_dc_membermap created.
Cheers
Gareth

Ricsca
07-13-2012, 01:06 PM
Dont work in http://www.tartaportal.it/dcMembermap.php

orangefive
07-13-2012, 01:46 PM
Also in whos online, clicking in Members map if someones on it takes you to xxxxxxxxxxxx./test and 404's

soniceffect
07-13-2012, 02:59 PM
I just downloaded zip file and got the same error.
Also same error when I downloaded updated file!!
No vbulletin.vb_dc_membermap created.
Cheers
Gareth



Others are installing this fine now (although appreciate their are some small issues in the map) so not sure on this one. Are you getting any errors at the point of install?


Dont work in http://www.tartaportal.it/dcMembermap.php

Please click install for support

Also in whos online, clicking in Members map if someones on it takes you to xxxxxxxxxxxx./test and 404's

Will be updating to beta 2 tonight so will add this to my list of fixes. Various other issues have also been looked at.

orangefive
07-13-2012, 03:33 PM
Cool - good work!! will keep an eye out :)

ywwz
07-13-2012, 03:45 PM
fantastic!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !

This one I don't need to install the what so called php extension geoip sth... COOL!!

vb_nils
07-13-2012, 03:47 PM
Very very nice :-)

Thank you for this mod !

Nirjonadda
07-13-2012, 03:52 PM
Does it work on 4.1.10 ?

ywwz
07-13-2012, 03:57 PM
But there is no Avatar ah?? Little problem, but with Avatar it would be perfect!

soniceffect
07-13-2012, 04:23 PM
Does it work on 4.1.10 ?

I would suspect the only thing that will certainly not work is the navigation link, so if you are confident in adding a link yourself you would need to add one to dcMembermap.php. Other than that I cant see any reason why it wouldnt work, although its not tested on 4.1.

But there is no Avatar ah?? Little problem, but with Avatar it would be perfect!

Aware of this one. Will be fixed in beta 2 which will be released later tonight.

Nirjonadda
07-13-2012, 04:39 PM
Installer But not working get Database error in dcMembermap.php and bug on Damn Comp - Membermap Options Setting page , You can fix this for working on 4.1.10 ?

139773

Database error in vBulletin 4.1.10:

Invalid SQL:

SELECT U.username as username,
U.userid as userid,
MM.lat as lat,
MM.lon as lon,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM vbdc_membermap AS MM
LEFT JOIN vbuser AS U ON U.userid = MM.userid
LEFT JOIN vbavatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN vbcustomavatar AS CAV ON (CAV.userid = U.userid);

MySQL Error : Table '******_forums.vbdc_membermap' doesn't exist
Error Number : 1146
Request Date : Friday, July 13th 2012 @ 10:49:58 PM
Error Date : Friday, July 13th 2012 @ 10:49:58 PM
Script : http://www.*********.net/dcMembermap.php

BlueWolf_
07-13-2012, 04:43 PM
I think some are used to the one that grabs your IP... Is it possible to set it to choose a user info box color to match web design and html mockup color scheme.. For instance my theme is dark and the user names are white...

Need a fix it shifts the theme/style over to the left
http://www.cozworld.com/dcMembermap.php

Anyways thanks for making something simple to hook up! :)

I looked around and the shift issue is caused by the social bar you have above it. To be more precise, the 'Pin it' button. For some reason that one sticks out and causes the layout below it to shift. You'll be able to fix it if you manually set 'height: 20px' on the div that contains the iframe :)

Geisthund99
07-13-2012, 05:28 PM
Originally Posted by Geisthund99

I just downloaded zip file and got the same error.
Also same error when I downloaded updated file!!
No vbulletin.vb_dc_membermap created.
Cheers
Gareth


Others are installing this fine now (although appreciate their are some small issues in the map) so not sure on this one. Are you getting any errors at the point of install?

The install appears fine but for some reason no tables are being created.
Can you post the sql to create the tables?
Regards

Geisthund99
07-13-2012, 05:31 PM
Just a thought but both of us with a problem are using MySQL Version : 5

Geisthund99
07-13-2012, 05:34 PM
Just noticed there are 3 of us having a problem

soniceffect
07-13-2012, 06:39 PM
If you are gettin the sql error try adding this table


CREATE TABLE IF NOT EXISTS `dc_membermap` (
`markerid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`desc` text,
`lat` float(10,6) NOT NULL,
`lon` float(10,6) NOT NULL,
PRIMARY KEY (`markerid`),
UNIQUE KEY `idx_user` (`userid`))


If anyone tries this and they get an error, please could they let me know what the error is so I can fix. Cheers. Tested on 5.1 as thats the only version I have available at the moment

soniceffect
07-13-2012, 06:59 PM
Just released a beta 1.1 whilst we are working on beta 2 which fixes the avatar issues and possibly the installer if the problem is what I think it may be

ProFifaLeagues
07-13-2012, 07:02 PM
Just released a beta 1.1 whilst we are working on beta 2 which fixes the avatar issues and possibly the installer if the problem is what I think it may be
Hello just a Quick note the link in your Sig is missing the : out fella

Ricsca
07-13-2012, 07:06 PM
Please click install for support


Ok...

soniceffect
07-13-2012, 07:07 PM
Hello just a Quick note the link in your Sig is missing the : out fella

That was my test of the week, and you passed with flyin colours :D LOL .. Cheers for that, hadnt noticed :)

soniceffect
07-13-2012, 07:08 PM
Ok...

Seems you are getting the same installation problem. Please could you try the installer in the new package and let me know if it works? Think I may have found the issue

CoZmicShReddeR
07-13-2012, 07:13 PM
Any way you can fix it so it doesn't slide the theme over to the left? I had disabled the share plugin but it was still moving the entire usermap page over to the left?

soniceffect
07-13-2012, 07:17 PM
Any way you can fix it so it doesn't slide the theme over to the left? I had disabled the share plugin but it was still moving the entire usermap page over to the left?

Unfortunatly this is a problem with your skin and not the modification. I will certainly take a look though no problem.

EDIT: Its specifically the button which says "pin it" (your pintrest link) which is causing the problem. The div within that iframe is pushing the membermap over. If you can find that div and add height: 20px to it then it will fix the issue.

If your having issues with this, feel free to pm me some admin details and I will see if I can sort for you if you like.

Mr_Running
07-13-2012, 07:20 PM
Just released a beta 1.1 whilst we are working on beta 2 which fixes the avatar issues and possibly the installer if the problem is what I think it may be

Cool, I see avatars on version beta 1.1 :)

Note: doc_margin Document Margin changed (less space on margin) on the Member Map page only.
Earlier version it stayed the same.

Nirjonadda
07-13-2012, 07:24 PM
Installer But not working get Database error in dcMembermap.php and bug on Damn Comp - Membermap Options Setting page , You can fix this for working on 4.1.10 ?

139773

Database error in vBulletin 4.1.10:

Invalid SQL:

SELECT U.username as username,
U.userid as userid,
MM.lat as lat,
MM.lon as lon,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM vbdc_membermap AS MM
LEFT JOIN vbuser AS U ON U.userid = MM.userid
LEFT JOIN vbavatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN vbcustomavatar AS CAV ON (CAV.userid = U.userid);

MySQL Error : Table '******_forums.vbdc_membermap' doesn't exist
Error Number : 1146
Request Date : Friday, July 13th 2012 @ 10:49:58 PM
Error Date : Friday, July 13th 2012 @ 10:49:58 PM
Script : http://www.*********.net/dcMembermap.php

Have an fixed this issue ?

soniceffect
07-13-2012, 07:33 PM
Hopefully so, however yet to have someone confirm. I cant replcate the issue here. If not the script for adding the table manually I posted above.

@Mr_Running. Not sure what has changed if anything to be honest on that side of things, but will take a look

Nirjonadda
07-13-2012, 07:38 PM
But bug on Options Damn Comp - Membermap Setting page ? Check this ScreenShot Please !

139779

soniceffect
07-13-2012, 07:58 PM
But bug on Options Damn Comp - Membermap Setting page ? Check this ScreenShot Please !

139779

That is an odd one. What version of vbulletin are you running?

I would maybe suggest reinstalling if this is 4.2.0 as this is not something that should break imo

Nirjonadda
07-13-2012, 08:03 PM
vBulletin 4.1.10

ProFifaLeagues
07-13-2012, 08:18 PM
Updated to the beta and Avatars Work A1 now thank you!
Upgrade was pain-free and easy too which is always nice

Doc2911
07-13-2012, 08:23 PM
good work, but i get this message.

Warnung: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in [path]/includes/class_bootstrap.php(430) : eval()'d code (Zeile 98)

Warnung: getimagesize(http://www.c-l-f.org/image.php?u=1&dateline=) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in [path]/includes/class_bootstrap.php(430) : eval()'d code (Zeile 98)

Geisthund99
07-13-2012, 08:30 PM
I ran the sql
now getting
Invalid SQL:
SELECT userid FROM dc_membermap WHERE userid = 1;

This appears to be related to table prefix I add to the sql statement.
SELECT userid FROM dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

This works:
SELECT userid FROM vb_dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

The map appears fine.

It might be nice to have the map import users location from their profiiles. Just a thought cheers
Gareth

Gemma
07-13-2012, 08:58 PM
Installed the latest version. Works perfectly. Thank you :)

BlueWolf_
07-13-2012, 09:01 PM
I ran the sql
now getting


This appears to be related to table prefix I add to the sql statement.
SELECT userid FROM dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

This works:
SELECT userid FROM vb_dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

The map appears fine.

It might be nice to have the map import users location from their profiiles. Just a thought cheers
Gareth

Though it sounds great, there are two reason why it would be better to not do that:
#1. It'll have to use Google's geo search function to mass convert all this data. They put restrictions on how many times per day (and how fast) you can do that. You'll quickly get yourself blocked if you do 8k* queries right after each other to get all the data.
* Depending on the size of the member base of course.

#2. Like soniceffect stated above, some cities are interpreted wrongly as they exist in multiple countries. There's a fairly big chance members will be put in the US while they actually live in the UK for example. Lots of people neglect to define their location properly.

Ricsca
07-13-2012, 09:06 PM
Seems you are getting the same installation problem. Please could you try the installer in the new package and let me know if it works? Think I may have found the issue

Dont work in my site

http://www.tartaportal.it/dcMembermap.php

http://www.tuttoserpenti.it/dcMembermap.php

orangefive
07-13-2012, 09:58 PM
avatars now working nice one!!

soniceffect
07-13-2012, 10:16 PM
vBulletin 4.1.10

Sorry I cannot guarentee it will work on that version. Im assuming that the settings are slightly different on that setup. I may release a version for that at some point, however not on my priority list at the moment. To be honest I would recommend you upgrade to 4.2.0 anyways. Any reason why you havent updated?

good work, but i get this message.

Will have to look into that. This is the fix I have just put in place for the avatars which seems to be disabled on your php installation. May be worth contacting your host with this message as they may be able to enable it for you. In the meantime I will try and find a workaround.

I ran the sql
now getting


This appears to be related to table prefix I add to the sql statement.
SELECT userid FROM dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

This works:
SELECT userid FROM vb_dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']

The map appears fine.

It might be nice to have the map import users location from their profiiles. Just a thought cheers
Gareth

Try this statement instead in your case

CREATE TABLE IF NOT EXISTS `vb_dc_membermap` (
`markerid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`desc` text,
`lat` float(10,6) NOT NULL,
`lon` float(10,6) NOT NULL,
PRIMARY KEY (`markerid`),
UNIQUE KEY `idx_user` (`userid`))


Dont work in my site

http://www.tartaportal.it/dcMembermap.php

http://www.tuttoserpenti.it/dcMembermap.php

Please could you try running the following in phpmyadmin as I am assuming the table is not there. However Im now 100% about this as I cannot see the sql error. If you can provide me with the actual error I can help more.


CREATE TABLE IF NOT EXISTS `dc_membermap` (
`markerid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`desc` text,
`lat` float(10,6) NOT NULL,
`lon` float(10,6) NOT NULL,
PRIMARY KEY (`markerid`),
UNIQUE KEY `idx_user` (`userid`))

soniceffect
07-13-2012, 10:18 PM
affffffffffffffffffff

orangefive
07-13-2012, 10:31 PM
You deserve a medal pal. Best supported beta ive ever used.

Poppet
07-13-2012, 11:48 PM
We've installed this tonight and this is the database error,

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT U.username as username,
U.userid as userid,
MM.lat as lat,
MM.lon as lon,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM vBdc_membermap AS MM
LEFT JOIN vBuser AS U ON U.userid = MM.userid
LEFT JOIN vBavatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN vBcustomavatar AS CAV ON (CAV.userid = U.userid);

MySQL Error : Table 'troton_forum.vBdc_membermap' doesn't exist
Error Number : 1146

Doc2911
07-14-2012, 03:57 AM
Will have to look into that. This is the fix I have just put in place for the avatars which seems to be disabled on your php installation. May be worth contacting your host with this message as they may be able to enable it for you. In the meantime I will try and find a workaround.


your are right, this allow_url_fopen was the prob in the php installation, fixed and now it works perfect.

thx for help and the mod.

cya

nukinfuts29
07-14-2012, 05:07 AM
For many of you with DB issues it may be something very simple that you overlooked, I know i did:

Check the prefix on the dc table. I have a custom vb prefix on my database and the mod was looking in the wrong place.

ywwz
07-14-2012, 07:00 AM
Fantastic update! I can see Avatar now! Exellent!

Ricsca
07-14-2012, 07:11 AM
CREATE TABLE IF NOT EXISTS `vb_dc_membermap` (
`markerid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`desc` text,
`lat` float(10,6) NOT NULL,
`lon` float(10,6) NOT NULL,
PRIMARY KEY (`markerid`),
UNIQUE KEY `idx_user` (`userid`))


The map work but if save the position have this error:

http://www.tuttoserpenti.it/dcMembermap.php

soniceffect
07-14-2012, 08:13 AM
For many of you with DB issues it may be something very simple that you overlooked, I know i did:

Check the prefix on the dc table. I have a custom vb prefix on my database and the mod was looking in the wrong place.

YOU MY FRIEND ARE A GENIOUS! ....... I cant believe I overlooked something so simple. Fix on its way

CoZmicShReddeR
07-14-2012, 08:21 AM
Please test this on a fixed theme/style as I do not see anyone posting here using a fixed theme and I removed all the plugins you said might be causing the misalignment...

http://www.cozworld.com/dcMembermap.php

Thanks!

soniceffect
07-14-2012, 08:25 AM
No worries m8. If you do need that plugin you removed and need it sorting for you let me know. Looks good on there though m8 other than the popup colours which is actually sorted in beta2 being released shortly

Seems to look find on your theme from here btw

soniceffect
07-14-2012, 08:33 AM
Has been tested on default skin only as cannot build a modification that fits every skin on the planet due to not knowing what those skins entail. However it does work on fixed skins no problem, including yours as you can see in this screenshot.

If you find it is being hidden somewhat though or its overlapping the edge of your skin, this will be due to the size of the map which you would have to have a look at within dcMembermap.css template

Geisthund99
07-14-2012, 09:35 AM
For many of you with DB issues it may be something very simple that you overlooked, I know i did:

Check the prefix on the dc table. I have a custom vb prefix on my database and the mod was looking in the wrong place.

Code appears to be missing: TABLE_PREFIX

soniceffect
07-14-2012, 10:24 AM
Code appears to be missing: TABLE_PREFIX

Yeah I got it m8. I knew to put in there, just for some odd reason didnt. Im blaming lack of sleep LOL

soniceffect
07-14-2012, 10:36 AM
Beta 2 now released

---Infomation box has now been replaced so that css can be edited if required.
---Prefix added to install code to fix issues with install.
---Various other minor fixes.

ProFifaLeagues
07-14-2012, 10:50 AM
Superb mate a great update and nice and quick to get it all A1 thank you

soniceffect
07-14-2012, 10:52 AM
Cheers :)

Next version will include phrase updates. Will add pagetitle to the phrases and collate all the phrases into their own phrasegroup. That will be beta3 and what I am hoping will be the final beta

Robru
07-14-2012, 11:32 AM
I get a blank screen when starting the map...

soniceffect
07-14-2012, 11:35 AM
Are you using a custom skin? If so does it work on the default skin? Wondering if you have same problem I have had but only ever been able to replicate once

Vick98
07-14-2012, 11:41 AM
Works great! Thank you for the great support and this mod.

Poppet
07-14-2012, 12:08 PM
Updated to beta 2, still the same database error, what am I supposed to do to fix it?

soniceffect
07-14-2012, 12:31 PM
Updated to beta 2, still the same database error, what am I supposed to do to fix it?

please could you try uninstalling and reinstalling with this one and let me know if you still have the same issue?

Poppet
07-14-2012, 01:41 PM
That's fixed it m8, well done Marc...

Geisthund99
07-14-2012, 01:43 PM
//Check to see if user already has a marker
$dc_markercheck = $vbulletin->db->query_read_slave("
SELECT userid FROM dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']
);
Missing TABLE_PREFIX

Also the code below has disappeared from dcMembermap.php Beta 2
//Get avatar for current user
$dc_currentuser = $vbulletin->db->query_first("
SELECT U.username as username,
U.userid as userid,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM " . TABLE_PREFIX . "user AS U
LEFT JOIN " . TABLE_PREFIX . "avatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS CAV ON (CAV.userid = U.userid) WHERE U.userid = ".$vbulletin->userinfo['userid']);

if ($vbulletin->options['usefileavatar'])
{

$dc_avimagecurrent = $vbulletin->options['avatarurl'] . "/avatar{$dc_currentuser[userid]}_{$dc_currentuser['avatarrevision']}.gif";
}
else
{
$dc_avimagecurrent = $vbulletin->options['bburl'] . "/image.php?u=$dc_currentuser[userid]&dateline=$dc_currentuser[avdateline]";
}
require_once(DIR . '/includes/functions_user.php');
$dc_htmlusercurrent = fetch_musername($dc_currentuser);


if ($db->num_rows($dc_markercheck))
{$dc_hasmarker = true;}else{$dc_hasmarker = false;}

$viewablegroups = unserialize($vbulletin->options['DC_membermap_visible']);
$editgroups = unserialize($vbulletin->options['DC_membermap_canedit']);
$dc_canedit = is_member_of($vbulletin->userinfo,$viewablegroups);

Also where I had 2 pins appearing on the map there is now only 1 now visable.

Can I request you include the release version in dcMembermap.php ie beta 1 to avoid any confusion.
Regards
Gareth

soniceffect
07-14-2012, 01:44 PM
That's fixed it m8, well done Marc...

And Jos (BlueWolf_) who is the co-developer :) Fantastic. Will get a fwe release package based on that :)

soniceffect
07-14-2012, 01:53 PM
//Check to see if user already has a marker
$dc_markercheck = $vbulletin->db->query_read_slave("
SELECT userid FROM dc_membermap WHERE userid = ".$vbulletin->userinfo['userid']
);
Missing TABLE_PREFIX


This is fixed in the file above, I just need to rebuild the package on the main thread.


Also the code below has disappeared from dcMembermap.php Beta 2
//Get avatar for current user
$dc_currentuser = $vbulletin->db->query_first("
SELECT U.username as username,
U.userid as userid,
IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid,
U.avatarrevision,
AV.avatarpath,
NOT ISNULL(CAV.userid) AS hascustomavatar,
CAV.dateline AS avatardateline,
CAV.width AS avwidth,
CAV.height AS avheight,
U.lastactivity

FROM " . TABLE_PREFIX . "user AS U
LEFT JOIN " . TABLE_PREFIX . "avatar AS AV ON (AV.avatarid = U.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS CAV ON (CAV.userid = U.userid) WHERE U.userid = ".$vbulletin->userinfo['userid']);

if ($vbulletin->options['usefileavatar'])
{

$dc_avimagecurrent = $vbulletin->options['avatarurl'] . "/avatar{$dc_currentuser[userid]}_{$dc_currentuser['avatarrevision']}.gif";
}
else
{
$dc_avimagecurrent = $vbulletin->options['bburl'] . "/image.php?u=$dc_currentuser[userid]&dateline=$dc_currentuser[avdateline]";
}
require_once(DIR . '/includes/functions_user.php');
$dc_htmlusercurrent = fetch_musername($dc_currentuser);


if ($db->num_rows($dc_markercheck))
{$dc_hasmarker = true;}else{$dc_hasmarker = false;}

$viewablegroups = unserialize($vbulletin->options['DC_membermap_visible']);
$editgroups = unserialize($vbulletin->options['DC_membermap_canedit']);
$dc_canedit = is_member_of($vbulletin->userinfo,$viewablegroups);

Also where I had 2 pins appearing on the map there is now only 1 now visable.

Can I request you include the release version in dcMembermap.php ie beta 1 to avoid any confusion.
Regards
Gareth

I beg to differ. Including old broken code causes confusion. The older beta files had issues that have been fixed in beta 2. As it happens the dc_Membermap.php has not been changed. The code you have posted above, half of it is from that file and half of it is from the plugin.

The issue with 2 pins, can I ask do you have the same problem on your default skin? I have a problem I am tryin to solve with custom skins which is why I ask

Ricsca
07-14-2012, 02:13 PM
If istalla the table are dc_membermap but my vbulletin are the prefix vb_

CoZmicShReddeR
07-14-2012, 02:22 PM
Has been tested on default skin only as cannot build a modification that fits every skin on the planet due to not knowing what those skins entail. However it does work on fixed skins no problem, including yours as you can see in this screenshot.

If you find it is being hidden somewhat though or its overlapping the edge of your skin, this will be due to the size of the map which you would have to have a look at within dcMembermap.css template

I think maybe either your not showing the outsides of the theme or your desktop is set so small your not seeing what I see unless it's my admin access causing it but I do not have any issues with any other mods or plugins shifting the themes to the left side...

Could you test it maybe making the default theme you use to a fixed theme?

soniceffect
07-14-2012, 03:06 PM
Have tested with that m8, and the only issue there would ever be is if the theme is too small to fit the map, in which case the map width would need changing in the css file for your skin.

BTW, its a smaller screen that the issue would be seen on, not a larger one. As said before if you are willing to give me details to see what you are seeing I am more than willing to take a look for you.

soniceffect
07-14-2012, 03:08 PM
If istalla the table are dc_membermap but my vbulletin are the prefix vb_

Please uninstall and use the installer in this file

https://vborg.vbsupport.ru/showpost.php?p=2348014&postcount=99

CoZmicShReddeR
07-14-2012, 03:12 PM
This is what I see when I look at it... See the gap on the R/S?
https://vborg.vbsupport.ru/

soniceffect
07-14-2012, 03:25 PM
This is what I see when I look at it... See the gap on the R/S?
https://vborg.vbsupport.ru/

AHHH NOW I see ...... bare with me will see what we can see

soniceffect
07-14-2012, 03:45 PM
This is what I see when I look at it... See the gap on the R/S?
http://img444.imageshack.us/img444/4506/bothways.jpg

OK go to the template dcMembermap

find


<body style="margin:0px; border:0px; padding:0px;">


Replace with


<body>


This was added while testing and never removed. Will not be there in the next version.

CoZmicShReddeR
07-14-2012, 04:59 PM
Ah, thanks so much was driving me crazy!

Now I can move on to my other questions...

Does this plugin support something to auto detect ip's was just wondering if there could be an option to show users from where they logged in from? Not sure where this project is headed other then a user location dart board...

soniceffect
07-14-2012, 05:10 PM
Ah, thanks so much was driving me crazy!

Now I can move on to my other questions...

Does this plugin support something to auto detect ip's was just wondering if there could be an option to show users from where they logged in from? Not sure where this project is headed other then a user location dart board...


User location dartboard!! I wish you'd said that before I released the mod, I would have called it that LOL.

There are no plans for geolocating users no. Once the current version is fully stable for everyone then I will put down all plans for V1.1, however here are a few ideas we have floating around:


Pin other locations
Link to users pin within postbit
Admin selectable custom profile fields in popup

ProFifaLeagues
07-14-2012, 05:26 PM
All three of those options would be Class


Pin other locations
Link to users pin within postbit
Admin selectable custom profile fields in popup

Geisthund99
07-14-2012, 05:46 PM
Probelms solved I forgot to re-run Beta 2's product-dc_membermap.xml

Cheers

R4rifi
07-14-2012, 05:58 PM
Hi, its a great mode, I've installed on 4.1.10, and cannot fin a link, however i can access to it manually by http://www.urdushanas.com/dcMembermap.php, how to add it in the nav. bar?

CoZmicShReddeR
07-14-2012, 06:02 PM
I just remember years ago we had this for PHPNuke and it would also show if the user was online as well... I guess that also is under the Geo location thing but it didn't require a geo Apache module as far as I know...

Are there plans for choosing a theme?
I really need to change the user block would like to have the background in black instead of white...

bzcomputers
07-14-2012, 06:03 PM
All three of those options would be Class


Pin other locations
Link to users pin within postbit
Admin selectable custom profile fields in popup

Figured since the ideas were flying...

I run a travel website and I think adding the option of having Personal Maps for each member would be a great option. This would allow them to mark off all their past travel destinations. Just a thought.

Robru
07-14-2012, 06:32 PM
Are you using a custom skin? If so does it work on the default skin? Wondering if you have same problem I have had but only ever been able to replicate onceI use the default style :)

orangefive
07-14-2012, 07:10 PM
beta 2 now installed - avatar but much better as using the forum scheme.

I have an idea for a mod that would be awesome for our site but no idea how to go about it - fo you do stuff for cash? It is basically the map stuff but also allowing members to post routes which it will show from GPX gps files.

We would pay for this!!

orangefive
07-14-2012, 09:02 PM
Hello marc - in the whos online bit you still get http://xxxxxxxxxxxxxxxxxxxxxxxx/test.php? by clicking on member map.

dsantana
07-14-2012, 09:03 PM
Warning: getimagesize(http://www.XXXXXXXXXXXXXXX.com/image.php?u=383&amp;dateline=) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 103

What did I do wrong?

Mr_Running
07-14-2012, 09:09 PM
User location dartboard!! few ideas we have floating around:


Pin other locations
Link to users pin within postbit
Admin selectable custom profile fields in popup


Ha Funny... this is exactly what I was thinking. Please make it happen. :)

A link or the ability for the user to update their profile field would also be awesome. :up:

Edit: Also may be allow usergroups to input a message / about / details to be display in pop up.

dsantana
07-14-2012, 09:12 PM
Warning: getimagesize(http://www.XXXXXXXXXXXXXXX.com/image.php?u=383&amp;dateline=) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 103

What did I do wrong?
Figured this out... Had root password protected because it's a test site...

But now when I set a location it doesn't save it.

betts02
07-14-2012, 09:41 PM
This looks like a fantastic mod however i am running vb4.1.11 with a custom skin and some custom mods that would require too much work and £££ just to upgrade as i am limited to my coding skills

Has anyone tested this below vb4.2.0 and got it working ?

I see someone posted they did but without the navbar link which is easy to add so i may try it. Will report back and let you all know

Cheers

orangefive
07-14-2012, 09:48 PM
Just do it on a test instance first pal if you have one.

betts02
07-14-2012, 10:06 PM
Installed
Tagged
Nominated

Can confirm it works on vb4.1.11 BUT i had to execute a SQL Query as previously stated:

CREATE TABLE IF NOT EXISTS `dc_membermap` (
`markerid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`desc` text,
`lat` float(10,6) NOT NULL,
`lon` float(10,6) NOT NULL,
PRIMARY KEY (`markerid`),
UNIQUE KEY `idx_user` (`userid`))

Many thanks and works/looks great

betts02
07-14-2012, 10:40 PM
OK, The avatar issue for me seems to be, If a user selects an avatar from the Pre-defined Generic Avatars then they do not show

However if a user has a custom avatar uploaded then it shows

Also would it be possible to add the location of a in the pop-up along with other useful data ?

And could it be implemented that the users can not pin the location if said location does not match the IP ?

Basically so a user from say the UK can not select they live anywhere else in the world ?

Cheers again

Taurus1
07-15-2012, 02:17 AM
I am getting the following database error when going to the Member map:

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT userid FROM dc_membermap WHERE userid = 3;

MySQL Error : Table 'thebull_CreativX.dc_membermap' doesn't exist
Error Number : 1146
Request Date : Sunday, July 15th 2012 @ 05:14:23 AM
Error Date : Sunday, July 15th 2012 @ 05:14:23 AM
Script : http://creativx.net/forums/dcMembermap.php
Referrer : http://creativx.net/forums/members/thebull-3.html?tab=usertags
IP Address : **********
Username : TheBull
Classname : vB_Database
MySQL Version : 5.1.63-cll

Please help. Thanks.

EDIT: OK, I got it working by running the previous mentioned query. But for some reason, it will not let me save my location. It just keeps saying 'Your location has not been set' does not matter how many times I save it.

Krusty1231
07-15-2012, 06:14 AM
Flawless Victory.

Works great - thanks for the fix!

qpurser
07-15-2012, 08:19 AM
Thanks for all your hard work.
Even in the Beta version this looks very promising.

Quick question:
Most of my users are from the Minnesota state and really would be nice to zoom into the Minnesota area instead of the World map when loading the page/map.
Can I change some coding in your script that would zoom right into it? If that would work where do I change this.

Thanks
Michael

BlueWolf_
07-15-2012, 08:29 AM
Thanks for all your hard work.
Even in the Beta version this looks very promising.

Quick question:
Most of my users are from the Minnesota state and really would be nice to zoom into the Minnesota area instead of the World map when loading the page/map.
Can I change some coding in your script that would zoom right into it? If that would work where do I change this.

Thanks
Michael

Line 20 and 21 in clientscripts/dcMembermap.js. First is the lat/lng of the center point and the second is the zoom level (higher numbers means zooming in more). That's a good idea for the next version, making this configurable :)

basilrath
07-15-2012, 09:03 AM
I will try this

qpurser
07-15-2012, 09:42 AM
Line 20 and 21 in clientscripts/dcMembermap.js. First is the lat/lng of the center point and the second is the zoom level (higher numbers means zooming in more). That's a good idea for the next version, making this configurable :)

Thanks for your super quick reply. Worked like a charm.

PS.... Don't be as stupid as I am and rely on Google search....
Some pages give for a map of the USA the coordinates: 38,97.
If you do this you end up somewhere in Russia. :)
For locations in the US you need to put in: 38,-97 (use the minus in front of the 2nd coordinate)

soniceffect
07-15-2012, 10:24 AM
Figured since the ideas were flying...

I run a travel website and I think adding the option of having Personal Maps for each member would be a great option. This would allow them to mark off all their past travel destinations. Just a thought.

This is actually not a bad idea and would probably fit our own site which is what we originally wrote it for. Will keep the thought in mind for sure.

Ha Funny... this is exactly what I was thinking. Please make it happen. :)

A link or the ability for the user to update their profile field would also be awesome. :up:

Edit: Also may be allow usergroups to input a message / about / details to be display in pop up.

Not sure what you mean about ability for user to update their profile field tbh. Please could you provide more detail. The usergroup info idea is something which will be possible in the next version as you will be able to add custom profile fields to it. This will mean you could add a field called "Map Info" and users could add detail to that.

Figured this out... Had root password protected because it's a test site...

But now when I set a location it doesn't save it.

Do you have a link to you site? Does it work on default skin?

OK, The avatar issue for me seems to be, If a user selects an avatar from the Pre-defined Generic Avatars then they do not show

However if a user has a custom avatar uploaded then it shows

Also would it be possible to add the location of a in the pop-up along with other useful data ?

And could it be implemented that the users can not pin the location if said location does not match the IP ?

Basically so a user from say the UK can not select they live anywhere else in the world ?

Cheers again

I will test the predefined avatar issue. This may well be a bug which needs fixing.

We will not be adding any geocoding to the system for a couple of reasons. Firstly if using google it would be a lot of requests and for busy sites that would certainly cause a problem, and secondly the other way of doing it is to add a geocoding database to the server which most cannot do. I want this to be able to be run by anyone regardless of their server.

The limitation on where a user can pin would actually cause more problems than its worth tbh. For example you may have a user who is using a proxy or accessing from another location. Anpther example Im on holiday and Im on the forum wanting to add my location to the new map. I cant do so because Im not in my own country.

Mr_Running
07-15-2012, 12:39 PM
Not sure what you mean about ability for user to update their profile field tbh. Please could you provide more detail. The usergroup info idea is something which will be possible in the next version as you will be able to add custom profile fields to it. This will mean you could add a field called "Map Info" and users could add detail to that.

In regards to the profile field: Allow user to update the profile within the member map area, rather than having the user go to their setting to update field.

The key thing would be to a least have a link from Member Map to the field to be updated.

The end result some sort of connection for the user between Member Map (Dartboard :) ) and the field id for easy editing by linking the two, creating a flow between the two parts.

BlueWolf_
07-15-2012, 12:56 PM
Thanks for your super quick reply. Worked like a charm.

PS.... Don't be as stupid as I am and rely on Google search....
Some pages give for a map of the USA the coordinates: 38,97.
If you do this you end up somewhere in Russia. :)
For locations in the US you need to put in: 38,-97 (use the minus in front of the 2nd coordinate)

No problem. Here's a tip for the future: Go to http://maps.google.com, right click on the location you want to center to and click 'What's here?'. The exact location will appear in the searchbox.

orangefive
07-15-2012, 02:06 PM
No problem. Here's a tip for the future: Go to http://maps.google.com, right click on the location you want to center to and click 'What's here?'. The exact location will appear in the searchbox.

Ace tip - done :up:

basilrath
07-15-2012, 02:51 PM
well installed and working fine up to now ......... nice work

migratoria
07-15-2012, 04:08 PM
I do not see the markers on the map of who's online.
I have to set anything?

orangefive
07-15-2012, 05:21 PM
You need to copy the dcMembermap folder into your images > Styles > your custom template > misc if your using a custom template.

soniceffect
07-15-2012, 07:19 PM
Beta 3 on its way very shortly with fixes for avatars selected from avatar list, installer (again now I know its fine lol), and who's online

orangefive
07-15-2012, 07:42 PM
How hard would it be to display a mini avatar instead of pin? :)

soniceffect
07-15-2012, 08:00 PM
How hard would it be to display a mini avatar instead of pin? :)

Would need some work in code to do so. Standard size would have to be set and the new image picked up instead. Would also mean you would lose the functionality to be able to see the users who are online.

soniceffect
07-15-2012, 08:01 PM
Beta 3 Released
--Installer prexif code amended.
--Who's online now fixed to show members online within map area.
--Avatars set from admin set avatars now working.
--Various other minor fixes.

orangefive
07-15-2012, 08:07 PM
Working fine on my 4.2.2 - nice one :)

migratoria
07-15-2012, 08:14 PM
Tanks!!! All Ok

soniceffect
07-15-2012, 08:15 PM
Working fine on my 4.2.2 - nice one :)

Wow your ahead .. You sure thats not 4.2.0 pl2? LOL

orangefive
07-15-2012, 08:23 PM
thats what i meant ;)

dsantana
07-16-2012, 02:16 AM
Do you have a link to you site? Does it work on default skin?





Test site is www.vintagehotboats.com
Using modified default skin... Just a few color changes...
Thanks...

dsantana
07-16-2012, 02:36 AM
Line 20 and 21 in clientscripts/dcMembermap.js. First is the lat/lng of the center point and the second is the zoom level (higher numbers means zooming in more). That's a good idea for the next version, making this configurable :)

I changed that second # (1) to 50 and nothing happened...

orangefive
07-16-2012, 06:33 AM
try changing it to a lower number like 7 - thats pretty zoomed in so 50 is probably not a valid number.

soniceffect
07-16-2012, 07:04 AM
Test site is www.vintagehotboats.com
Using modified default skin... Just a few color changes...
Thanks...

Please can you pm me with login details. Cheers

autoescala
07-16-2012, 08:18 AM
sounds very well this project!

BlueWolf_
07-16-2012, 08:24 AM
I changed that second # (1) to 50 and nothing happened...

Like orangefive said, that number is too high. 19 is what the maximum zoom for my home town is for example, and that's when you're on street level.

autoescala
07-16-2012, 10:57 AM
working in 4.2.2 very nice mod!!! :)

Nelson58
07-16-2012, 11:30 AM
Worked fine in VB 4.2.0 LP 2

Suggested enhancement:

Take location from user profile and place it on map to avoid need to enter.

Thanks for a great mod.

Nelson

dsantana
07-16-2012, 12:38 PM
Please can you pm me with login details. Cheers

Done

soniceffect
07-16-2012, 04:32 PM
Done

--
[18:29:57.354] POST http://www.vintagehotboats.com/dcMembermap_update.php [HTTP/1.1 404 Not Found 608ms]

You appear to be missing the dcMembermap_update file on your server which is required for it to save. Also you seem to have edited the coordinates to the extent you are massively zoomed in m8

dsantana
07-16-2012, 05:40 PM
--
[18:29:57.354] POST http://www.vintagehotboats.com/dcMembermap_update.php [HTTP/1.1 404 Not Found 608ms]

You appear to be missing the dcMembermap_update file on your server which is required for it to save. Also you seem to have edited the coordinates to the extent you are massively zoomed in m8

That fixed it... Thanks!!!

soniceffect
07-16-2012, 06:42 PM
That fixed it... Thanks!!!

Your welcome :) Glad your all workin

soniceffect
07-16-2012, 09:28 PM
17 July 2012 - 1.0.0 final Released - Final phrases added so the product is now fully phrased.

dsantana
07-16-2012, 10:09 PM
Nominated for MOTM!...
Now that you have the final release I'd like to offer a couple suggestions...

* A counter on the page where it shows how many members have placed there pin?
* Scrollable list of who has added a pin on the side?
* In my Profile Field I have a space for members to enter their location. Could an option be added to insert Profile Field info in the pop up box?

I use a transparent background on parts of my site and when the Avatar box comes up it is using that same transparency... Where can we change that?

andyv72
07-16-2012, 10:55 PM
Works fine..

Thx ;)

Mr_Running
07-17-2012, 12:15 AM
I have played around with it some more and one Button I was looking to change was the

Update Your Location and next to it the phrase You haven't set your location yet!
I did a search for this phrase and changed it but it did not change it here.

I would also like to change the Page Title Member Map

Cheers, :)

FYI

Update Your Location
You haven't set your location yet!
= No Match

Member Map
...does not change

hubba
07-17-2012, 02:00 AM
I am getting this errors...

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106

Warning: getimagesize(http://www.explorate.de/Forum/image.php?u=1&amp;dateline=) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106

DannyV
07-17-2012, 09:24 AM
When I update, the pins already placed on the map stay in place ?

qpurser
07-17-2012, 09:48 AM
When I update, the pins already placed on the map stay in place ?

They did for me

BadgerDog
07-17-2012, 09:54 AM
Anyone have this running on vBulletin 4.1.x versions?

Thanks...

Regards,
Doug

Nelson58
07-17-2012, 10:47 AM
My members love this mod, so thank you for writing it!

What is the difference in the balloon color please? They asked me and I don't know.

Thanks!

Nelson

soniceffect
07-17-2012, 11:03 AM
FYI

Update Your Location
You haven't set your location yet!
= No Match

Member Map
...does not change

Very odd, please can you give me the variable name of the phrase which was changed. Also may I ask which language this is being converted to out of interest?

I am getting this errors...

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106

Warning: getimagesize(http://www.explorate.de/Forum/image.php?u=1&amp;dateline=) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106

This is something which needs to be addressed on your server. The functionality is disabled for file access. I am looking for a different way to go around this however this does only seem to be a problem in the minority of cases. If you send this message to your host they should be able to sort the problem for you.

When I update, the pins already placed on the map stay in place ?

Yes all your pins will be kept if you update.

Anyone have this running on vBulletin 4.1.x versions?

Thanks...

Regards,
Doug

There is 1 person in this topic who has added this to 4.1.x however it is not supported. As far as i can see the only problem you are likely to have is the main link, so if you are happy adding a link to dcMembermap.php within your navbar for yourself then you should be able to get it to work.

My members love this mod, so thank you for writing it!

What is the difference in the balloon color please? They asked me and I don't know.

Thanks!


Nelson

Orange is yourself, Blue and Green are everyone else. Green if the user is currently online :)

BadgerDog
07-17-2012, 11:16 AM
There is 1 person in this topic who has added this to 4.1.x however it is not supported. As far as i can see the only problem you are likely to have is the main link, so if you are happy adding a link to dcMembermap.php within your navbar for yourself then you should be able to get it to work.


Thanks ... :)

I have no problem adding my own link, but I was just worried that the install might blow up my database because I'm running v4.1.3pl5....

So, I thought I'd check here to see if anyone has traveled a path more worn ahead of me ... :D

Regards,
Doug

BadgerDog
07-17-2012, 11:31 AM
Follow-up ...

Ok, installed under 4.1.3pl5 and nothing blew up, but when I run:

http://www.mysite.com/dcMembermap.php

All I get is attached pic. I click on "Update Your Location" and nothing happens. I enter a name in search box and click "enter"... nothing happens ...

Thanks anyway... appreciate your efforts .. :)

Regards,
Doug

Edit: Out of curiosity, I decided to edit the the usergroups in AdminCP and save the results. When I did that, I got the following set of errors.

Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 855
Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 855
Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 855
Warning: trim() expects parameter 1 to be string, array given in [path]/includes/adminfunctions_options.php on line 855

If I then edited the mod's settings a second time (and subsequent) times, the errors never appeared again. Thought I'd pass this on for the benefit of anyone else experimenting with pre-4.2 versions and this mod.

Vick98
07-17-2012, 11:41 AM
Orange is yourself, Blue and Green are everyone else. Green if the user is currently online :)


It would be nice to have an icon legend added to the map, if possible.

orangefive
07-17-2012, 05:11 PM
Cheers guys - installed and working - 1.0.0

hubba
07-17-2012, 09:14 PM
@soniceffect:
-------------------
"Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106..."
Warning: getimagesize(http://www.explorate.de/Forum/image....&amp;dateline=) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106"
---------------
The Hoster told me to put a php.ini in the Forumroot, but not what to write in... any idea?

soniceffect
07-17-2012, 10:06 PM
@soniceffect:
-------------------
"Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106..."
Warning: getimagesize(http://www.explorate.de/Forum/image....&amp;dateline=) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 106"
---------------
The Hoster told me to put a php.ini in the Forumroot, but not what to write in... any idea?

you will need the following


allow_url_fopen = On

Mr_Running
07-17-2012, 10:10 PM
Very odd, please can you give me the variable name of the phrase which was changed. Also may I ask which language this is being converted to out of interest?


Okay, This is the one that is not changing.

Varname $vbphrase[dcmembermap_pagetitle]
Text: Member Map

dcmembermap_pagetitle Standard Phrase Member Map

and

The language is English converted to English.

The other two phrases... no match found
Update Your Location
You haven't set your location yet!


Edit: mmmm....I think the Member Map is actually not the pagetitile but the Navbits Title (Title for the breadcrumbs) is what I would like to change.

Mr_Running
07-17-2012, 10:27 PM
Changed .... not changed ....You get the point. :)

soniceffect
07-17-2012, 10:28 PM
Ah i see. Will get and update sorted for you.

Thought you may have been creating another language complwtely ws gonna ask if you wanted me to add to main thread so others could benefit however i see its just wording your after changing. Will have it sorted for you tomorrow. If you fancy catching me on messenger pm me and i can send you the file to test if you like and we can make sure its perfect.

hubba
07-17-2012, 11:06 PM
Allright that was right :) php.ini uploaded and works fine. One thing, I already set my location, but it still says "update your location" is that OK?

hubba
07-18-2012, 12:43 AM
BTW: Hoster said allow_url_fopen is a security risk...

soniceffect
07-18-2012, 06:24 AM
BTW: Hoster said allow_url_fopen is a security risk...

Practically anything you have set on a server could in some way be considered a security risk, it depends on just how much people have it locked down. Look at it this way, out of all the people who have installed this product, only 2 people do not already have that specific settign enabled in their php configuration. Also this setting is included in every php distribution and is actually enabled by default.

This said I am actually trying to sort a way around this, but not because of security. The reason I want to change the way it works is because I would like people to be able to use it without having to change settings wherever possible.

harm63
07-18-2012, 07:12 AM
i did install ( on test site) but i don't get a marker, map is there save etc update but no markerr????

orangefive
07-18-2012, 07:40 AM
i did install ( on test site) but i don't get a marker, map is there save etc update but no markerr????

ou need to copy the dcMembermap folder into your images > Styles > your custom template > misc if your using a custom template

harm63
07-18-2012, 07:58 AM
i did upload in several maps now but no marker :-(

soniceffect
07-18-2012, 08:06 AM
i did upload in several maps now but no marker :-(

As stated above the images are located on the install based on the default forum skin. if you have another skin you need to ensure that the images folder goes in the relevant misc folder for your skin. This is why you do not see a marker.

qpurser
07-18-2012, 08:09 AM
i did upload in several maps now but no marker :-(

If you have a custom template:
Copy the folder with the images (dcMembermap image folder) into
images -> mytemplate -> misc -> dcMembermap

harm63
07-18-2012, 08:17 AM
i did in
images/styles/child

in styles are the templates ther i uploaded dcMembermap but :-(

qpurser
07-18-2012, 08:52 AM
i did in
images/styles/child

in styles are the templates ther i uploaded dcMembermap but :-(

The dcMembermap image folder has to go into the "misc" folder of your custom template

svyrydov
07-18-2012, 12:15 PM
is it possible to add more then one location pin?
I need to add a few location for one company(user).

bt012ss
07-18-2012, 01:22 PM
Thank you and the coauthor from germany for this great mod :)
For me the best map i?ve ever seen in vB

mapoverview = [
new google.maps.LatLng(51.399206,10.231933),
6

This change in the file will work perfect :up:

Nominated !

soniceffect
07-18-2012, 02:29 PM
Thank you and the coauthor from germany for this great mod :)
For me the best map i?ve ever seen in vB

mapoverview = [
new google.maps.LatLng(51.399206,10.231933),
6

This change in the file will work perfect :up:

Nominated !

Jos (BlueWolf_) is from the Netherlands but close :D

bt012ss
07-18-2012, 03:01 PM
Jos (BlueWolf_) is from the Netherlands but close :D
Now i know it, but i mean the "thanks" will come from germany :D

basilrath
07-18-2012, 03:26 PM
Its a good mod and im using also

Members do like these things generally speaking

Nice work

soniceffect
07-18-2012, 03:28 PM
Now i know it, but i mean the "thanks" will come from germany :D

LMAO ........ Was actually just reading this thinking "Marc you dumb ass" LOL

bt012ss
07-18-2012, 06:01 PM
You are crazy ;)

One question please.

In germany we have the letters like ?, ?, ?,
When the user use one of these letters in the nickname than i get a popup like this.

https://vborg.vbsupport.ru/

Every text which use such a letter will be changed in "null"
Can i fix this anywhere?

Thank you ;)

soniceffect
07-18-2012, 06:14 PM
You are crazy ;)

One question please.

In germany we have the letters like ?, ?, ?,
When the user use one of these letters in the nickname than i get a popup like this.

https://vborg.vbsupport.ru/

Every text which use such a letter will be changed in "null"
Can i fix this anywhere?

Thank you ;)


hmm not sure on this one. Leave it with us and will have a look for you.

soniceffect
07-18-2012, 07:02 PM
You are crazy ;)

One question please.

In germany we have the letters like ?, ?, ?,
When the user use one of these letters in the nickname than i get a popup like this.

http://www.ensmann.de/img/map1.jpg

Every text which use such a letter will be changed in "null"
Can i fix this anywhere?

Thank you ;)

OK .. will be fixed in the next version (EDIT: Have uploaded new version if you dont fancy the below), however in the meantime these are the changes you need to make. Open up the plugin "MemberMap Main"

FIND:

"name" => $thisrecord['username']),
"htmlname" => fetch_musername($thisrecord),


REPLACE WITH

"name" => utf8_encode($thisrecord['username']),
"htmlname" => utf8_encode(fetch_musername($thisrecord)),



FIND

$dc_htmlusercurrent = fetch_musername($dc_getuser);
$dc_usercurrentID = $vbulletin->userinfo['userid'];
$dc_usercurrent = $vbulletin->userinfo['username'];


REPLACE WITH

$dc_htmlusercurrent = utf8_encode(fetch_musername($dc_getuser));
$dc_usercurrentID = $vbulletin->userinfo['userid'];
$dc_usercurrent = utf8_encode($vbulletin->userinfo['username']);

soniceffect
07-18-2012, 07:43 PM
18 July 2012 - 1.0.1 Released - Phrase added for breadcrumb text, support for umlauts and other utf8 characters.

orangefive
07-18-2012, 07:46 PM
Marc - whats the breadcrumb bit? Being from not far from you i dont need the other funky stuff so seeing if its worth updating again.

With the updates, might be worth some way of entering a custom line 20-21 of lat long etc that does not get overwritten with futures.

Already voted MOTM, anyone else using should so also - awesome mod!

soniceffect
07-18-2012, 08:01 PM
Marc - whats the breadcrumb bit? Being from not far from you i dont need the other funky stuff so seeing if its worth updating again.

With the updates, might be worth some way of entering a custom line 20-21 of lat long etc that does not get overwritten with futures.

Already voted MOTM, anyone else using should so also - awesome mod!

Probably not worth updatin for you m8. Unless you have any usernames with foreign chars or want to update phrases. The addition of the the breadcrumb phrase is for people who want to completely change the phrase membermap from the whole product.

dsantana
07-19-2012, 12:31 AM
I installed the update today and now when you roll over a pointer I don't get a username and the search function isn't working either.

www.vintagejetboats.com
Same username and password that I set on my test site...

bt012ss
07-19-2012, 03:34 AM
Good Morning Marc,

thanks for the quick help. the german characters in the popup will now be there :)

see the jpg, the letters in the "search by town" will not be shown when i change the phrase "dcmembermap_clearresults"
from "clear results" in "suche l?schen".

and, the same problem like "dsantana" - after update the search function by username will not work.

thecore762
07-19-2012, 04:09 AM
Installed & Nominated!
Thank you for making an awesome plugin!

Edit: Avatars are not showing: http://www.47r-squad.com/dcMembermap.php

Also add the bottom it's saying the following:
dcMembermap_js (1)
postbit_onlinestatus (4)

soniceffect
07-19-2012, 06:58 AM
I installed the update today and now when you roll over a pointer I don't get a username and the search function isn't working either.

www.vintagejetboats.com
Same username and password that I set on my test site...

Please install the Fixed xml file I have attached to the thread. This will fix the issue (damned typos LOL)


Good Morning Marc,

thanks for the quick help. the german characters in the popup will now be there :)

see the jpg, the letters in the "search by town" will not be shown when i change the phrase "dcmembermap_clearresults"
from "clear results" in "suche l?schen".

and, the same problem like "dsantana" - after update the search function by username will not work.

As above please install the fix xml file from the main thread. I will update the package tonight with this and will also include encoding for the phrases for you.

Installed & Nominated!
Thank you for making an awesome plugin!

Edit: Avatars are not showing: http://www.47r-squad.com/dcMembermap.php

Also add the bottom it's saying the following:
dcMembermap_js (1)
postbit_onlinestatus (4)

Please try the fixed xml file on main topic, however Im not sure this is the problem for you unfortunatly. I will take a look at this tonight for you. Please send me a pm with login details for your site in the meantime.

bt012ss
07-19-2012, 08:47 AM
As above please install the fix xml file from the main thread. I will update the package tonight with this and will also include encoding for the phrases for you.


Thanks :D

Gemma
07-19-2012, 10:20 AM
Thanks for the latest updates. Your support for this is first-class :)

Nominated for MotM

soniceffect
07-19-2012, 10:23 AM
Thanks for the latest updates. Your support for this is first-class :)

Nominated for MotM

Thankyou :)

The constant support is what ya get when a developer gets bored LOL

dsantana
07-19-2012, 11:56 AM
Thanks for the latest updates. Your support for this is first-class :)

Nominated for MotM

Ditto!!!

dsantana
07-19-2012, 12:04 PM
I love this mod Sonic!!!

Request when you're bored...
* A way to add a description to the Pointer... ie; "My House", My favorite lake", etc...

soniceffect
07-19-2012, 06:29 PM
I love this mod Sonic!!!

Request when you're bored...
* A way to add a description to the Pointer... ie; "My House", My favorite lake", etc...

These are things coming on the next feature release :)

basilrath
07-19-2012, 06:32 PM
just a thing id change ...... the copyright css jelsoft maybe align left it looks neater

lovely mod

orangefive
07-19-2012, 06:32 PM
OOooh any way we can have custom ones from an admin, ie, our ussual meet points for a ride :)

soniceffect
07-19-2012, 08:19 PM
just a thing id change ...... the copyright css jelsoft maybe align left it looks neater

lovely mod

Jelsoft? LOL ..... We havent put that wording in there

OOooh any way we can have custom ones from an admin, ie, our ussual meet points for a ride :)

Thats something we have in mind. Actually for the same reason your after it funny enough. For meets

orangefive
07-19-2012, 08:55 PM
Ace - could we have different pins for that - I can change colour/image then :)

soniceffect
07-19-2012, 10:02 PM
Ace - could we have different pins for that - I can change colour/image then :)

Of course,,,, and more :P

thecore762
07-20-2012, 01:02 AM
Please install the Fixed xml file I have attached to the thread. This will fix the issue (damned typos LOL)




As above please install the fix xml file from the main thread. I will update the package tonight with this and will also include encoding for the phrases for you.



Please try the fixed xml file on main topic, however Im not sure this is the problem for you unfortunatly. I will take a look at this tonight for you. Please send me a pm with login details for your site in the meantime.

Hi Sonic, if you can register on my site I'll provide you admins.
Thanks,

Bilderback
07-20-2012, 01:37 AM
Great mod but I think I'll wait awhile.
I did test briefly and noticed TABLE_PREFIX missing in the $dc_markercheck query of dcMembermap.php
Adjusting query fixed SQL error.
Awesome work.

EDIT: latest version 1.0.1
Double Edit:
One great feature would be the ability to set a default location and zoom level for the map in the settings.
In my case, I wanted the map to default to a U.S. location so I added my own longitude, latitude, and zoom level to the javascript.
For anyone wishing the same, you can edit the function initMap() in /clientscript/dcMembermap.js to add your own default overview.
google.maps.LatLng(LATITUDE, LONGITUDE), ZOOM_LEVEL
Example:

function initMap() {
// Parse through the given points and show the map
mapoverview = [
new google.maps.LatLng(37.0625, -95.677068),
4
];

dsantana
07-20-2012, 03:48 AM
I did a little edit to add a Legend... Created icon that are 20px x 20 px

Edited the dcMembermap template Copyright line...

<div class="copyright">
Image Legend: My location =<img src="/images/misc/dcMembermap/mypointlegend.png" alt="My Point"/>
, Online Member =<img src="/images/misc/dcMembermap/pointonlinelegend.png" alt="Online Member"/>
, Member Location =<img src="/images/misc/dcMembermap/pointlegend.png" alt="Member Location "/>
Copyright &copy; <a href="https://vborg.vbsupport.ru/member.php?u=76889" target="_blank">Marc Stridgen</a> / <a href="https://vborg.vbsupport.ru/member.php?u=477751" target="_blank">Jos Ratsma</a> 2012
</div>

I hope you don't mind...

Used some new pointers too...

soniceffect
07-20-2012, 06:45 AM
Hi Sonic, if you can register on my site I'll provide you admins.
Thanks,

No prob, will do so tonight when I get home from work.

Great mod but I think I'll wait awhile.
I did test briefly and noticed TABLE_PREFIX missing in the $dc_markercheck query of dcMembermap.php
Adjusting query fixed SQL error.
Awesome work.

EDIT: latest version 1.0.1
Double Edit:
One great feature would be the ability to set a default location and zoom level for the map in the settings.
In my case, I wanted the map to default to a U.S. location so I added my own longitude, latitude, and zoom level to the javascript.
For anyone wishing the same, you can edit the function initMap() in /clientscript/dcMembermap.js to add your own default overview.
google.maps.LatLng(LATITUDE, LONGITUDE), ZOOM_LEVEL
Example:

function initMap() {
// Parse through the given points and show the map
mapoverview = [
new google.maps.LatLng(37.0625, -95.677068),
4
];


Cant believe that hasnt been picked up before to be honest. Cheers for that, will rebuild the lot tonight to ensure thats fixed. The default location/zoom level is something planned to be added as an option. Just ensuring there are no issues remaining before we add anything further

I did a little edit to add a Legend... Created icon that are 20px x 20 px

Edited the dcMembermap template Copyright line...

<div class="copyright">
Image Legend: My location =<img src="/images/misc/dcMembermap/mypointlegend.png" alt="My Point"/>
, Online Member =<img src="/images/misc/dcMembermap/pointonlinelegend.png" alt="Online Member"/>
, Member Location =<img src="/images/misc/dcMembermap/pointlegend.png" alt="Member Location "/>
Copyright &copy; <a href="https://vborg.vbsupport.ru/member.php?u=76889" target="_blank">Marc Stridgen</a> / <a href="https://vborg.vbsupport.ru/member.php?u=477751" target="_blank">Jos Ratsma</a> 2012
</div>

I hope you don't mind...

Used some new pointers too...

Good stuff :)

Live_Bait
07-20-2012, 09:45 AM
Fantastic ! I love it... can you tell me if there is a way I can make my map to only be of the United States?

Live_Bait
07-20-2012, 10:25 AM
Uh OH... Just realized my test site is vBulletin? Version 4.2.0 and my real site is vBulletin? Version 4.1.11 --- So it works on the test site. Guess I better upgrade my real site. or do you have an answer for the 4.1.11 ?
Example on test site it shows this
http://www.rats-4-adoption.com/test_site.JPG
Example real site shows this
http://www.rats-4-adoption.com/real_site.JPG

my edit 20 minutes after posting this: Okay now I spent a bunch of time reading all the threads on this.. I just need to upgrade.
I haven't upgraded because I am worried all the cool stuff I added will break when I do.. Well I will have to deal with that I suppose. Thanks again .. When I upgrade I know its going to be supper fabulous on my main site.

soniceffect
07-20-2012, 06:08 PM
Hi Sonic, if you can register on my site I'll provide you admins.
Thanks,

I have registered now m8

EDIT: No need to change the account level, have found the problem. :)

soniceffect
07-20-2012, 07:42 PM
20 July 2012 - 1.0.2 Released
--All phrases now utf encoded for foreign language support
--avatar creation changed to reduce query and remove problems
--missing table prefix added
--new settings added for default longitude/latitude/zoom level.

thecore762
07-20-2012, 10:20 PM
Awesome update that fixed that!
Now, here is a feedback, can the avatars size be automatically be resized? I think some avatars (big ones) are making the box huge.
Something like my tooltip mod: http://www.47r-squad.com/general-discussion/ (tooltip over any threads) You will see avatar is resized to maintain overall look.

DaninMS
07-20-2012, 11:18 PM
20 July 2012 - 1.0.2 Released
--All phrases now utf encoded for foreign language support
--avatar creation changed to reduce query and remove problems
--missing table prefix added
--new settings added for default longitude/latitude/zoom level.

Probably a dumb question but I'll ask anyway. Downloaded 1.0.2 but it still says 1.0.1 in the plugin manager. Should that reflect the new update ? I did choose to overwrite when I upgraded.

qpurser
07-20-2012, 11:26 PM
Thanks for the update.
Really like we can add the long/latitude in the settings without having to edit the php files.


hint hint....
Showing distance to the next 10 users close to you....:)

hubba
07-21-2012, 12:24 AM
Wouldnt it be better to create a mouseoverlike effect, so one has not to click the pin and to close it also...?

Ricsca
07-21-2012, 06:36 AM
Fatal error: Call to undefined function fetch_avatar_url() in /home/ricsca/public_html/tuttoserpenti.it/includes/class_bootstrap.php(430) : eval()'d code on line 54

bt012ss
07-21-2012, 07:03 AM
Perfect Job, it will run well :D

Thanks.

bt012ss
07-21-2012, 07:05 AM
Wouldnt it be better to create a mouseoverlike effect, so one has not to click the pin and to close it also...?

I have a mouseovereffect with the nick and without the avatar, for me it?s enough.

BlueWolf_
07-21-2012, 07:43 AM
Wouldnt it be better to create a mouseoverlike effect, so one has not to click the pin and to close it also...?

That'll be very annoying as every time you pan over the map with your mouse, it will open random popups. More annoying is if the marker you actually want is right behind another you just accidentally opened by moving your mouse over it.

soniceffect
07-21-2012, 10:12 AM
Probably a dumb question but I'll ask anyway. Downloaded 1.0.2 but it still says 1.0.1 in the plugin manager. Should that reflect the new update ? I did choose to overwrite when I upgraded.

Oh aye, so it does LOL. Have reuploaded with correct number now. Can assure you it is 1.0.2 lol

Thanks for the update.
Really like we can add the long/latitude in the settings without having to edit the php files.


hint hint....
Showing distance to the next 10 users close to you....:)

Thats a possibility for a future version, however would not nessecarily be accurate without a large amount of queries to the google api. The reason I say this is if you do this on a straight line basis I can calculate purely based on the coordinates, however if you want real distance (ie driving) would have to get the distance by road by routing.

Fatal error: Call to undefined function fetch_avatar_url() in /home/ricsca/public_html/tuttoserpenti.it/includes/class_bootstrap.php(430) : eval()'d code on line 54

Whilst doing what?

Beckenbauer
07-21-2012, 04:15 PM
The same error:
Fatal error: Call to undefined function fetch_avatar_url() in /www/htdocs/w00973d6/MYDOMAIN/includes/class_bootstrap.php(430) : eval()'d code on line 64

soniceffect
07-21-2012, 06:04 PM
The same error:
Fatal error: Call to undefined function fetch_avatar_url() in /www/htdocs/w00973d6/MYDOMAIN/includes/class_bootstrap.php(430) : eval()'d code on line 64

And same question .. when doing what? Also which version of vbulletin? Link to site?

Beckenbauer
07-21-2012, 06:20 PM
And same question .. when doing what? Also which version of vbulletin? Link to site?

After opening the Member Map. Can't se the map, only white screen with this message.

soniceffect
07-21-2012, 06:23 PM
After opening the Member Map. Can't se the map, only white screen with this message.

Please could I have a link to your site, and could you let me know what version of vbulletin you are using?

orangefive
07-21-2012, 06:42 PM
Updated - nice one :)

Beckenbauer
07-21-2012, 06:59 PM
4.2.0 Patch Level 2
I'll send you a pm

thecore762
07-21-2012, 08:05 PM
Absolutely one of the best mods!

K4GAP
07-21-2012, 08:57 PM
After opening the Member Map. Can't se the map, only white screen with this message.

Same here, nothing shows.
Uninstalled

thecore762
07-21-2012, 10:59 PM
Clear your forum cache if you are getting a blank screen.
If you run vBOptimise, clear cache.

soniceffect
07-21-2012, 11:16 PM
Same here, nothing shows.
Uninstalled

Nothing shows, or you get that error?

soniceffect
07-21-2012, 11:40 PM
After opening the Member Map. Can't se the map, only white screen with this message.

Within the Membermap Main plugin

find

$avimagecurrentget = fetch_avatar_url($vbulletin->userinfo['userid']);


Add above it


require_once('./includes/functions_user.php');


Let me know if that works. Please note I had to CTRL+F5 on my browser to pick up the changes for some reason.

Beckenbauer
07-22-2012, 12:00 AM
Nothing shows, or you get that error?

Now It works, but I can't see the map.

soniceffect
07-22-2012, 12:03 AM
Now It works, but I can't see the map.

As I said, I need to ctrl + F5 on my browser in order to get it to show after Id had that error for some reason. You may need to do the same.

If you have the window where the map would be, check the longitude and latitude settings in the options.

EDIT: Thats not the issue in your case. Could you check your server error log and let me know what errors you are getting? You should def not be having that problem

Beckenbauer
07-22-2012, 12:14 AM
Yes, I pressed crtl + F5, also I cleaned the cache.

I don't habe a webserver. Only a managed virtual server.

thecore762
07-22-2012, 12:29 AM
Same here, nothing shows.
Uninstalled

Did you read my reply?
Clear your forum cache or clear vBOptimise cache.
I was getting the same error, but after clearing the forum cache everything is working fine.

thecore762
07-22-2012, 12:29 AM
Yes, I pressed crtl + F5, also I cleaned the cache.

I don't habe a webserver. Only a managed virtual server.

A website link would be useful.
Do you use Xcache/Varnish Cache or vBOptimise?

Beckenbauer
07-22-2012, 12:40 AM
Now, it works.

On, my testserver it doesn't works.

Thx, all!