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)

anonscape 01-21-2007 08:32 PM

This is an elementary question but I still haven't understood how this mod works yet.
Does a visitor/member of my forums have to signup/join/enter his/her location to then have the marker auto or manually approved before a pin/marker will show up on the map? If no one signed up with their info would the map be blank?

TIA

ethank 01-22-2007 05:50 AM

I installed this on 3.6.4, but not markers show. The XML file is updated, but the "loading" AJAX thing never indicates loading. When I go to edit my location, the pin shows.

http://www.murmurs.com/forum/vbgooglemapme.php

Any ideas?

photofreeway 01-23-2007 07:20 PM

This is all I get...
http://www.photofreeway.com/board/vbgooglemapme.php

Can I get some help as to why the map does not show? There is an error on tha page also.

made it readable for everyone ....
Thanks

photofreeway 01-25-2007 02:24 AM

Ok I marked as installed. Any support here at all?

Shazz 01-25-2007 04:05 AM

Quote:

Originally Posted by photofreeway (Post 1166774)
Ok I marked as installed. Any support here at all?

Well stonyarc hasen't been around for a while, Im sure when he does get back he will

akulion 01-25-2007 06:48 PM

Installed and worked like a charm even for a complete newbie like me!
Thank you so much for taking the time to produce such a quality and well explained product
aku

TheFrienzNet 01-26-2007 01:26 AM

Thanks, this modification looks great.

bulbasnore 01-27-2007 04:59 PM

OK, this is working pretty well in test for us on vB 3.6.4 (Apache2/PHP5/MySQL5/Linux). We have these exceptions:
- Picture display comes and goes. Sometimes scrolling the map helps?
- Some members don't see the pins or links above the on map certain computers.

My advice to those having complete problems (no display) is: recapitulate the install and make sure the cron task is working. That advice may be worth nothing. I can't support the add-on for you any further. As always, the more details you post, the more likely you are to get help. If it was me, I'd post: O/S, vB & add-on versions plus file locations uploaded, plus cron task log.

UM, anyway...

I was sorry to see Stonyarc gave up the avatar load for the pictures, though I could guess why. We have a PG-rated board and like to keep some control on the picture displays. Consequently, I hacked together the script below to ensure that the avatar pic is what is displayed for the vbgooglemapme pin image.

This might only work if you have set your avatars to be stored in your database as opposed to your filesystem. If you don't understand what that is, or the issues surrounding that choice, go to the vBulletin documentation and look it up before you go on.

OTOH, if someone can tell me I'm wrong about that, then, please hip me to the Truth!

Here's the script - you could destroy your database, so don't use it or my instructions unless you know what is happening in the code and take full responsibility for the consequences yourself!!!

Name it something like vbgooglemapme_avatars.php
Upload it to <your forum directory>/includes/cron

PHP Code:

/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2007 Kim Cary                                         # ||
|| # This file may be redistributed in whole or significant part.     # ||
|| # You could signficantly damage or destroy your board or computer  # ||
|| # with this file. Author will not be liable for any damages.       # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!
is_object($vbulletin->db))
{
        exit;
}
// ######################## END PHP ENVIRONMENT ###########################

        
$vbulletin->db->query_write("
                UPDATE " 
TABLE_PREFIX "googlemapme
                SET  `pimage` = concat(  'http://pokegym.net/forums/image.php?u=',  `userid` )
        "
);
        
log_cron_action('Add Avatars to vbgooglemapme picture field'$nextitem);

/*======================================================================*\
|| ####################################################################
|| # Version: 10:12, Sat Jan 27th 2007
|| ####################################################################
\*======================================================================*/ 

Once you've done that, you can set it up to test via a scheduled task, like the thumbnail below. If you set it up this way it will be disabled for schedules, but you can run it on demand for a test.

Now use the Scheduled Task Manager [Run Now] function in your admincp to run this task (because you assumed responsibilty, remember!!!). If you want to see whether it worked, run a sql query like this in your admincp sql query tool:

Code:

SELECT userid,pimage FROM googlemapme ORDER BY userid asc
You should see a list of userids and standard avatar URLs in the result. Of course, if you screw up the query you might have no database left.

If you like what you see, go back to the task in the scheduled task manager and enable it, but change the time you run it to the minute or more before you run Stonyarc's scheduled task.

To be clear again: You can wreck things playing around at this level. If you do, its YOUR fault. My code is NOT authorized by Stonyarc and frankly, I expect him to delete this post when he/she returns. For those who have the skills to deal with this, I hope this helps you. I've been helped so much be vb.org over the years.

MrD 01-28-2007 02:05 PM

Hi,
after Usergroupchange the Marker will not updated.
The rights in ACP are ok, but no Reacction.

photofreeway 01-29-2007 01:58 PM

hello and thanks for the support on this. Question: When you say "recapitulate the install" can you define what this means. sorry still kinda new with VB....

This is the error I get at the bottom of IE.
Line: 1071
Char: 35
error: Expected';'
Code: 0
URL: http://www.photofreeway.com/board/vbgooglemapme.php


Thanks Again



Quote:

Originally Posted by bulbasnore (Post 1168443)
OK, this is working pretty well in test for us on vB 3.6.4 (Apache2/PHP5/MySQL5/Linux). We have these exceptions:
- Picture display comes and goes. Sometimes scrolling the map helps?
- Some members don't see the pins or links above the on map certain computers.

My advice to those having complete problems (no display) is: recapitulate the install and make sure the cron task is working. That advice may be worth nothing. I can't support the add-on for you any further. As always, the more details you post, the more likely you are to get help. If it was me, I'd post: O/S, vB & add-on versions plus file locations uploaded, plus cron task log.

UM, anyway...

I was sorry to see Stonyarc gave up the avatar load for the pictures, though I could guess why. We have a PG-rated board and like to keep some control on the picture displays. Consequently, I hacked together the script below to ensure that the avatar pic is what is displayed for the vbgooglemapme pin image.

This might only work if you have set your avatars to be stored in your database as opposed to your filesystem. If you don't understand what that is, or the issues surrounding that choice, go to the vBulletin documentation and look it up before you go on.

OTOH, if someone can tell me I'm wrong about that, then, please hip me to the Truth!

Here's the script - you could destroy your database, so don't use it or my instructions unless you know what is happening in the code and take full responsibility for the consequences yourself!!!

Name it something like vbgooglemapme_avatars.php
Upload it to <your forum directory>/includes/cron

PHP Code:

/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2007 Kim Cary                                         # ||
|| # This file may be redistributed in whole or significant part.     # ||
|| # You could signficantly damage or destroy your board or computer  # ||
|| # with this file. Author will not be liable for any damages.       # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!
is_object($vbulletin->db))
{
        exit;
}
// ######################## END PHP ENVIRONMENT ###########################

        
$vbulletin->db->query_write("
                UPDATE " 
TABLE_PREFIX "googlemapme
                SET  `pimage` = concat(  'http://pokegym.net/forums/image.php?u=',  `userid` )
        "
);
        
log_cron_action('Add Avatars to vbgooglemapme picture field'$nextitem);

/*======================================================================*\
|| ####################################################################
|| # Version: 10:12, Sat Jan 27th 2007
|| ####################################################################
\*======================================================================*/ 

Once you've done that, you can set it up to test via a scheduled task, like the thumbnail below. If you set it up this way it will be disabled for schedules, but you can run it on demand for a test.

Now use the Scheduled Task Manager [Run Now] function in your admincp to run this task (because you assumed responsibilty, remember!!!). If you want to see whether it worked, run a sql query like this in your admincp sql query tool:

Code:

SELECT userid,pimage FROM googlemapme ORDER BY userid asc
You should see a list of userids and standard avatar URLs in the result. Of course, if you screw up the query you might have no database left.

If you like what you see, go back to the task in the scheduled task manager and enable it, but change the time you run it to the minute or more before you run Stonyarc's scheduled task.

To be clear again: You can wreck things playing around at this level. If you do, its YOUR fault. My code is NOT authorized by Stonyarc and frankly, I expect him to delete this post when he/she returns. For those who have the skills to deal with this, I hope this helps you. I've been helped so much be vb.org over the years.



All times are GMT. The time now is 03:26 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.01796 seconds
  • Memory Usage 1,807KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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