vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VBGooglemap Member Edition (https://vborg.vbsupport.ru/showthread.php?t=123148)

MediaHound 06-05-2010 02:25 PM

Quote:

Originally Posted by GeekDrew (Post 1338040)
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:


Immediately ABOVE the text I have quoted, place the following text:



In the same file, find this:



Immediately BELOW the text that I have quoted, place this:



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.

Really old post of yours GeekDrew but the .txt file on your server is long gone. I need to apply this patch again and if you still have that (or anyone else reading), please let me know.

Also there are other fields that are in need of validation.
Has anyone gotten a bulletproof solution here yet?

Diablotic 06-09-2010 09:26 AM

Any news on 4.0 version?

mierzwin 06-12-2010 09:42 PM

ckgreenman, will the official version support upgrade from your one ? is it worth installing yours or just wait for official release ? i dont want my members to re-enter their location multiple times etc

thanks

kylek 06-14-2010 06:34 PM

Quote:

Originally Posted by zelnik (Post 2044722)
Hi,

did you get anywhere with this as i really would like to install it but have vmoods installed :(

I removed vmoods and replaced it with the newer dbtechs facebook status as they have included mood images in it, and with a bit of work you can run the same images that you use in vmoods.

This allows the markers to display properly using ckgreenman's version.

ckgreenman 06-28-2010 12:59 PM

Quote:

Originally Posted by mierzwin (Post 2052668)
ckgreenman, will the official version support upgrade from your one ? is it worth installing yours or just wait for official release ? i dont want my members to re-enter their location multiple times etc

thanks

Sorry for the late response. From what I know (admitedly not much) about StonyArc's vb4 version there will be no upgrade patch from ANY version. that being said, the only real thing that needs to be saved is your xml file. As long as you have that all your marker data is safe.


If you DO decide to install my version, then all you will need to do is save your marker file, uninstall the product, and install the new version. I imagine that StonyArc would provide some means to import the data from the marker file.

Hope this helps

Amiga Harrison 07-01-2010 11:38 AM

I've just installed the vB4 version and it seems to be working perfect. Great work on the update for this.

When first installed I also could not get the markers to appear, but to fix this all I had to do was edit my own entry [Your Entry] and click Update the information (without actually editing anything) and the markers all appeared, so it seems re-saving the data fixed it.

SuperGLS 07-07-2010 07:54 PM

I followed the instructions ckgreenman laid out and when I click on the link for it I get this error.

https://vborg.vbsupport.ru/external/2010/07/39.png

Any ideas? I'm sure my API key is right, although I was updating from version 2.5.2 not 3.0.1 of this mod. If I go get a new API key, which one should I get? Will that mess up my marker data?

Thanks in advance!

HondaATC 07-10-2010 09:21 PM

What are my options if my markers.xml file is blank, but they are still stored in the database?

HondaATC 07-11-2010 12:10 AM

Fixed it. Apparently just adding one new marker re-freshes the markers.xml with the information from the database! :D

SuperGLS 07-12-2010 02:00 PM

Any ideas on my error I'm getting above? Everything else seems to be working, but it's annoying to get a pop up error every time.

Happens in Firefox and Safari (and the other browsers too I'd imagine).

BarelyHangingOn 07-12-2010 10:14 PM

What key? I am getting the wrong API key. I am copying it over correctly???????

Warning: unserialize() expects parameter 1 to be string, array given in [path]/vbgooglemapme.php on line 64

HondaATC 07-13-2010 02:59 AM

make sure your giving google the exactly right address to process the key. If your on a subdomain, use the subdomain. If you have a htaccess that forces you to either remove or use the www, make sure that is correct as well.

BarelyHangingOn 07-13-2010 08:25 AM

It still doesn't want to work.

Here is my website:
http://www.lab-retriever.net/board/

Here is my map:
http://lab-retriever.net/board/vbgooglemapme.php

The key is for:
http://lab-retriever.net

HondaATC 07-13-2010 10:36 AM

Bummer...I have no idea then. Mine was doing the same thing, I got nitty gritty with my link address and then it worked?

Falcon Capt 07-29-2010 09:05 PM

Quote:

Originally Posted by ckgreenman (Post 2036908)
Ok I talked with StonyArc and even though he is working on an OFFICIAL vB4 release he has authorized me release my vB4 version of this mod (3.0.1-vb4 for lack of a better version).

INSTALL:

1. To Install, unpack the contents of the zip file onto your computer.
2. Upload the contents of the "upload" directory AS IS so that the vbgooglemapme.php file
resides in your forum root
3. In AdminCP go to "Manage Products" and click the "Add/Import" link at the bottom.
4. Under "Import Product", click the "Browse" button and specify the "product-vbgooglemapme.xml" file.
5. Click "Import"

To UPGRADE from 3.0.1 (if it's still installed after you upgraded to vB4):
1. In AdminCP, go to the VBGooglemapME Settings and record your googlemap API key,
2. In AdminCP, go to the "Manage Products".
3. Scroll down to VBGooglemapME and uninstall the product. (user markers are not deleted so existing markers)
4. Unpack the zip file.
5. Upload the contents of the "upload" directory. (The only files that changed are vbgooglemapme.php and incluces/functions_vbgooglemapme.php so copying those is sufficient)
6. import the new product file.
7. Go to VBGoogleMapME Settings and put in your googlemap API key (and any other settings).

Note: The permissions will not be correct when you upgrade so you will need to rebuild the bitmask by visiting the Usergroup Manager. The masks should rebuild on their own but make sure your group permissions are as you need them. Also, the "Member Map" link resides on in the Community drop down menu which is visible when you click the "Forum" tab.


NEW FEATURES:
In addition to being ported to vB4 I added a few features that had been suggested on this thread.
You can now select "Terrain" as a default map mode.
Terrain is a selectable mode when viewing the map.
You can now zoom the map using a Mouse Scroll wheel.


If you have any questions regarding THIS VERSION please feel free to contact me here or via PM.


Enjoy!!

I've installed this on my recently upgraded forums (from 3.8.5 to 4.0.5) and it was working fine but having one problem, the pins on the map keep disappearing. When someone adds a pin or something, they'll appear, but a little while later they are gone again. It appears this happens after the hourly Google Map Me CRON runs.

Need help!

lpetrich 07-30-2010 06:36 PM

My first guess is that it's the result of misparsed characters - something that ZeroHour's fix ought to cure.

So you can try comparing before-cron and after-cron versions of the markers file.

Falcon Capt 07-30-2010 09:50 PM

Quote:

Originally Posted by lpetrich (Post 2076922)
My first guess is that it's the result of misparsed characters - something that ZeroHour's fix ought to cure.

So you can try comparing before-cron and after-cron versions of the markers file.

Where is "ZeroHour's" fix??? :confused:

DISREGARD: Found the fix and it appears to have resolved my issue on the vB4 ported mod... THANK YOU!

ZeroHour's Fix: https://vborg.vbsupport.ru/showthrea...51#post1456251




.

Diablotic 08-06-2010 08:38 AM

Any news on vB4 official release?

ckgreenman 08-11-2010 11:54 AM

Quote:

Originally Posted by SuperGLS (Post 2068060)
Any ideas on my error I'm getting above? Everything else seems to be working, but it's annoying to get a pop up error every time.

Happens in Firefox and Safari (and the other browsers too I'd imagine).

Have you tried just getting a new key?

Quote:

Originally Posted by Burtman (Post 2068278)
What key? I am getting the wrong API key. I am copying it over correctly???????


Warning: unserialize() expects parameter 1 to be string, array given in [path]/vbgooglemapme.php on line 64

I'll look into this but it almost sounds like the key isn't getting copied correctly.

Quote:

Originally Posted by Diablotic (Post 2079969)
Any news on vB4 official release?

None yet. I'll see if I can get a hold of Stonyarc and ask.

ckgreenman 08-11-2010 11:56 AM

Quote:

Originally Posted by Amiga Harrison (Post 2062688)
I've just installed the vB4 version and it seems to be working perfect. Great work on the update for this.

When first installed I also could not get the markers to appear, but to fix this all I had to do was edit my own entry [Your Entry] and click Update the information (without actually editing anything) and the markers all appeared, so it seems re-saving the data fixed it.

I'm curious, did you make a backup of your markers.xml before installing the update?

ckgreenman 08-11-2010 12:03 PM

Quote:

Originally Posted by zelnik (Post 2044722)
Hi,

did you get anywhere with this as i really would like to install it but have vmoods installed :(

Sadly no. I've been extremely busy working on other projects (and enjoying the summer, lol).

In the interim I noticed someone found a workaround that provides similar fuctionality but doesn't use the vMoods mod.

ckgreenman 08-11-2010 12:15 PM

Quote:

Originally Posted by Falcon Capt (Post 2076994)
Where is "ZeroHour's" fix??? :confused:

DISREGARD: Found the fix and it appears to have resolved my issue on the vB4 ported mod... THANK YOU!

ZeroHour's Fix: https://vborg.vbsupport.ru/showthrea...51#post1456251




.

I thought I had implemented this fix. Turns out I missed the cron code. I'm packaging an updated version now.


EDIT: Fix uploaded please go HERE to get the updated package.

Tahooma 08-16-2010 03:47 PM

Is there a chance to have this as some kind of map to show users interesting points ?
Means, that only the administrator is able to insert markers, but he has to be able to add multiple markers.
This would be a fantastic fit for my website.

BR
Tahooma

nazguluk 08-19-2010 01:08 PM

Is it possible to remove the vB wrapper from this so I can use it as a Widget in vB4 CMS?

Falcon Capt 08-19-2010 02:05 PM

Quote:

Originally Posted by ckgreenman (Post 2082137)
I thought I had implemented this fix. Turns out I missed the cron code. I'm packaging an updated version now.


EDIT: Fix uploaded please go HERE to get the updated package.

Having one other weird problem with the mod in vB4.0.6.

When someone puts up a pin and it puts the "Map Me" link in their postbit, in posts their location displays correctly, but if they send me a PM and I click the link in their postbit in the PM, the link is to my pin, not theirs!

It seems the "Map Me" link works correctly when it is a post, but when it is a PM the link shows the location of the receiver of the PM, not the sender (even thought the "Map Me" link is in the sender's postbit in the PM).

Anyone else seeing this issue in vB4.x?

GoTTi 08-23-2010 02:39 AM

still no talk about releasing this for 4.0?

Diablotic 08-23-2010 09:29 AM

I am still waiting for 4.x release. This is such a great mod!

HondaATC 08-25-2010 11:18 PM

Tip for those using this:

I had my markers disappear on me the other day. I couldn't figure out why. I loaded markers.xml in my browser and got a parse error with a copy of what line exactly was showing it. Turns out a user had posted a link to an attachment into his thumb tack, and the character messed it up. I removed the image link, deleted markers.xml via FTP, and then added myself back on, and markers.xml regenerated with the correction, and then the page loaded correctly showing all nearly 200 markers.

animens 10-30-2010 12:43 PM

Hello, respected!

VBulletin 3.8.6 PL1
PHP 5.3.2
MySQL: 5.0.91-community

After installation i got next wrongs:
Code:

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 215

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/init.php on line 393

Deprecated: Assigning the return value of new by reference is deprecated in /home/myaccount/public_html/includes/class_core.php on line 2552


There can be it of what at me on server PHP 5.3.2? If yes, that is whether possibility to solve this problem? Or can eat another similar mod?

In advance BIG thanks!

yotsume 11-07-2010 07:47 PM

No pins are showing on the map?

I'm on vb3.7. It is installed.

How the heck do you get a pin to show on the map?

I entered my location and no pin shows on the map!

How can I fix this?

THANKS!

yotsume 11-08-2010 05:32 AM

Quote:

Originally Posted by Ronseal (Post 1331020)
Hi,
This single reference, out of 32 pages, regarding the deletion of the $footer from the vbgooglemapme template has sorted my installation, thanks a million. Although I have absolutely no idea why it makes the markers appear...

Thanks again.
Ronseal


Well tried this and the markers still dont show.

Maybe this is just a trash mod and not working for vb3.7x?

yotsume 11-08-2010 06:40 AM

Pure POS! Zero answers after reading all these wasted pages! UNINSTALLING!!!

aileron79 12-16-2010 07:41 AM

Installed this version for vB 4.* and it works fine.

In case the pins do not show up they most likely have not been uploaded...

kjsmith84 12-16-2010 06:56 PM

I dont feel like reading through 69 pages- can someone tell meif this works with 3.8?

Mellow 12-17-2010 02:58 PM

Quote:

Originally Posted by ckgreenman (Post 2036908)
Ok I talked with StonyArc and even though he is working on an OFFICIAL vB4 release he has authorized me release my vB4 version of this mod (3.0.1-vb4 for lack of a better version).

INSTALL:

1. To Install, unpack the contents of the zip file onto your computer.
2. Upload the contents of the "upload" directory AS IS so that the vbgooglemapme.php file
resides in your forum root
3. In AdminCP go to "Manage Products" and click the "Add/Import" link at the bottom.
4. Under "Import Product", click the "Browse" button and specify the "product-vbgooglemapme.xml" file.
5. Click "Import"

To UPGRADE from 3.0.1 (if it's still installed after you upgraded to vB4):
1. In AdminCP, go to the VBGooglemapME Settings and record your googlemap API key,
2. In AdminCP, go to the "Manage Products".
3. Scroll down to VBGooglemapME and uninstall the product. (user markers are not deleted so existing markers)
4. Unpack the zip file.
5. Upload the contents of the "upload" directory. (The only files that changed are vbgooglemapme.php and incluces/functions_vbgooglemapme.php so copying those is sufficient)
6. import the new product file.
7. Go to VBGoogleMapME Settings and put in your googlemap API key (and any other settings).

Note: The permissions will not be correct when you upgrade so you will need to rebuild the bitmask by visiting the Usergroup Manager. The masks should rebuild on their own but make sure your group permissions are as you need them. Also, the "Member Map" link resides on in the Community drop down menu which is visible when you click the "Forum" tab.


NEW FEATURES:
In addition to being ported to vB4 I added a few features that had been suggested on this thread.
You can now select "Terrain" as a default map mode.
Terrain is a selectable mode when viewing the map.
You can now zoom the map using a Mouse Scroll wheel.


If you have any questions regarding THIS VERSION please feel free to contact me here or via PM.


Enjoy!!

UPDATE: Apparently I missed one of the fixes that ZeroHour had posted so I'm uploading a new version that includes this fix.

This worked great for me on 4.1... the only issue is it's not centered, might not be in it's own box.

Gamelobby 01-30-2011 09:29 PM

Quote:

Originally Posted by HondaATC (Post 2089591)
Tip for those using this:

I had my markers disappear on me the other day. I couldn't figure out why. I loaded markers.xml in my browser and got a parse error with a copy of what line exactly was showing it. Turns out a user had posted a link to an attachment into his thumb tack, and the character messed it up. I removed the image link, deleted markers.xml via FTP, and then added myself back on, and markers.xml regenerated with the correction, and then the page loaded correctly showing all nearly 200 markers.

1. Removed the img link where..? (in the mod itself or from xml)
2. Deleted xml from FTP, (then uploaded it again later or mod recreated it by itself.?)
3. Added yourself back on in mod or to xml.? (my info never went away)


Thanks.
i think i did what you said, but it didn't work for me, is why im asking.

HondaATC 01-30-2011 10:14 PM

Its been sometime since I did this but as I recall:

The tacks are stored in two places. One in a mysql table that actually propogates the xml file. I either edited the table directly in phpmyadmin or went to the settingsin admincp for this mod and found the user that had posted the link and removed it that way. It seems like there was a moderate users option or something for it, that had a list of all the users there location and comment data. Wherever that was, I deleted the info causing the the information that was causing the error in the xml from the database. And my own info from the database. Then I deleted the markers .xml completely, and I readded myself from the web interface, the modified database table re generated a correct xml file and it worked.

This was about 6 months ago so I can't remember entirely ;)

haninja 02-01-2011 02:05 AM

I'm getting 'InfoTabs' is undefined when I click on a marker. Anybody encounter this? And I don't see the popups.

eh69 02-26-2011 05:47 AM

Im using php 5.3.5 and xcache. I have error too:
Code:

Warning: unserialize() expects parameter 1 to be string, array given in [path]/vbgooglemapme.php on line 84

Fatal error: Call to a member function render() on a non-object in /usr/local/www/forum.x.org/vbgooglemapme.php on line 217

This error is missing when I click "flush cache" in vBOptimise, but missing on for one refresh. Next is showing again.

Or error is missing when I comment this line in vbgooglemap.php:
Code:

$vbulletin->vbgooglemapme = unserialize($vbulletin->vbgooglemapme)
Map is showing - its not correct key problem.

Second problem - markers is dont adding to my marker.xml file, its looking that:
Code:

%
<?xml version="1.0" encoding="UTF-8"?><markers>
<!-- (c) 2006 StonyArc -->

</markers>

Im using iso8859-2 enconding on my site.


EDIT
I found fix for that.

1. find this line
Code:

$vbulletin->vbgooglemapme = unserialize($vbulletin->vbgooglemapme)
and replace with this line
Code:

// $vbulletin->vbgooglemapme = unserialize($vbulletin->vbgooglemapme)
2. in googlemap admin cp disable small map preview :)

vwdforum 03-10-2011 12:13 PM

I've tried to use this in vb 4.1.2 but it doesn't work, anyone using it now?


All times are GMT. The time now is 03:03 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.03168 seconds
  • Memory Usage 1,865KB
  • 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
  • (6)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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