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.