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
TOPIC: MAP - default longitutidine and latitude
#7415
TECNOLOGIC (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
MAP - default longitutidine and latitude 3 Years, 8 Months 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.
#7423
grovian (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:MAP - default longitutidine and latitude 3 Years, 8 Months 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.
#7445
admin (Admin)
Admin
Posts: 4869
graph
User Offline Click here to see the profile of this user
Re:MAP - default longitutidine and latitude 3 Years, 8 Months ago Karma: 61  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?