Yet another dangerous 'accessory' for your googlemap, from the reckless bulbasnore. If this destroys your map and your forum, its not my fault.
We have a need to let the displaygroupid determine the map pin color for registered members (groupid = 2). Here is the job we cron in order to do that:
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # 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 `googlemapme`, `user`
SET `googlemapme`.usergroupid = `user`.displaygroupid
WHERE `user`.displaygroupid > 0 AND `user`.usergroupid = 2 AND ( `googlemapme`.userid = `user`.userid )
");
log_cron_action('Set the googlemap userid to the displaygroup for registered users', $nextitem);
/*======================================================================*\
|| ####################################################################
|| # Version: 5:33, Wed May 2, 2007
|| ####################################################################
\*======================================================================*/
?>
If that helps you, by all means feel free to use it! If you don't know what this is, or how to install it, you are safer not to ask!
Regards,
'snore