Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBGooglemap Member Edition Details »»
VBGooglemap Member Edition
Version: 3.0.1, by stonyarc stonyarc is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.8 Rating:
Released: 08-04-2006 Last Update: 08-20-2007 Installs: 1034
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.


Version 3.0.1 is currently available

This is the tested port of my 3.5.x version h(https://vborg.vbsupport.ru/showthread.php?t=99920)

You can now nominate hacks yourself for hacks of the month. There is a link on the right of hacks on top of the files.

Function
This will display the members of the Bulletin Board based on their lattitude and longitude coordinates on a googlemap.

Don't forget to hit install !!!!!!!
Please read the guide before asking for support !!!!!!!

Feel free to support this mod and make a paypal donation to admin@stonyarc.com

INSTALL

Detailed installation instructions and screenshots in the included pdf file.

Current Features



NOTE:
VBGooglemap 3.0.0 contains the vulnerability fix. Please upgrade immediately. Version 3.0.0. also contains all features from 2.5.X

As always you use modifications at your own risk.

VBGooglemap Member Edition 2.5.x brings you a lot of new features. It?s vital that you uninstall any previous version before upgrading/installing version 2.5.x.

Upgrading from version 2.5.0 is easier. Instruction are available in the guide.

As the uninstall function will not remove your googlemap data in the database but only the templates and files you can safely remove an older version. As a precaution you should always take a backup. This should be done on each major change you make to your bulletin board.

IF YOU ARE RUNNING VERSION 1.0.3, 2.0.X AND YOU CHANGED TEXT DIRECTLY IN THE TEMPLATES YOU NEED TO SAVE YOUR CHANGES AS VERSION 3.0.0. REQUIRES YOU TO UINSTALL PREVIOUS VERSIONS.

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission.

Changes in this version

SEE FIRST POST FOR FULL ROADMAP AND HISTORY

Planned Features
- TBD

Volume warning

high volume of users may slow down the load. Currently a load counter is included.

Languages

Thanks to Wachtmeister there is a German translation available to you all. Feel free to use it.

The translation will be updated on each new version.

Special

- Read the attached PDF for more information. The pdf is also included in the zip file.
- You'll need a googlemap key for your domain. Get your own key for your domain view http://www.google.com/apis/maps/signup.html for more information.
A googlemap key is only valid for a specific domain. You'll need a specific google account to create one.
All is explained on the googlemap link indicated above.
- Set the file permissions on the marker.xml file to 777
- The googlemap script can handle non-registered users. They will only see the main map and won't be able to enter information. This is reserved for logged in users (detected automatically)
- usergroup permissions are available in the backend
- To change location just drag the map while holding the left mouse key or by using the zoom and key functions on the left
- First time loading of the map may take a few seconds longer because of Google API hosting



Special Xbox Live version
http://www.xboxlivenation.com/community/gamermap.php

Credits

This has taken quite some work and still will take a lot more. Please give credit where credit is due. You cannot remove any notice without prior written permission. Instructions are included in the pdf file.
Special credits to Google, Pyg for the javascript tips.



FAQ

The FAQ is included in the pdf file.

INSTALL



Feel free to support this mod and make a paypal donation to admin@stonyarc.com



(c) 2007 Stonyarc

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #802  
Old 10-27-2008, 04:07 PM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cosmetic change: fix of marker appearance in location editor. It will always look like the vbGoogleMap red marker, rather than Google Maps's default marker. Assumes the line numbering of the previous fix.

In product-vbgooglemapme.xml:

Line 863:
map.addOverlay(new GMarker(point, icon));
to
map.addOverlay(new GMarker(point, {icon:icon}));

Line 877:
map.addOverlay(new GMarker(point));
to
map.addOverlay(new GMarker(point, {icon:icon}));

ETA:

Another cosmetic change: fix of marker position on map:

Change all occurrences of

icon.iconAnchor = new GLatLng(...);
icon.infoWindowAnchor = new GLatLng(...);


to

icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(8, 1);


Coordinates are left-to-right, top-to-bottom.
Reply With Quote
  #803  
Old 10-29-2008, 01:20 AM
ATVTorture ATVTorture is offline
 
Join Date: Sep 2008
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lpetrich,

Since you obviously have the map working, do you think you could read posts 797-800 above and see if you could help us out with getting it going on 3.7.3. It seems to be a common problem and some of us are curious as to where we're going wrong with the install/configuration so that none of our pointers show up.

Thanks for any insight you can provide.

Buster
Reply With Quote
  #804  
Old 10-29-2008, 03:48 AM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd implemented ZeroHour's fix, I guess -- that's what I had done, and it had worked for me.

I had also edited markers.xml to get rid of troublesome XML-breaking characters in it, getting rid of ? and & and the like.

If you have Firefox, you can do some debugging with it by selecting
Tools > Error Console

Any HTML, CSS, or JavaScript errors will show up there.

If you are more adventurous, you can go to the Firefox add-ons page and install the JavaScript debugger and try to use it to see what's happening.
Reply With Quote
  #805  
Old 10-29-2008, 01:15 PM
ATVTorture ATVTorture is offline
 
Join Date: Sep 2008
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I had done ZeroHour's fix to no avail. I also stripped down the xml file so the first line is <markers>, the next 2 lines are 2 markers I created on the map, then the file closes with </markers> Still doesn't load them on the main map. But, you can see the marker when you select "Your entry" which is odd.

When I ran Firefox's error console, it gave to errors in the css for "word-wrap" saying it was an unknown property and the declaration was dropped.
Reply With Quote
  #806  
Old 10-29-2008, 01:50 PM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try displaying markers.xml in your web browser: <forum root address>/markers.xml

That will show what your browser "thinks" it is, and perhaps purge the browser's cached version of markers.xml

I remember editing it once, but some time after that, it got some bad image links again, so markers.xml may be created from the database. I think that it gets periodically re-created by vbGoogleMap's cron job; it also gets re-created after an entry creation or edit.

So you could go to
Admin CP > Vbgooglemap ME > ME Full View

and edit the possibly-troublesome entries, using markers.xml as a guide. By the time you read this, that cron job had likely restored markers.xml to the database value; you can run it again by going to
Admin CP Scheduled Tasks > Scheduled Task Manager > Googlemap ME Cron

and pressing "Run Now".

The two vbGoogleMap data tables in the database are:
googlemapme
googlemapme_settings

So you can try deleting those if you get desperate.
Reply With Quote
  #807  
Old 10-29-2008, 02:09 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some knowledgeable people here. A question if you do not mind. My site is in UTF-8 encoding in Cyrillic. Everything is good but tooltip encoding is messed up. Any suggestions on how to fix that?

Thank You
Reply With Quote
  #808  
Old 10-30-2008, 11:18 PM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like some trouble in generating the HTML for the info bubbles.

Here's a kludge that will work:

Enter the Cyrillic text or special characters as HTML entities when editing an entry, characters in this form: &#<decimal>; or &#x<hexadecimal>; or &<name>;

It should be displayed in the info bubbles correctly. However, it'll get displayed as the translated characters the next time you go edit. Digging in the plugin code for how to take care of this mess will be rather difficult for me, however. However, I've prepared a kludge:

Create a translator page with this HTML code
HTML Code:
<script type="text/javascript" language="javascript">
<!--
function Make_HTML_Entities()
{
	var text = document.getElementById("TextInput").value;
	var uctext = ""
	for (var i=0; i<text.length; i++)
	{
		ucchr = "&amp;#" + text.charCodeAt(i) + ";";
		uctext += ucchr;
	}
	document.getElementById("TextOutput").innerHTML = uctext;
}
//-->
</script>
<table>
<tr>
<td>Text to be expanded:</td>
<td>
<input id="TextInput" type="text">
<input type="button" value="Go!" onclick="Make_HTML_Entities()">
</td>
</tr><tr>
<td>As HTML entities:</td>
<td>
<div id="TextOutput"></div>
</td>
</tr>
</table>
It'll turn whatever you had typed into HTML entities, which can then be used as input.
Reply With Quote
  #809  
Old 10-31-2008, 07:28 PM
MediaHound MediaHound is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rend Sever View Post
The Show on map links aren't zooming in to the proper pins, the map simply sits at the default lat/long.

Any insight?
Same here as well. Did you happen to figure it out?
Reply With Quote
  #810  
Old 11-02-2008, 06:12 AM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rend Sever and MediaHound, had you tried ZeroHour's fix? It's post 697 here.

And when you run it, be sure to go to "Scheduled Tasks" in the AdminCP and run the vbGoogleMap cron job to refresh markers.xml

You can see if it has bad HTML by getting <forum root>/markers.xml on your web browser, and you can find out where the page execution bombs out with Firefox Tools > Error Console.
Reply With Quote
  #811  
Old 11-03-2008, 10:39 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lpetrich View Post
Seems like some trouble in generating the HTML for the info bubbles.

Here's a kludge that will work:

Enter the Cyrillic text or special characters as HTML entities when editing an entry, characters in this form: &#<decimal>; or &#x<hexadecimal>; or &<name>;

It should be displayed in the info bubbles correctly. However, it'll get displayed as the translated characters the next time you go edit. Digging in the plugin code for how to take care of this mess will be rather difficult for me, however. However, I've prepared a kludge:

Create a translator page with this HTML code
HTML Code:
<script type="text/javascript" language="javascript">
<!--
function Make_HTML_Entities()
{
	var text = document.getElementById("TextInput").value;
	var uctext = ""
	for (var i=0; i<text.length; i++)
	{
		ucchr = "&amp;#" + text.charCodeAt(i) + ";";
		uctext += ucchr;
	}
	document.getElementById("TextOutput").innerHTML = uctext;
}
//-->
</script>
<table>
<tr>
<td>Text to be expanded:</td>
<td>
<input id="TextInput" type="text">
<input type="button" value="Go!" onclick="Make_HTML_Entities()">
</td>
</tr><tr>
<td>As HTML entities:</td>
<td>
<div id="TextOutput"></div>
</td>
</tr>
</table>
It'll turn whatever you had typed into HTML entities, which can then be used as input.
Thank you. It's a good manual solution, but when you have hundreds of users adding their info it becomes a liability. Unfortunately for right now I am unable to use this awesome mod due to the tooltip encoding issue.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05598 seconds
  • Memory Usage 2,338KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete