Category Archives: Customizations

Customizations related to Real estate agency portal

How to update script?

Usual guide is: extract all files except ”/files” folder and ”/application/config” folder and update database by running updater script: index.php/updater

Detailed steps:

1. Download new version on codecanyon

2. in this downloaded zip file remove folders ”/files” and ”/application/config”

Example how to do that with 7zip archiver program:

Screenshot_1

Screenshot_2

Upload this file and extract on cpanel where script is installed

Upload via FTP is not suggested because sometimes files are skipped.

If you skipped some updates then check this old guide: https://iwinter.com.hr/support/?p=172

We can also provide updating services for additional cost, you can request via support ticket.

Suggested PHP config

Regarding hosting providers, all our codes are tested on:

a2_hosting_logo

99.99% our clients use cpanel, this is best and most easier way to go

Everything else like custom servers just causing unpredictable unnecessary trouble for us and our clients, is very hard to support such clients.

Example php modules from our demo hosting:

bcmath,dom,fileinfo,gd,imap,tidy,xmlreader,xmlrpc,xmlwriter,xsl,zip,intl,json,mbstring,mcrypt,mysql,mysqli,opcache,pdo,pdo_mysql,phar,posix,soap,sockets

from php.ini this parameters are important:

* upload_max_filesize = 128M
* post_max_size = 128M
* max_execution_time = 5000
* max_input_time = 2000
* memory_limit = 512M
* max_input_nesting_level = 128
* max_input_vars = 10000
* output_buffering = 4096

How add or save listing property works?

This is only for very advanced developers who want to change some core features! Not for regular users!
If you need paid customization services please send request here:
You should understand codeigniter MVC:  https://codeigniter.com/userguide2/overview/mvc.html

Also check some articles in knowledge base like: http://iwinter.com.hr/support/?p=1288

So usually estate_m.php (method save) and controller estate.php method edit

Basic field details are defined in:

Screenshot_2

affected fields here:

Screenshot_3

Saving process:

Screenshot_1

 

 

Date Format / time zone

To change timezone:

Screenshot_1

list of supported: http://php.net/manual/en/timezones.php

Example for using custom date format on property.php template file:

<?php if(!empty($estate_data_option_37)): ?>
<p class="bottom-border">
<strong>Date:</strong>
<?php $date_variable = $estate_data_option_37; ?>
<?php echo date('j F Y', strtotime($date_variable)); ?>
</p>
<?php endif;?>

PHP documentation for date function: http://php.net/manual/en/function.date.php

37 is example field ID #, can be found in Admin->{listings}->fields

 

Custom search algorithm

We build search form and algorithm based on standard search logic. But this can also be customized.

PHP + MySQL knowledge is required for this.

Related file where algorithm can be found: application\models\estate_m.php , method filter_results

Example how to ignore all other fields when visitor search from smart search / location input field:

screenshot_2

With Firefox developer console (CTRL+Shift+K) you can detect field names used in this search algorithm, example:

screenshot_4

If you need some customization’s services, please follow this guide: http://iwinter.com.hr/support/?page_id=1870