OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Bug in "delete vehicle photos from gallery" ! (0 viewing) 

VehicleManager component support

Go to bottom Favoured: 0

Bug in "delete vehicle photos from gallery" !

agos83 (Visitor)
Posts: 0
graphgraph
User Offline
Bug in "delete vehicle photos from gallery" ! 14 Years, 6 Months ago
Karma: 0  
Hi,

there is a bug in "dele vehicle photos from gallery" functionality into the administrator section of VehicleManager. I solved it just editing the "admin.vehiclemanager.php" file and changing a query.
Tell me if you are interested in the solution and if I can publish it here directly.

Bye.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Bug in "delete vehicle photos from gallery" ! 14 Years, 6 Months ago
Karma: 102  
Please publish it, because as me seem we resolved it some time before

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
transpocar (Visitor)
Posts: 0
graphgraph
User Offline
hey administrator ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ 14 Years, 6 Months ago
Karma: 0  
Hey administrator.

I´ll send you the dutch translator. Maybe you dont like´t, but you should tell me something. You offer that if somebody help you with that, you will send de autos pro version. And seems that i will never here from you.

Besides, i cand help you with your poor spanish translation.


informacion@transpocar.com
Logged Logged
The administrator has disabled public write access.
agos83 (Visitor)
Posts: 0
graphgraph
User Offline
Re:Bug in "delete vehicle photos from gallery" ! 14 Years, 6 Months ago
Karma: 0  
In file: admin.vehiclemanager.php
there is the query:

$database->setQuery("DELETE FROM #__vehiclemanager_photos WHERE location='$del_photo'";

I look into the DB and the table actually does not contains the "location" column.

now, I've modified the query to best fit the table:

$del_photo_thumb = $del_photo_name."_mini".$del_photo_type;

$del_photo_full = $del_photo_name.$del_photo_type;

$database->setQuery("DELETE FROM #__vehiclemanager_photos WHERE thumbnail_img='$del_photo_thumb' AND main_img='$del_photo_full' AND fk_vehicleid IN (SELECT id FROM #__vehiclemanager_vehicles WHERE vehicleid=$numId)";

However, there is still an error in my query, as if you insert for a vehicle more than once the same photo... it will not work properly, it will remove all references to the photo and not only that you select from admin back end.

I'm now working on it, but I have no time in these days.

I hope this will be helpful.
Logged Logged
The administrator has disabled public write access.
agos83 (Visitor)
Posts: 0
graphgraph
User Offline
Re:Bug in "delete vehicle photos from gallery" ! 14 Years, 6 Months ago
Karma: 0  
Sorry,

naturally $numId is:

$numId=$_POST['vehicleid'];
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Bug in "delete vehicle photos from gallery" ! 14 Years, 6 Months ago
Karma: 102  
Hello,

Sorry, me seem we resolver that problems, may be not so good as you. Today i think we update version.

Sorry, not took any Dutch translation. If you will check - we haven't it yet. many request for translate but real translate not sent any body yet. So welcome.

Who send request for translate to language and took approve - will take Pro version after translate

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