All posts by sanljiljan

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

 

 

SEO slugs in classified script

Extra SEO module  can replace:
http://website.com/property/31/en/property_title with:

http://website.com/my-custom-slug.htm

This module is very server configuration
sensitive so no guarantee that will work on all servers.
But it is tested on https://www.a2hosting.com/refer/59624 and there works fine.

Guide to configure:

In application\config\cms_config.php add this lines:
$config['slug_enabled'] = TRUE;
$config['alt_enabled'] = TRUE;

Regarding nice SEO slugs:
and in slug.php you should change:
$script_folder = '/property-point/';
to your folder or use  '/' if your website was in root folder

additionaly, use htaccess_examples/slug.htaccess, move to www directory and rename to .htaccess

and in .htaccess you should change:
RewriteBase /property-point
to your folder name or leave only '/' if your website was in root folder.
mod_rewrite should be enabled without limitations on server for this...

In application\config\config.php you should have defined:
$config['index_page'] = 'index.php';

 

MySQLi version mismatch

Example issue:

Message: mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50550 Library:100029

Sounds like server issue. PHP and MySQL versions not compatible.

Try this solution: https://stackoverflow.com/questions/10759334/headers-and-client-library-minor-version-mismatch

If this is localhost try with:

For localhost, you can for example (Windows guide):
Install portable XAMPP Version 5.6.3
Create folder in (depends where you install xampp): C:\xampp\htdocs\mywebsite

Date Format

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