Category Archives: Real estate agency portal

How to set view-type on homepage to “list” by default instead of view “grid”?

Standard template doesn’t support this functionality. This template supports list view by default, most easier way is to use this template instead of default: https://codecanyon.net/item/real-estate-retro-template-03/13522785

This customization require PHP+HTML knowledge! If you are not familiar with PHP, please send your request to our customization services: http://iwinter.com.hr/support/?page_id=1870

For version >= 1.5.6:

It’s supported by default in theme: http://codecanyon.net/item/real-estate-retro-template-03/13522785

General guide for all templates:

Code to show list view can be found in:

templates\{your-template}\results.php, inside:

{has_view_list} all code in middle {/has_view_list}

This code can be copied into your template which one you using.

Usually this can be found in:

templates\{your-template}\widgets\center_recentproperties.php

Or if you want to customize bootstrap2 template then:

Open for example templates\bootstrap2-responsive\widgets\center_recentproperties.php, around line 29-41 replace this:

<?php foreach($results as $key=>$item): ?>
<?php
   if($key==0)echo '<ul class="thumbnails">';
?>
    <?php _generate_results_item(array('key'=>$key, 'item'=>$item)); ?>
<?php
   if( ($key+1)%4==0 )
    {
        echo '</ul><ul class="thumbnails">';
    }
    if( ($key+1)==count($results) ) echo '</ul>';
    endforeach;
?>

With this (from templates\bootstrap2-responsive\results.php):

<ul class="thumbnails">
<?php foreach($results as $key=>$item): ?>
  <li class="span12 li-list">
    <div class="thumbnail span4 f_<?php echo _ch($item['is_featured']); ?>">
       <h3><?php echo _ch($item['option_10']); ?>&nbsp;</h3>
       <img alt="" data-src=""  style="width: 300px; height: 200px;"  src="<?php echo _simg($item['thumbnail_url'], '260x191'); ?>" />
        <?php if(!empty($item['option_38'])):?>
        <div class="badget"><img src="assets/img/badgets/<?php echo _ch($item['option_38']); ?>.png" alt="<?php echo _ch($item['option_38']); ?>"/></div>
        <?php endif; ?>
        <?php if(!empty($item['option_4'])):?>
        <div class="purpose-badget fea_<?php echo _ch($item['is_featured']); ?>"><?php echo _ch($item['option_4']); ?></div>
        <?php endif; ?>
        <?php if(!empty($item['option_54'])):?>
        <div class="ownership-badget fea_<?php echo _ch($item['is_featured']); ?>"><?php echo _ch($item['option_54']); ?></div>
        <?php endif;?>
      <img class="featured-icon" alt="Featured" src="assets/img/featured-icon.png" />
     <a href="<?php echo _ch($item['url']); ?>" class="over-image"> </a>
    </div>
      <div class="caption span8">
        <p class="bottom-border"><strong class="f_<?php echo _ch($item['is_featured']); ?>"><?php echo _ch($item['address']); ?></strong></p>
        <p class="bottom-border"><?php echo _ch($options_name_2); ?> <span><?php echo _ch($item['option_2']); ?></span></p>
        <p class="bottom-border"><?php echo _ch($options_name_3); ?> <span><?php echo _ch($item['option_3']); ?></span></p>
        <p class="bottom-border"><?php echo _ch($options_name_19); ?> <span><?php echo _ch($item['option_19']); ?></span></p>
        <?php if(!empty($item['icons'])):?>
        <p class="prop-icons">
            <?php 
                foreach ($item['icons'] as $icon) {
                    echo $icon['icon'];
                }
            ?>
        </p>
        <?php endif;?>
        <p class="prop-description"><i><?php echo _ch($item['option_chlimit_8']); ?></i></p>
        <p class="prop-button-container">
        <a class="btn btn-info" href="<?php echo _ch($item['url']); ?>">
        {lang_Details}
        </a>

        <?php if(!empty($item['option_36'])):?>
        <span class="price"><?php echo _ch($options_prefix_36); ?> <?php echo _ch($item['option_36']); ?><?php echo _ch($options_suffix_36, ''); ?></span>
        <?php endif;?>

        <?php if(!empty($item['option_37'])):?>
        <span class="price"><?php echo _ch($options_prefix_37); ?> <?php echo _ch($item['option_37']); ?><?php echo _ch($options_suffix_37, ''); ?></span>
        <?php endif;?>

        <?php if(!empty($counter)): ?>
        <span class="res_counter">{lang_ViewsCounter}: <?php echo _ch($item['counter_views']); ?></span>
        <?php endif;?>
        </p>
      </div>
  </li>
<?php endforeach;?>
{/has_view_list}
</ul>

Additional you should change active class from grid to list link/icon, line around 4-5 in center_recentproperties.php

For older versions:

Open for example templates\bootstrap2-responsive\page_homepage.php, around line 123-162, replace this:

<li class="span3">
                <div class="thumbnail f_{is_featured}">
                  <h3>{option_10}&nbsp;</h3>
                  <img alt="300x200" data-src="holder.js/300x200" style="width: 300px; height: 200px;" src="{thumbnail_url}" />
                  {has_option_38}
                  <div class="badget"><img src="assets/img/badgets/{option_38}.png" alt="{option_38}"/></div>
                  {/has_option_38}
                  {has_option_4}
                  <div class="purpose-badget fea_{is_featured}">{option_4}</div>
                  {/has_option_4}
                  <a href="{url}" class="over-image"> </a>
                  <div class="caption">
                    <p class="bottom-border"><strong class="f_{is_featured}">{address}</strong></p>
                    <p class="bottom-border">{options_name_2} <span>{option_2}</span></p>
                    <p class="bottom-border">{options_name_3} <span>{option_3}</span></p>
                    <p class="bottom-border">{options_name_19} <span>{option_19}</span></p>
                    <p class="prop-icons">
                    {icons}
                    {icon}
                    {/icons}
                    </p>
                    <p class="prop-description"><i>{option_chlimit_8}</i></p>
                    <p>
                    <a class="btn btn-info" href="{url}">
                    {lang_Details}
                    </a>
                    {is_purpose_sale}
                    {has_option_36}
                    <span class="price">{options_prefix_36} {option_36} {options_suffix_36}</span>
                    {/has_option_36}
                    {/is_purpose_sale}
                    {is_purpose_rent}
                    {has_option_37}
                    <span class="price">{options_prefix_37} {option_37} {options_suffix_37}</span>
                    {/has_option_37}
                    {/is_purpose_rent}
                    </p>
                  </div>
                </div>
              </li>


With this (from results.php):

              <li class="span12 li-list">
                <div class="thumbnail span4 f_{is_featured}">
                  <h3>{option_10}&nbsp;</h3>
                  <img alt="300x200" data-src="holder.js/300x200" style="width: 300px; height: 200px;" src="{thumbnail_url}" />
                  {has_option_38}
                  <div class="badget"><img src="assets/img/badgets/{option_38}.png" alt="{option_38}"/></div>
                  {/has_option_38}
                  {has_option_4}
                  <div class="purpose-badget fea_{is_featured}">{option_4}</div>
                  {/has_option_4}
                  <a href="{url}" class="over-image"> </a>
                </div>
                  <div class="caption span8">
                    <p class="bottom-border"><strong class="f_{is_featured}">{address}</strong></p>
                    <p class="bottom-border">{options_name_2} <span>{option_2}</span></p>
                    <p class="bottom-border">{options_name_3} <span>{option_3}</span></p>
                    <p class="bottom-border">{options_name_19} <span>{option_19}</span></p>
                    <p class="prop-icons">
                    {icons}
                    {icon}
                    {/icons}
                    </p>
                    <p class="prop-description"><i>{option_chlimit_8}</i></p>
                    <p>
                    <a class="btn btn-info" href="{url}">
                    {lang_Details}
                    </a>
                    {is_purpose_sale}
                    {has_option_36}
                    <span class="price">{options_prefix_36} {option_36} {options_suffix_36}</span>
                    {/has_option_36}
                    {/is_purpose_sale}
                    {is_purpose_rent}
                    {has_option_37}
                    <span class="price">{options_prefix_37} {option_37} {options_suffix_37}</span>
                    {/has_option_37}
                    {/is_purpose_rent}
                    </p>
                  </div>
              </li>

Additional you should change active class from grid to list link/icon, line around 99-100 in page_homepage.php

How to add icon in the main menu like home icon?

You can enter small hack, something like this into your Admin->Edit wanted page->navigation title then:

<img src="assets/img/home-icon.png" alt="Home" />

If you want to hide it then in application\helpers\cms_helper.php, comment or remove this like:

$item['navigation_title'] = '<img src="assets/img/home-icon.png" alt="'.$item['navigation_title'].'" />';

 

How to setup default theme color style?

In script version >= 1.5.4 color can be selected in admin->settings->design template
Logout is required after that

For older script versions:

If you want to specify color, in ‘application/config/cms_config.php’ add line

$config['color'] = 'red';

If you need customization of specific color theme, css file is:

templates\bootstrap2-responsive\assets\css\styles_red.css

you can also add your own color like:

templates\bootstrap2-responsive\assets\css\styles_mycolor.css

Then you should also create marker folder, example:

/assets/img/markers/mycolor/

can be also empty, then default markers will be used

What are the differences between user and agent?

Live demo is available here: http://real-estate.iwinter.com.hr/index.php/frontend/login/en

Agent can be registered here (not public visible link): http://real-estate.iwinter.com.hr/index.php/admin/user/register

AGENT account is Backend agent, because using Backend part of design and security check.

USER account is also Frontend agent, because using Frontend part of design and security check.

AGENT username: agent
AGENT password: agent

USER username: user
USER password: user

Main differences:

AGENT is person of trust from company, login to backend, they don’t need wait to approve submission, and can set all options/fields of property, for example also badget (new, hot, top etc…)

USER is person not of trust, login only to frontend, need wait to approve submission from admin, and can’t set all propertiy options/fields, for example badget is not available.
Agents outside your company also should have that rule.

You want selection user/agent on frontend on registration (only available in real estate agency portal)?

This is not suggested, but if you really want, in cms_config.php add:

$config['dropdown_register_enabled'] = FALSE;

 

I skipped one update, what is the procedure now?

First of all please make a backup (zip all files and database export in phpMyAdmin)!

If you don’t want to risk or not familiar with tools like phpMyAdmin, I can also do this for additional price, just send me support ticket.

Please check out you script version, open file index.php and there you should find something like this:

define('APP_VERSION_REAL_ESTATE', '1.5.2 beta');

For script version >= 1.5.3:

Update instructions from version to version is available on item page, bottom:

http://codecanyon.net/item/real-estate-agency-portal/6539169

Usually it works this way:

Extract all files except ”/files” folder and ”/application/config” folder and update database by running updater script: index.php/updater

If you skipped updates then you should run updater few times to update database.

For older scipt version <1.5.3:

If you want to do it yourself:

Extract all files except:

  • ”/files” folder
  • “/application/config/production/database.php”
  • “/application/config/cms_config.php”

If you configure something additionaly, please then reconfigure this again in new files…

And update database, in phpmyadmin select database and import, for example if your version is 1.4.4 then you should update database by order starting from next version sql file (All files are available when you download new version from codecanyon):

update-1.4.5.sql
update-1.4.6.sql
update-1.4.7.sql
...
DON't RUN update-1.5.3.sql, there is different update instructions (easier), check out on item description page

There can be additional configuration betwen version, please check item description page bottom for details about update for each version…

If you receive any SQL error please don’t run same script again or skip version because you can have troubles in future. Error can be because of your new custom fields and something like that, then you should remove this fields…

In error situation, please send me your cpanel login details to check out what happens…

How to add Watermark / Stamp to images?

In file ‘application\libraries\UploadHandler.php’, line around 106, change from:

'watermark' => false

to

'watermark' => true

Watermark / Stamp image file is available: admin-assets\img\stamp.png

Watermark / Stamp will be added to new uploaded images.