Hmm. That doesn't seem to make any difference at all to my menu?
I have devices in several countries, including the UK and USA, but it didn't seem to change anything oO
adam. On 05/08/2015 07:46:42, peter.hine@familycourt.gov.au peter.hine@familycourt.gov.au wrote:
"The problem is trying to find a one size fits all system." yes. if you like, try this. It results in the picture similar to the attached (one less menu depth for all of my locations at least). Check to see if other users like a different format.
(Embedded image moved to file: pic48520.gif)
for CE 0.15.6.6430 line 99 of /opt/observium/html/includes/cache-data.inc.php
replace the following 11 lines with the more complex set in the attached new.txt.(See attached file: new.txt) $cache['locations']['entries'][$device ['location_country']]['entries'][$device['location_state']]['count']++; $cache['locations']['entries'][$device ['location_country']]['entries'][$device['location_state']]['level'] = 'location_state';
$cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device['location_county']]['count']++; $cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device['location_county']]['level'] = 'location_county'; $cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device ['location_county']]['entries'][$device['location_city']]['count']++; $cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device ['location_county']]['entries'][$device['location_city']]['level'] = 'location_city';
$cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device ['location_county']]['entries'][$device ['location_city']]['entries'][$device['location']]['count']++; $cache['locations']['entries'][$device ['location_country']]['entries'][$device ['location_state']]['entries'][$device ['location_county']]['entries'][$device ['location_city']]['entries'][$device['location']]['level'] = 'location';
add the following two lines to config.php $config['location_countries_with_counties'] = array('gb'); $config['location_countries_with_counties_and_states'] = array('us');
and set the following if not already $config['location_menu_geocoded'] = TRUE; $config['geocoding']['api'] = 'google';
thanks
Peter Hine
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium