Category Archives: Real estate agency portal

How to add more results items per page?

For standard result items:

In: templates\bootstrap2-responsive\config\template_config.php

$config['per_page'] = 8;

For agents pagination:

$config['per_page_agents'] = 6;

In older script versions:

In application\config\cms_config.php you can change above code.

For other foreach loops example:

This will only limit results, so other will be hidden.

screenshot_5

 

How to remove map, slider and search?

In version >=1.5.4:

Admin->Pages->Edit->change header template

In versions <=1.5.3:

Can be done with wanted template file customizations, just remove part of code that showing map/slider/search, for example on classic page_page.php located in folder: templates\bootstrap2-responsive, remove this part:

<input id="pac-input" class="controls" type="text" placeholder="{lang_Search}" />
<div class="wrap-map" id="wrap-map">
</div>

{template_search}

How to backup via cpanel?

Auto-backup via cpanel:

1. Login to your cpanel

2. Backups->Download a Full website backup

Manual-backup via cpanel or similar tool:

1. Login to your cpanel

2. (Backup database) Go to phpMyAdmin, select database, export:
phpmyadmin

3. (Backup files) Go to file manager from cpanel dashboard:
file-manager

Select folder where script is installed, all files inside and archive

file-manager-2

Download compressed file:
Screenshot_4

 

 

Custom import script guide

Import is a big problem, because all systems are different, don’t support same fields/parameters/languages, database structure is different, export formats also. So there is no universal solution for this. I will try to help you with building import bridge script here. (SQL/PHP/XML/CodeIgniter Skills are required).

Lets say that you already have your data in some PHP array or object (this fully depends on your custom data).

Now you want create bridge script that will import this data into real estate script database.

Continue reading

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

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':''; ?>