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)

hatschipratschi 10-22-2007 09:55 PM

Hi

I installed the Hack but i dont find the Scheduled task

3.8.STEP 8
Set up the maintenance CRON / Scheduled task
On the left menu in the admincp you?ll find ?Scheduled tasks?
Just add the following

I dont understand this, where is it???

Thanks

aquariumpros 10-22-2007 11:38 PM

Quote:

Originally Posted by dirtycrow (Post 1366172)
all my markers disappeared. any ideas?



Do a search through this thread about members using special characters (like % $) used in their marker text. This was the issue with many people losing markers.

Quote:

Originally Posted by hatschipratschi (Post 1366270)
Hi

I installed the Hack but i dont find the Scheduled task

3.8.STEP 8
Set up the maintenance CRON / Scheduled task
On the left menu in the admincp you?ll find ?Scheduled tasks?
Just add the following

I dont understand this, where is it???

Thanks



AdminCP - left side navigation bar @ the bottom is:
Scheduled Tasks - expand that; you'll see:
Add new scheduled task

Click that; and enter in the information as stated.

~ Aloha ~

unitedpunjab 10-23-2007 05:22 AM

Mine never worked... :(

hatschipratschi 10-23-2007 07:57 PM

@ aquariumpros

Thanks!!!

:):):)

pbrown 10-24-2007 03:45 PM

Quote:

Originally Posted by dirtycrow (Post 1366172)
all my markers disappeared. any ideas?

All of mine disappeared too. It was working great before.

I looked through the entries looking for odd characters and found none.

EI7 reports this error - Error: 'documentElement' is null or not an object

perfphysio 10-24-2007 04:01 PM

Quote:

Originally Posted by Serenity (Post 1365542)
ok.... so i've been reading and reading on this darn map and how to get the marker to show up. I have checked and rechecked all the settings and still, no marker.
when i first installed this, the marker appeared, but since then, i get nothing.........

also, is it possible to let the admin or a staff member be able to add more than 1 marker???

any help is appreciated

This had happened to me and I finally found it was from a rowkn link from one user whose marker wasn't working correctly. If one listing is broken in the xml then the markers will not show.

You can look to see if any are broken by running: http://www.yoursite.com/forum/markers.xml replacing 'yoursite' with your site. Look for any broken references which for memory getmarked red. The go in to the user list and delete that user. Once i have odne this all my markers reappeared.

Hope this helps :)

pbrown 10-24-2007 04:29 PM

I was able to fix mine. I opened up the markers.xml file is a test editor and searched for the '&' character. I found it in the pimage field for one of my users.

I then went back to cpadmin and deleted the entry. I was not able to edit the entry in cpadmin. I was able to delete the text from the pimage field and save but this didn't solve the problem. The text was still in the markers.xml file.

I really like this plugin but it does seem a little half baked.

Kahuna900 10-24-2007 09:42 PM

Quote:

Originally Posted by pbrown (Post 1367580)
I was able to fix mine. I opened up the markers.xml file is a test editor and searched for the '&' character. I found it in the pimage field for one of my users.

Thanks bro, that fixed the problem on my site. I never thought about that. Probably needs a little better form checking. Also, I don't know why it's required to input the additional text. I have to remove that restriction everything I update the plugin.

Also, I was able to download the zip file on another machine. Must have been my computer that corrupted the file. (

caliman 10-27-2007 11:46 PM

I accidentally overwrote my markers.xml when I upgraded just now.

Is there a way to generate another one from the DB somehow?

EDIT - I tried to create a new one via editing the settings in admincp - this did not work.

EDIT2 - When I tried to update my PIN, I got a DB error:
Database error in vBulletin 3.6.8:

Invalid SQL:
SET NAMES 'utf8';

MySQL Error : Unknown system variable 'NAMES'

Ambassador 10-28-2007 12:02 PM

Quote:

Originally Posted by caliman (Post 1370105)
I accidentally overwrote my markers.xml when I upgraded just now.

Is there a way to generate another one from the DB somehow?

EDIT - I tried to create a new one via editing the settings in admincp - this did not work.

EDIT2 - When I tried to update my PIN, I got a DB error:
Database error in vBulletin 3.6.8:

Invalid SQL:
SET NAMES 'utf8';

MySQL Error : Unknown system variable 'NAMES'

change this line in /includes/functions_vbgooglemapme.php
// $db->query_first("SET NAMES 'utf8'");

and in /includes/cron/vbgooglemapme_cron.php
// $vbulletin->db->query_first("SET NAMES 'utf8'");

Mrdby 10-28-2007 01:21 PM

someone fix this hack.

caliman 10-29-2007 04:11 AM

Quote:

Originally Posted by Ambassador (Post 1370320)
change this line in /includes/functions_vbgooglemapme.php
// $db->query_first("SET NAMES 'utf8'");

and in /includes/cron/vbgooglemapme_cron.php
// $vbulletin->db->query_first("SET NAMES 'utf8'");


Mine looks just like that. What do I change it too?

Ambassador 10-29-2007 08:55 PM

Quote:

Originally Posted by caliman (Post 1370860)
Mine looks just like that. What do I change it too?

change
PHP Code:

$db->query_first("SET NAMES 'utf8'"); 

to
PHP Code:

$db->query_first("SET NAMES 'utf8'"); 

or remove this two line

change in /includes/cron/vbgooglemapme_cron.php
PHP Code:

$text_file "<"."?"."xml version=\"1.0\" encoding=\"UTF-8\"""?"."><markers>\n"

to
PHP Code:

$text_file "<"."?"."xml version=\"1.0\" encoding=\"ISO-8859-1\"""?"."><markers>\n"

this work

rotor 10-30-2007 09:07 PM

I'd like a custom map made for my site ......

Stonyarc if you could either email or PM me I'd be very appreciative ....

rotor

darkakira 11-01-2007 04:43 PM

Ok. I keep reading and reading, and there is nothing I have seen yet to answer me, so I'm posting.

Heres the Deal.

I install the mod. I set permissions to marker.xml, i check the files, I generated my google API key for my domain, set the API number in settings, added cron job.

Heres the issue. NO MAP! Nothing. Like... white space when I browse to the page. I don't know why, but it is irritating. I am running vb 3.6.8. Any help would be nice.

TSM2 11-01-2007 05:45 PM

There seems to be some problem pulling the settings into the template, im having the same problem as you.

TSM2 11-01-2007 06:26 PM

Ok, on line 64 of vbgooglemapme.php, comment the line out.
Code:

$vbulletin->vbgooglemapme = unserialize($vbulletin->vbgooglemapme);
For some reason you dont need to unserialise the data. Dunt know why, im not good in vb but seems its not needed.

darkdiver 11-03-2007 08:02 AM

Hello folks,

now we are more and more users to have BIG PROBLEMS with Highslide and Googlemaps. So is there no help for us ?

Regards
Eric

birdie 11-03-2007 09:49 PM

We have installed it - working perfectly!

One thing I would like to change and can not see how to do it. In the general settings, I have set the default zoom of map to 1. I have set the Default zoom of the maps when using a link to show the marker to 6. When you click 'Show on map' from the list of users who have added a marker, the zoom of the map does go to 6 (great).

I have encouraged users to use the BB code that is generated to add 'My Location' to their signatures. When you click on the 'My Location' link in user signatures, it goes to the map with a zoom of 1 (not great) and you can not see which marker it was. I would like it to go to the default zoom of 6.

Any ideas on how to change it to a 6 when they click on 'My Location'.

BTW - this is an awesome mod --- the few users that have set markers are enjoying it and it makes them engage more with the site and helps build the sense of 'community'.

Added:
I can do it manually, by getting the user to change the 1 to a 6 in the BB code they paste into their signature (I can also do it via user profile in AdminCP).

caliman 11-04-2007 01:21 AM

Quote:

Originally Posted by Ambassador (Post 1371442)
change
PHP Code:

$db->query_first("SET NAMES 'utf8'"); 

to
PHP Code:

$db->query_first("SET NAMES 'utf8'"); 

or remove this two line

change in /includes/cron/vbgooglemapme_cron.php
PHP Code:

$text_file "<"."?"."xml version=\"1.0\" encoding=\"UTF-8\"""?"."><markers>\n"

to
PHP Code:

$text_file "<"."?"."xml version=\"1.0\" encoding=\"ISO-8859-1\"""?"."><markers>\n"

this work

Thanks buddy!

Mrdby 11-04-2007 01:36 AM

i want to add it to my navi..how would I do that?

yoyoyoyo 11-04-2007 01:59 AM

I am about ready to give up on this hack. I like the idea, but it is just too problematic and buggy. Can someone please post an updated product and files here for the benefit of everyone who can't get it working?

caliman 11-04-2007 03:01 AM

Add a link to your navbar template.

edward hamilton 11-05-2007 12:05 AM

I have installed this hack numerous times and have experienced many of the problems reported in previous posts.

I have had better luck by deleting references to utf8 in both
/includes/cron/vbgooglemapme_cron.php and /includes/functions_vbgooglemapme.php


The problem of missing markers appears to be related to the markers.xml file make sure the <markers> and </markers> tags are in tact.

Good Luck
Ed
http://ministryofrum.com

TotlKaos 11-05-2007 12:06 AM

Is there anyway to cache the information or speed up the display?
I have 3000+ users mapped and it takes a bit of time to draw all the
Pins. Just wondering!.. Great mod!!!

Russ

caliman 11-05-2007 12:19 AM

That would be nice Russ. Don't know.

Since this mod is not being developed anymore for a while now, does anyone else worry about XSS exploits that may exist with it?


My board was hacked recently thanks to an old flashchat so I am a wee bit paranoid lately.

TotlKaos 11-07-2007 09:53 AM

I see were Google added a new Marker Manager Control!
This will allow you to reduce the markers as needed with zoom levels.

i.e. only do 10 markers at zoom level 3
do 100 markers at zoom level 6
and 1000 markers at zoom level 8

Here is the code:

function setupMap() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.setCenter(new GLatLng(41, -98), 4);
window.setTimeout(setupWeatherMarkers, 0);
}
}

function getWeatherMarkers(n) {
var batch = [];
for (var i = 0; i < n; ++i) {
batch.push(new GMarker(getRandomPoint(),
{ icon: getWeatherIcon() }));
}
return batch;
}

function setupWeatherMarkers() {
mgr = new GMarkerManager(map);
mgr.addMarkers(getWeatherMarkers(20), 3);
mgr.addMarkers(getWeatherMarkers(200), 6);
mgr.addMarkers(getWeatherMarkers(1000), 8);
mgr.refresh();
}

If anyone has suggestions.. or if Stonyarc could let me know were to start on maybe putting this into the code. This would speed up the Display Maps for Large Sites!

Still a great mod!!!: eek:

Russ

yoyoyoyo 11-07-2007 11:01 AM

uninstalled - too buggy, no support - not worth the hassle

incisor 11-08-2007 02:57 AM

x2 i have to say

Riccardo83 11-08-2007 04:07 AM

my pins are dissappearing, then the other day u see them.. whats the problem?

Riccardo83 11-08-2007 04:41 AM

fixed it by viewing markers.xml in browser and saw the user who had a "&" in his image.

Edited USer and markers show up now.

IS THERE ANY FINAL FIX THAT REALLY WORKS?

MojoNixon 11-08-2007 08:09 AM

*hits uninstall*

Julrou 11-08-2007 08:12 AM

Same.

I really love this hack, but i'd really love it work correctly.

svenTThomsen 11-10-2007 02:16 PM

Same Problem :(
Using vB 3.6.4 the Installation works without Problems but after Installing the URL /vbgooglemapme.php only shows an empty page without anything :/

I created an account for the API and got my API code.
I already set the permissons for the markers.php
All Usergroups have their defined color
But it doesn't work anyway.

Neither IE nor Firefox are telling me faults.... There's just an empty page *damned*

Any idea what's wrong?

THX
Sven

TotlKaos 11-10-2007 08:04 PM

Did you check to make sure the proper usergroups have permissions?
You also have to set that up.. I think they are all denied by default..

Russ

svenTThomsen 11-11-2007 05:08 AM

Quote:

Originally Posted by TotlKaos (Post 1379950)
Did you check to make sure the proper usergroups have permissions?
You also have to set that up.. I think they are all denied by default..

Russ

Thank's for answering!
Yes, all Usergroups have their defined permisson.
Last night I installed the Mod again, but the result was the same :(

The files markers.php and vbgooglemapme.php are emty. That's the reason why the page is quit white, but i don't know why the files were not filled in.
Is it possible, that the cronjob doesn't work?
If I start the Cronjob manually, there's even no fault in the adminpanel.

Sven

TotlKaos 11-11-2007 11:25 AM

the markers file should be marker.xml in the root of the site.
Also make sure you change it to world writeable.. chmod 777
so that it can write to the file. vbgooglemapme.php should not be empty
that does not get changed at all during the cron..

Russ

zetetic 11-11-2007 04:47 PM

Quote:

Originally Posted by stonyarc (Post 1315104)
Can you try to test the query on a test database 'SET NAMES 'utf8';' in phpmyadmin.

Normally it should run fine. Otherwise please also check with your provider why running this isn't allowed.

What version are you running of Mysql.

I have this same problem. I can't execute SET NAMES 'utf8'; even manually in phpMyAdmin. I am using mySQL version 4.1.22.

ETA: Oops, client version is 4.1.22, but server version is 4.0.27-standard. I'll try upgrading to 4.1.x or 5.0.x and see what happens.

ETA2: Yup, upgrading MySQL Server to 4.1.22-standard fixed the problem.

yoyoyoyo 11-11-2007 05:32 PM

why are you guys struggling to get this mod working? it is buggy, and is not worth the effort in it's present state - give it up

zetetic 11-11-2007 05:42 PM

It seems to be working fine for me now, but I'll report back if I have any issues going forward.


All times are GMT. The time now is 07:06 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.02136 seconds
  • Memory Usage 1,845KB
  • 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
  • (8)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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