tirsoliveira
Forum Replies Created
-
Forum: Plugins
In reply to: [Estatik Real Estate Plugin] Hide single property addressThank you very much for the reply.
We know about this configuration and that is the opposite of what we are trying to achieve.
Anyway thanks for the support. Is there a wishlist of features where we can add that request to the next versions of the plugin?Regards,
Tirso.
Forum: Plugins
In reply to: [Estatik Real Estate Plugin] Icons replacedSOLVED
I do use Firefox developer and a bunch of extensions to block advertising, cookies and stuff.
One of this extensions is called “privacy badger”, very good little thing that hides a lot of unwanted stuff.
BUTIt has also blocked this line:
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js?ver=5.7.2" id="es-clipboard-script-js"></script>
Which, by it’s turn, blocks the script that is called to add a new icon on the admin panel.
After I added my site as a “trusted site”, it’s working perfectly.Thank you all, weak a mask, be safe.
Tirso.
Forum: Plugins
In reply to: [Estatik Real Estate Plugin] Icons replacedGood morning, hope everybody is doing fine.
I’am also having problems with this update on the icons. I would like to add the garage spots on the front, as an icon, but when I click on the link to add a new icon, the link is pointing to the same page, as below. Please fix it.
This is the link on the “Add New”:
https://www.(removed for security).com/wp-admin/admin.php?page=es_settings#
Edit: on the file admin/classes/property-box-tab.php
there is no link to add the new icon.
The code around the line 29 looks like this:<a href="#" class="es-clone" style="margin-right: 10px;"><i class="fa fa-plus" style="margin-right: 5px;"></i><?php _e( 'Add new', 'es-plugin' ); ?></a>
I downloaded the files from your website. Basically that code will never work.
Please advise. My site is live.
Best Regards,
Tirso.- This reply was modified 3 years, 8 months ago by tirsoliveira.
- This reply was modified 3 years, 8 months ago by tirsoliveira.
Forum: Plugins
In reply to: [Estatik Real Estate Plugin] Uploading Listings Via CSV with multiple imagesHi there, I had the same problem, uploading multiple images for one single property, when importing the listings from a CSV file.
Long story short, I had a client which was using Joomla and wanted to go for WordPress.
After some research, we decided to go for Estatik, but we need to move all the existing listings to the new site.Basically, even with the PRO version of the plugin, this feature doesn’t work out-of-the-box. When importing, it does work for one single image per listing.
So I changed the code of the plugin in order to work. Here are the steps if you want to do the same:
1 – find following the file:
<root of your site>/wp-content/plugins/estatik-pro_(version)/admin/classes/import/class-import.php
2 – In this file, around the line 270, you will find the following code:case 'gallery': $file = array(); if ( empty( $item[$i] ) ) break; $file['name'] = basename( $item[$i] ); $file['tmp_name'] = download_url( $item[$i] ); if ( ! is_wp_error( $file['tmp_name'] ) ) { $attachmentId = media_handle_sideload($file, $_POST['post_id']); if ( $attachmentId ) { $meta[ $field ][] = $attachmentId; } } else { if ( $file['tmp_name'] instanceof WP_Error ) { $this->_logger->set_message( __( 'Image field', 'es-plugin' ) . ': ' . $file['tmp_name']->get_error_message(), 'warning' ); } } break;
3 – change it to:
case 'gallery': $file = array(); if ( empty( $item[$i] ) ) break; /* Get the input of the field "images" on the CSV file, assume that it should be several images separated by a COMMA, and converts it to an array; */ $arrImages = explode(',',$item[$i]); //Uncomment the line below if your images separator is a SEMICOLON and comment the line above! : // $arrImages = explode(';',$item[$i]); // Add a loop to interact over the array of images foreach ($arrImages as $key => $value) { /* Increase the time limit of php for a longer execution time, it's not guaranteed that is going to work on your hosting, depends a lot on your particular server configuration; */ set_time_limit ( 300 ); $file['name'] = basename( $value ); $file['tmp_name'] = download_url( $value ); if ( ! is_wp_error( $file['tmp_name'] ) ) { $attachmentId = media_handle_sideload($file, $_POST['post_id']); if ( $attachmentId ) { $meta[ $field ][] = $attachmentId; } } else { if ( $file['tmp_name'] instanceof WP_Error ) { $this->_logger->set_message( __( 'Image field', 'es-plugin' ) . ': ' . $file['tmp_name']->get_error_message(), 'warning' ); } } } //end of foreach; break;
4 – Save it, upload it back to your server, have fun importing.
Important remarks!!
1 – Worked for me, But I must say on thing: I had a .csv field with my columns separated by a SEMICOLON, because my Excel is Latin/Italian/Brazilian version, If your .csv file is on the American/English system, it probably will be with commas, so look at the code and adjust accordingly;
2 – I advise you to start with 5 properties with 5 or 8 images for each property, to test the TIMEOUT for your server. It takes a long time to import the images, upload and bind the images for your listing, so invariably it will crash, what matters is how many properties you can update before it crashes, so you can split your .csv file in order to do it in batches.
3 – If you have access to you php.ini, increase your max_execution_time variable to a higher number during the import process, it will help, than put it back to the normal 60/seconds or whatever it was before.