OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
MAP - default longitutidine and latitude (0 viewing) 

VehicleManager component support

Go to bottom Favoured: 0

MAP - default longitutidine and latitude

TECNOLOGIC (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
MAP - default longitutidine and latitude 11 Years, 1 Month ago
Karma: 0  
Good morning,
I bought Editions Vehicle Manager PRO package.
Can I set the default latitude and longitude for the location of vehicles?
Thk
Logged Logged
Last Edit: 2013/03/20 11:36 By TECNOLOGIC.
The administrator has disabled public write access.
grovian (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:MAP - default longitutidine and latitude 11 Years, 1 Month ago
Karma: 0  
You can do this in the sql database, that where i had to do it.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8243
graph
User Offline Click here to see the profile of this user
Re:MAP - default longitutidine and latitude 11 Years, 1 Month ago
Karma: 101  
Hello,

For now only as hardcode in file, or as default value to Database.

as hardcode you need both in files vehiclemanager.php

find function editVehicle

and after row with "$vehicle->load("

and add code some like below:
if($vehicle->vlatitude == "" ) $vehicle->vlatitude = "50";
if($vehicle->vlongitude == "" ) $vehicle->vlongitude = "35";

Please first backup both files

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»