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
  #492  
Old 09-12-2007, 09:18 PM
Ronseal Ronseal is offline
 
Join Date: Aug 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Towermatt for trying to help, but running the markers.xml just brings up my portal page which currently has no link to my map install so I don't see why the markers.xml is of any use here?
Reply With Quote
  #493  
Old 09-12-2007, 09:25 PM
towermatt towermatt is offline
 
Join Date: Apr 2007
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, that may be the problem then. Have you checked your server to make sure the markers.xml is in the forums folder?

It really should bring up a page that shows the "entries" on your map
Reply With Quote
  #494  
Old 09-12-2007, 09:43 PM
Ronseal Ronseal is offline
 
Join Date: Aug 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Towermatt, I typed 'forums' instead of 'forum' whilst testing your last instruction.

Right then you're onto something now, I have an error on one of the entry's, it reads:

A semi colon character was expected. Error processing resource 'http://www.ducatisti.co.uk/forum/markers.xml'. Line 29, Po...

And I think I can see what's wrong if I read the markers.xml file....

This is the line with the error:
Quote:
<marker mapid="29" title_map="Fred" lng="-3.5971641540527" lat="50.550280590038" userid="1245" username="Fred" text_map="blah blah blah" type="red" pimage="http://www.mysite.com/forum/vbgooglemapme.php?lat=50.55028059003783&lng=-3.5971641540527343" />
This is the next line and it works:
Quote:
<marker mapid="30" title_map="bob" lng="-2.7019500732422" lat="52.040454864151" userid="2690" username="Fred" text_map="blah blah blah" type="red" pimage="http://www.mysite.com/forum/images/googlemapme/noimage.png" />
For some reason Line 29 has appended the lat and lng to the end of the pimage, not sure why, but I've corrected the line and all works perfect again and my Markers are back on display....... Towermatt, you're a Super Star, thanks a million!
Reply With Quote
  #495  
Old 09-12-2007, 10:16 PM
Ronseal Ronseal is offline
 
Join Date: Aug 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to add to the above obviously just editting the markers.xml isn't going to fix much so I had to correct the error on line 29 within the database, it all seems to work now..... well at least for the moment!....
Reply With Quote
  #496  
Old 09-12-2007, 11:14 PM
towermatt towermatt is offline
 
Join Date: Apr 2007
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just glad to hear we got someone going. :nanadance:

I may have to come back and find out about that database fix if mine poops out again.

How did you correct the error?
Reply With Quote
  #497  
Old 09-13-2007, 02:05 AM
GeekDrew GeekDrew is offline
 
Join Date: Dec 2004
Location: Columbus, OH, USA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this a couple of days ago, and the first couple of users that tried to use it (other admins of mine, as I like to do extensive testing) managed to break the pins, because of the XML validation error that others have referenced as "running the XML file".

The cause of the problem is that the pimage link isn't being parsed safely for XML.

Here's a fix that I think will work (at least it works for me -- I do NOT guarantee this, if it causes spontaneous combustion, fire, death, etc., I'm not to blame):

*** I JUST SAID THAT I DO NOT GUARANTEE THIS WILL WORK. I DISCLAIM ALL LIABILITY. YOU MUST BACK UP YOUR DATABASE AND ALL OF THE FILES RELATED TO THIS MODIFICATION, SO THAT YOU CAN RESTORE THEM IF NECESSARY. ***

In /forums/includes/cron/vbgooglemapme_cron.php:

Find:
Quote:
while ($get_xml_marker = $vbulletin->db->fetch_array($get_xml_markers))
Immediately ABOVE the text I have quoted, place the following text:

Quote:
This quote has been removed because I failed to consider HTML rendering. See the text here, so that it is properly parsed: link
In the same file, find this:

Quote:
if ($get_xml_marker["pimage"]!='')
{
$pimage = $get_xml_marker["pimage"];
}
else
{
$pimage = $bburl."/images/googlemapme/noimage.png";
}
Immediately BELOW the text that I have quoted, place this:

Quote:
$pimage = parseToXML($pimage);
That should render all entities in the 'pimage' field safe for XML, so it will validate. However, that script is only called when the CRON job is executed... when someone edits their entry online, a different copy of that same script is called (which is really bad form, in my opinion, but hey, I didn't develop this...). That second copy is located at /forums/includes/functions_vbgooglemapme.php. You need to make the exact same changes in that file as I have mentioned above.

Now... I am not claiming that this will solve everyone's issues. It more than likely will not. It will, however, fix problems with 'pimage' being the reason that the XML won't validate. I think that this will probably fix the problems that quite a few of you are happening.
Reply With Quote
  #498  
Old 09-13-2007, 06:13 AM
msudawgs64 msudawgs64 is offline
 
Join Date: Sep 2007
Location: Bedford, TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ronseal, awesome find. Thanks for that post, I followed your posts and sure enough I had the same thing going on. I was able to edit both the xml file and then edited that entry in the database and now the pins show again. Thanks, I like the map and really did not want to uninstall it.
Reply With Quote
  #499  
Old 09-13-2007, 08:35 AM
Ronseal Ronseal is offline
 
Join Date: Aug 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

msudawgs64, It's not all good news I'm afriad!!!!
Although my old pins show any new pins added/edited are not showing even after I run the cron job. So maybe it's time to try GeekDrew's '$pimage = parseToXML($pimage);' fix?
Reply With Quote
  #500  
Old 09-13-2007, 09:04 AM
Julrou Julrou is offline
 
Join Date: Jul 2007
Location: France
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by towermatt View Post
All you have to do is browse out to http://www.yoursite.com/forums/markers.xml

It is a file that came with the download for this mod and it should show any errors for links in read. Edit that entry on your map and it may bring the markers back.

Hum, when i go to http://www.informatiquefacile.eu/forums/markers.xml

i got a blank page...
Did i miss something ?
Reply With Quote
  #501  
Old 09-13-2007, 09:05 AM
Ronseal Ronseal is offline
 
Join Date: Aug 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just got the following error with your fix Geekdrew, any ideas?

Quote:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/my_site/public_html/forum/includes/cron/vbgooglemapme_cron.php on line 39
and line 39 was one of your additions: $xmlStr=str_replace("&",'&amp;',$xmlStr);
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 05:03 PM.


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.05087 seconds
  • Memory Usage 2,330KB
  • 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
  • (8)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