How to auto-integrate walker into other theme?

If you don’t want to each time when adding new property add shortcode this is solution for you:

Walker map can be auto-integrated into theme or plugin with some customizations:

You should investigate which template file generate property preview page and how to fetch coordinates, address and title ,then set it to variables:

$w_p_title , $gmap_lat, $gmap_long, $property_address

Here is example code to generate shortcode in template file:

<h4>Neighborhood places</h4>
<?php
$w_p_title = get_post_meta($post->ID, 'post_title', true);
$gmap_lat = $gmap_lat;
$gmap_long = $gmap_long;
$property_address = $property_address;

echo do_shortcode('[walker metric="km" latitude="'.$gmap_lat.'" longitude="'.$gmap_long.'" default_index="1"]'.$w_p_title.'<br />'.$property_address.'[/walker]');
?>

If you have issues or not familiar with “code” I can also try to do this for you for additional cost. If you are interested drop me email or open support ticket…

 

 

 

How to add custom payment gateway hints

We have additional payment module whit support for authorize.net, stripe and simple invoices for manual bank payments (cost 30 EUR).
If you are interested for this module please send me message to email: sanljiljan@geniuscript.com
Some hints to build custom payments module (not easy task, good PHP knowledge required):
You should add custom links/buttons for that payments in template files where you wish, for example:
templates\bootstrap2-responsive\myproperties.php
Most frontend payment functionality is under application\controllers\frontend.php, search for “do_purchase”
If you need some backend changes then this should help:
And this should be surely help you: http://iwinter.com.hr/support/?p=1288

Custom details on places infowindow

Details can be removed with simple customizations, part of code where content is generated:
wp-content\plugins\SW_Neighborhood_Walker\js\near_places_obj.js, line 321 or search for “placeDetails” and remove wanted, for example part: <a>….</a> if you want to remove link to details.

Regarding address, if you want to add more details etc…
Can be used like this:
'<br />Address: '+placeDetails.formatted_address+

How to hide option in admin for specific user?

View file is application\views\admin\estate\edit.php, you should detect lines based on option type. For example if you changing for TEXTAREA (long input) then line 162…

You can for example add class hide  into:

<div class=”form-group”>

So replace it with omething like that:

<?php if($this->session->userdata('username') != 'sandi' && $val_option->id == 73): ?>
<div class="form-group hide">
<?php else: ?>
<div class="form-group">
<?php endif; ?>

In this case only user with username sandi will see option 74 field when edit property in administration…

How to change pseudo variables to php variables in template files?

Pseudo variables in standard codeigniter template variables: http://www.codeigniter.com/user_guide/libraries/parser.html

This is instructions:

{last_estates}
{/last_estates}

Should be changed to this:

<?php foreach($last_estates as $item): ?>
<?php endforeach(); ?>

And variables inside like:

{thumbnail_url}

Should be changed to:

<?php echo $item['thumbnail_url']; ?>

This for example:

{has_option_36}
{/has_option_36}

to:

<?php if(empty($item['option_36'])): ?>
<?php endif; ?>

To be hanest, I will change all pseudo variables in future to real PHP variables because cause only problems when somebody like you want to customize something, format something differently etc…

How to define specific field as required?

This is currently possible with customization only, but something like that is also on todo list so will be available in future.

For frontend property submission customization can be added to:
templates\bootstrap2-responsive\editproperty.php, lines around 380.
Most simple example can be found here:
http://www.w3schools.com/tags/att_input_required.asp

Andif you want for specific ID, then you can use something like this:
<?php echo ($val_option['id']==5)?'required':''; ?>

How to change default auto activation?

if you want auto reactivation after update listing

In application\config\ cms_config.php add:

$config['reactivation_enabled'] = TRUE;

For listings:

Open application\controllers\frontend.php, line around 1264 depends on your version, change from:
$data[‘is_activated’] = 0;

to:
$data[‘is_activated’] = 1;

Or you can search (CTRL+F) for $data[‘is_activated’] in that file…

For quick submission:

Not suggested because of possible spamming disaster, but if you really wish:

Screenshot_1

For users registration:

You can enable email activation:

In application\config\cms_config.php you can add:
$config['email_activation_enabled'] = TRUE;

If you wish to customize this functionality, then open:

application\controllers\frontend.php

and search for “email_activation_enabled”, should be line around 1963 depends on your version. PHP knowledge is required for customization.

Admin reactivation?

Only agent/owner can move listing out of expire date, if you want that admin also do that, then:

Screenshot_17

If you need our customization services, guide:

http://iwinter.com.hr/support/?page_id=1870

Demo Neighborhood Walker plugin

Buy it exclusive on codecanyon!

Demo for Slovenia  (Europe) example:

46.4199535
15.8696884
My demo location example…
2000
WALKING
km
en
15
100%
4
400px
Distance
Address
Walking time
min
Details

Demo for India example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
india, nagpur
4
400px
Distance
Address
Walking time
min
Details

Demo for Sri Lanka example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
Colombo, Sri Lanka
4
400px
Distance
Address
Walking time
min
Details

Demo for Portugal example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
Portugal, Amadora
4
400px
Distance
Address
Walking time
min
Details

 

Tehnical documentation

How to center watermark on images?

This is currently possible with customization:

In script version 1.5.5.:

Open file application\libraries\UploadHandler.php, lines around 383:
search for $watermark_centered = FALSE; and change to TRUE

In script versions <= 1.5.4. :

Open file application\libraries\UploadHandler.php, lines around 375, or search for “$sy = imagesy($stamp);”.

There you should change existing  code with something like:

// Set the margins for the stamp and get the height/width of the stamp image
//$marge_right = 10;
//$marge_bottom = 10;
//$sx = imagesx($stamp);
//$sy = imagesy($stamp);
// center watermark on the photo
$wx = (imagesx($new_img)/2)-(imagesx($stamp)/2);
$wy = (imagesy($new_img)/2)-(imagesy($stamp)/2);
//$success = $success && imagecopy($new_img, $stamp, imagesx($new_img) – $sx – $marge_right, imagesy($new_img) – $sy – $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp));
$success = $success && imagecopy($new_img, $stamp, $wx, $wy, 0, 0, imagesx($stamp), imagesy($stamp));

How to change default user type on registration?

This is not suggested but if you really want…

In script version for real estate > 1.6.0 you can in cms_config.php add:

$config['dropdown_register_enabled'] = TRUE;

General customization hints:

First of all you need to read this: http://iwinter.com.hr/support/?p=174

AGENT by default can be registered on that link for example: http://real-estate.iwinter.com.hr/index.php/admin/user/register

If you really want to do this, you can customize default user type:
$data[‘type’] = ‘USER';

to:
$data[‘type’] = ‘AGENT';

in file: application\controllers\frontend.php, use search tool, CTRL+F

How to install script on localhost?

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
Extract archive to: C:\xampp\htdocs\mywebsite (Use 7zip, issues are possible with some archivers)
Create empty file: C:\xampp\htdocs\mywebsite\install.txt
Run XAMPP, Apache and MySQL
In browser open phpMyAdmin: http://localhost/phpmyadmin/
Databases->Create new “mywebsite” as attached screen
Run script installation: http://localhost/mywebsite
If you have blank screen issue, try this: http://iwinter.com.hr/support/?p=7819
If no then just enter your wanted details and for database:
DBNAME: “mywebsite”
DBUSER: “root”
DBPASSWORD: LEAVE EMPTY
create-database
EDIT:
We noticed XAMPP >=8.1.6 causing blank screen issue
quickfix solution:
after you extract zip
edit application\config\production\database.php
this change to false:
Screenshot_1