OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
add field in the "photos and doc" tab (in backend) (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Add field in the "photos and doc" tab (in backend)

Magali (User)
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
add field in the "photos and doc" tab (in backend) 9 Years, 3 Months ago
Karma: 0  
Hi,

I want add a field in the "photos and documents" tab, in backend.

I modify in realestatemanager.html.php (administrator), this code
Code:


<input type="checkbox" name="del_photos[]" value="<?php echo $house_photos[$i][0]; ?>" />
<img src="<?php echo $mosConfig_live_site . "/components/com_realestatemanager/photos/" . $house_photos[$i][1]; ?>" style="height:100px;" alt="no such file"/> &nbsp
<input class="inputbox" type="text" name="position_photo" id="position_photo" value="<?php echo $house_photos[$i][2]; ?>" style="width:40px" />


I add "inputbox" "position_photo".



And i add in rem_photos database, the column "position".



But when I complete the fields in the backend, it does not register in the database.

I tried to add queries "update" in the file realestatemanager.php (administrator). But unsuccessfully. It only works when I complete directly the database via phpmyadmin.

Can you help me ?
Logged Logged
Last Edit: 2015/08/27 15:54 By Magali.
The administrator has disabled public write access.
AnnaZh (Admin)
Admin
Posts: 226
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Location: Kharkov, Ukraine
Re:add field in the "photos and doc" tab (in backend) 9 Years, 3 Months ago
Karma: 7  
Dear Beltran,

Could you send us Admin and FTP access using our Contact form,
and we will check your problem on your website.

Admin access:
link on the website
username
password

FTP access:
FTP host
FTP username
FTP password

Thanks,
Anna
ordasoft.com
Logged Logged
The administrator has disabled public write access.
Magali (User)
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Re:add field in the "photos and doc" tab (in backend) 9 Years, 3 Months ago
Karma: 0  
Hello,

This is not a problem, but an improvement that I wish to bring to the component.

Thanks
Logged Logged
The administrator has disabled public write access.
Magali (User)
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Re:add field in the "photos and doc" tab (in backend) 9 Years, 3 Months ago
Karma: 0  
We wish to manually assign the order of our photos.

So I added in the SQL database the field "position", and tag "input" in the file realestatemanager.html.php (admin).

But I can't make the database to be updated when I complete the box in joomla admin.

I think that I have to put a SQL request "UPDATE" in the file realestatemanager.html.php (admin), can be in the function "savehouse", but it doesn't work.

Then I'll have to modify the query like this :
Code:

$query = "SELECT main_img FROM #__rem_photos WHERE fk_houseid='$house->id' ORDER BY id"; 

=>
Code:

$query = "SELECT main_img, position FROM #__rem_photos WHERE fk_houseid='$house->id' ORDER BY position"; 


So that pictures are displayed in according to their position number.

Thanks
Logged Logged
Last Edit: 2015/08/29 09:54 By Magali.
The administrator has disabled public write access.
AnnaZh (Admin)
Admin
Posts: 226
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Location: Kharkov, Ukraine
Re:add field in the "photos and doc" tab (in backend) 9 Years, 3 Months ago
Karma: 7  
Dear Beltran,

Thank you for trying to improve our component. We will consider adding ordering of images in our next version of Real Estate Manager.
This functionality is not included in REM v.3.0. If you want to make some customization with our help, you have to write via our contact form your exact requirements and we will give a quote for custom work.

Best Regards,
Anna
ordasoft.com
Logged Logged
The administrator has disabled public write access.
Go to top
»