vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - DamnComp - MemberMap (https://vborg.vbsupport.ru/showthread.php?t=285479)

dsantana 07-14-2012 09:03 PM

Warning: getimagesize(http://www.XXXXXXXXXXXXXXX.com/image...&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

Quote:

Originally Posted by soniceffect (Post 2348092)
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

Quote:

Originally Posted by dsantana (Post 2348145)
Warning: getimagesize(http://www.XXXXXXXXXXXXXXX.com/image...&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:

Code:

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/t...l?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

Quote:

Originally Posted by qpurser (Post 2348241)
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

Quote:

Originally Posted by BlueWolf_ (Post 2348243)
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

Quote:

Originally Posted by bzcomputers (Post 2348108)
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.

Quote:

Originally Posted by Mr_Running (Post 2348147)
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.

Quote:

Originally Posted by dsantana (Post 2348149)
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?

Quote:

Originally Posted by betts02 (Post 2348161)
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

Quote:

Originally Posted by soniceffect (Post 2348266)
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

Quote:

Originally Posted by qpurser (Post 2348252)
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

Quote:

Originally Posted by BlueWolf_ (Post 2348304)
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

Quote:

Originally Posted by orangefive (Post 2348429)
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

Quote:

Originally Posted by orangefive (Post 2348443)
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

Quote:

Originally Posted by soniceffect (Post 2348266)



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

Quote:

Originally Posted by BlueWolf_ (Post 2348243)
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

Quote:

Originally Posted by dsantana (Post 2348530)
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

Quote:

Originally Posted by dsantana (Post 2348533)
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

Quote:

Originally Posted by soniceffect (Post 2348585)
Please can you pm me with login details. Cheers

Done

soniceffect 07-16-2012 04:32 PM

Quote:

Originally Posted by dsantana (Post 2348658)
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

Quote:

Originally Posted by soniceffect (Post 2348719)
--
[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

Quote:

Originally Posted by dsantana (Post 2348738)
That fixed it... Thanks!!!

Your welcome :) Glad your all workin


All times are GMT. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01793 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete