vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=99920)

stonyarc 11-03-2005 02:53 PM

Quote:

Originally Posted by Carl Anderson
Is there any way around this I have a lot of users that have Firefox 1.5?

Hello Carl,

Buttons don't show correctly in Firefox 1.5 => STATUS TESTED, This is not a bug this is a feature. The buttons are automatically hidden if a user is not logged in because only logged in users are allowed to set their location.

If you log out in IE or whatever browser and click on the googlemap the buttons are hidden. This is done by the script. Showing your entry to non-registered users has no function because I automatically get the userid when logged in.

So not a bug but a FEATURE.

Tested on Firefox 1.0.6, 1.0.7, 1.5 RC1, Opera and Internet Explorer so I think it's cross browser.

The Geek 11-03-2005 03:08 PM

Well done and great addition.

What I would love to get around is the caching problem however Ill gamble thats a google thing and not you.

1 suggestion: Make a setting so we can call it something different than vbgooglemap.php

Keep up the good work

Carl Anderson 11-03-2005 03:09 PM

Quote:

Originally Posted by stonyarc
Hello Carl,

Buttons don't show correctly in Firefox 1.5 => STATUS TESTED, This is not a bug this is a feature. The buttons are automatically hidden if a user is not logged in because only logged in users are allowed to set their location.

If you log out in IE or whatever browser and click on the googlemap the buttons are hidden. This is done by the script. Showing your entry to non-registered users has no function because I automatically get the userid when logged in.

So not a bug but a FEATURE.

Tested on Firefox 1.0.6, 1.0.7, 1.5 RC1, Opera and Internet Explorer so I think it's cross browser.

I am logged in and I get no buttons when using Firefox - could this be a cookie issue?

Carl Anderson 11-03-2005 03:14 PM

Quote:

Originally Posted by Carl Anderson
I am logged in and I get no buttons when using Firefox - could this be a cookie issue?

I will answer my own question - yes I cleared my cookies and can now view the buttons.............

Thanks for checking this out - sorry I should have tried it..

Colejo 11-03-2005 03:17 PM

While you can limit the link in the navbar to be only viewable to registered members if someone gave the link out anyone can view it. How would I make it so only registered members can see the actual map?

Colejo 11-03-2005 03:20 PM

I have one more question. When you click on the username in the marker it takes you to my home page. Can it be set so that when you click on the username it takes you to the users profile?

stonyarc 11-03-2005 03:26 PM

Quote:

Originally Posted by Colejo
I have one more question. When you click on the username in the marker it takes you to my home page. Can it be set so that when you click on the username it takes you to the users profile?

Yep this is planned to be by default in the next version. Now you can change it to whatever you want.

The code to make it viewable for only registered users is also included in the install.txt file.

Colejo 11-03-2005 03:29 PM

Quote:

Originally Posted by stonyarc
Yep this is planned to be by default in the next version. Now you can change it to whatever you want.

The code to make it viewable for only registered users is also included in the install.txt file.

All that did is make the link not viewable in the navbar but if someone gave the direct link out to someone that is not registered they could still see the page.

stonyarc 11-03-2005 03:40 PM

Quote:

Originally Posted by Colejo
All that did is make the link not viewable in the navbar but if someone gave the direct link out to someone that is not registered they could still see the page.

Any tips on fixing that are welcome.

Deimos 11-03-2005 03:42 PM

Would someone be kind enough to tell me how to change the font colour on the tags?

My forum uses a dark background and the info tags are all blank, you have to hightlight it to see the words.

schford 11-03-2005 04:25 PM

Is it possible to set the location info to link to another seciton of the website.

Eg I am thinking of using it for users to put in their locations so their name woudl go to their profile but also I have a databse of rebreather friendly destinations - would be great if we could put thes eon the map and then further information from those was available eg they clicked on it and it took us to the entry in ou RB friendly destinatiosn database.

Thanks

Stuart

ConqSoft 11-03-2005 05:40 PM

Just installed.

Added my location.

"Users" still shows 0 and nothing shows on map.

markers.xml did get updated, and shows my data.

If I go back to "Your Entry", it shows my entry and gives me the option to delete.

ConqSoft 11-03-2005 05:50 PM

Interesting. It finally showed up, even after restarting the browser/forcing a hard refresh. Oh well.

stonyarc 11-03-2005 05:59 PM

Quote:

Originally Posted by ConqSoft
Interesting. It finally showed up, even after restarting the browser/forcing a hard refresh. Oh well.

Well, It's a browser caching issue. It's tricky to reload the map. Easiest way is just close browser and restart.

ConqSoft 11-03-2005 06:18 PM

In the popup that comes up, the username links to the domain index. Should it link to their profile?

dan35 11-03-2005 06:19 PM

Hack of the Month :)

stonyarc 11-03-2005 06:20 PM

Quote:

Originally Posted by ConqSoft
In the popup that comes up, the username links to the domain index. Should it link to their profile?

You can edit the link yourself. In release this will be an option to set the link in the admincp.

It's on the to do list

stonyarc 11-03-2005 06:21 PM

Quote:

Originally Posted by dan35
Hack of the Month :)

I really hope so. :rolleyes:

Or will I get two with the VBStatExtended :smoke:

ConqSoft 11-03-2005 06:29 PM

Quote:

Originally Posted by stonyarc
You can edit the link yourself. In release this will be an option to set the link in the admincp.

It's on the to do list

Cool. Just wanted to make sure it wasn't a problem with my system while I'm testing.

Thanks

Holidazed 11-03-2005 07:18 PM

Quote:

Originally Posted by stonyarc
I think that can easily be solved by adding some CSS elements or direct font color items in the javascripts.

Give a yell if you need some help with that

I am having the same color issues in my vbgooglemap. white on white text.

Can you help?

GuaRRand 11-03-2005 07:35 PM

Quote:

Originally Posted by stonyarc
Because they have a large zipcode / L&L database behind it.

http://earth-info.nga.mil/gns/html/cntry_files.html this one has about all zipcodes and locations in the world except US.

I could mix up a super global DB for the zipcodes but than it would be very hard on diskspace and your database server if you don't have enough performance in there.

I got no probs with that :D
Throw it in there!! :)
(or maybe make a lite and full version!?!?)

DJ XtAzY 11-03-2005 09:12 PM

does running this hack have a high server load?

TTG 11-03-2005 09:49 PM

Was working well for a few hours .. 7 members added their info and all disappeared !?

banshee 11-03-2005 10:07 PM

Quote:

Originally Posted by bitg
I am having the same color issues in my vbgooglemap. white on white text.

Can you help?

Me to how can I add in the Font color to make the bubbles text darker?

stonyarc 11-03-2005 10:29 PM

Quote:

Originally Posted by TTG
Was working well for a few hours .. 7 members added their info and all disappeared !?

TTG,
Can you please put a URL?
It's probably a data problem in the text field

/Edit

TTG,

It's the users Stevie Jay that is causing the problem he posted in his text field ?.

This is a non escaped character. Quick fix edit the googlemap table and remove the special character from name and text.

I'll modify the escape code.

stonyarc 11-03-2005 10:30 PM

Quote:

Originally Posted by banshee
Me to how can I add in the Font color to make the bubbles text darker?

I'll drop in a how to

TTG 11-03-2005 10:33 PM

Quote:

Originally Posted by stonyarc
TTG,

Can you please put a URL?

It's probably a data problem in the text field

Clicky here


Thanks stonyarc .. problem now solved.

Colejo 11-03-2005 10:34 PM

Quote:

Originally Posted by stonyarc
Any tips on fixing that are welcome.

I know someone has to know how to do this. Anyone?

stonyarc 11-03-2005 11:25 PM

Minor update for people with the DocumentElement Error

This is most of the time caused by a user that has used very special characters in the text file. I'm working on a full check but there are a lot of them like ? and many others.

Special Characters in text => STATUS IN PROGRESS, I CHANGED THE STR_REPLACE WITH A BROADER ONE TO HANDLE MORE SPECIAL CHARACTERS SO THE RISK OF FAILING BECAUSE OF SPEC CHARS IS ALMOST RESOLVED => Download and overwrite VBGooglemap.php

Remember this is still a beta but it's going quite well I think

stonyarc 11-03-2005 11:41 PM

Quote:

Originally Posted by banshee
Me to how can I add in the Font color to make the bubbles text darker?

Ok here it goes

To edit the color of the text displayed in the balloon

Go to the VBGooglemap_display_map template
(It also occurs in the other templates but it's currently not used YET)

look for

Code:

               
if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'>"+ title +"</a>";
}
var content = "<div align=\"center\"><strong>"+title +"</strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\">" + text +"</div>";

and change this to

Code:

               
if ( (type=="yellow") || (type=="red") ){
title = "<a href='/'><font color='#000000'>"+ title +"</font></a>";
}
var content = "<div align=\"center\"><strong><font color='#000000'>"+title +"</font></strong></div>" + "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\"><font color='#000000'>" + text +"</font></div>";

You can change the #000000 to anything you like

I'll make the font color a admincp option to add. This should make life easier for some.

TTG 11-03-2005 11:42 PM

Quote:

Originally Posted by stonyarc
Remember this is still a beta but it's going quite well I think

Working amazingly well .. I had no idea google maps were so detailed.
I can almost see the holes in my roof when I zoom in :)

stonyarc 11-03-2005 11:48 PM

Quote:

Originally Posted by TTG
Working amazingly well .. I had no idea google maps were so detailed.
I can almost see the holes in my roof when I zoom in :)

Time to get on the roof :smoke:

Too bad it's not in Europe yet.

I have detailed zip-codes too but if I would do that it would cause and amazing extra data load on the database. Just think all the zipcodes in the world. If you have only local users 1 country that could be done. It even makes my life easier.

In the US you can even find scripts that give you the L&L based on your address. just fill it in and it sets your marker.

I think I would need some other infrastructure. That would mean building a server farm to handle that amount of data.

silurius 11-04-2005 12:15 AM

Fantastic extension! Installed without a hitch.

Any chance you could define your roadmap for this, plus tips & tricks, on the first reply on this thread?

If you are taking requests, I would vote to have VBGooglemap read user profile fields, and do something to integrate it with an events calendar.

Great stuff!

chader144 11-04-2005 12:50 AM

Google Map API resources
http://mapki.com/index.php?title=Main_Page

Just to help.

Google Maps API Basic Tutorial
http://www.econym.demon.co.uk/googlemaps/index.htm

TJFweb 11-04-2005 03:54 AM

Nice hack. I had to tweak some of the template code though...

tlp000999 11-04-2005 07:24 AM

** installed ** http://www.falconryforum.co.uk/VBGooglemap.php

- first installation, got the xbox urls.
- re-installed the fix, but now the links in the bubbles just go to forum root
- updated all the pyg_addNewPoint(lat,lng,title,text,type) functions to

PHP Code:

      function pyg_addNewPoint(latlngtitletexttype) {
        var 
point = new GPoint(latlng);
        var 
icon pyg_icon(type);
        var 
marker = new GMarker(pointicon);
        if ( (
type=="yellow") || (type=="red") ){
            
title "<a href='/memberlist.php?do=getall&ausername="+title+"'>"title +"</a>";
        }
        var 
content "<div align=\"center\"><strong>"+title +"</strong></div>" "<hr width=\"100\"/><div align=\"left\" style=\"width: 20em\">" text +"</div>";
        
GEvent.addListener(marker"click", function() {
            
marker.openInfoWindowHtml(content);
          });
        
map.addOverlay(marker);
      } 

Think I need to url encode the title in the above but not familiar enough with the php's way of doing it.

The Geek 11-04-2005 08:45 AM

Another suggestion that would make this even better:

Create a shortcut to various countries (ie. lat, long and zoom level). Already no one can even see the UK on mine. Its one giant red blob!

reteep 11-04-2005 09:33 AM

I got a strange bug, yesterday it worked on IE and Firefox. Today the red flags are only shown on Firefox, not on IE anymore. Any clue why?

http://www.musiker-board.de/vb/VBGooglemap.php

stonyarc 11-04-2005 09:44 AM

Quote:

Originally Posted by stormblast
I got a strange bug, yesterday it worked on IE and Firefox. Today the red flags are only shown on Firefox, not on IE anymore. Any clue why?

http://www.musiker-board.de/vb/VBGooglemap.php


Hello Stormblast,

It's a purely data error. I've written a remove special chars function but not all chars are in there.

Quick fix is to open phpmyadmin and remove any special chars from the text field.

<marker lng="10.968475341796875" lat="49.02514993862271" title="Archers in Stint" text="Wei?enburg" type="red"/>

I think this one may be causing the problem. Can you give the special chars people are using so I can add them to my list.

Greetz

The Geek 11-04-2005 10:48 AM

I havent looked at the code - however why not just use htmlspecialchars() or vbs htmlspecialchars_uni() function to write the data to the markers?


All times are GMT. The time now is 12:47 PM.

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.02892 seconds
  • Memory Usage 1,853KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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