How to enable cookie warning for EU?

In application\config\cms_config.php add:

$config['cookie_warning_enabled'] = TRUE;

Cookie warning message can be customized in file:

templates\bootstrap2-responsive\assets\js\cookiewarning4.js

For change message, open translate file, and find line with:

$lang['Accept cookiebar']

file: templates\{your-template-name}\language\{your-language}\frontend_template_lang.php

Add field / option manually via phpmyadmin

For WP themes or plugin version:

If you accidentally remove red locked option from the database and now you need it… Now can be added via phpMyAdmin only, SQL queries:

wp_ is database prefix, may be different based on your wp configuration.

80 is field id in such example for badge

INSERT INTO `wp_sw_field` (`idfield`, `parent_id`, `order`, `type`, `is_locked`, `is_table_visible`, `is_preview_visible`, `is_submission_visible`, `is_hardlocked`, `is_required`, `is_translatable`, `is_quickvisible`, `max_length`, `repository_id`, `image_filename`, `image_gallery`, `image_id`, `columns_number`) VALUES (80, NULL, NULL, 'DROPDOWN', '1', NULL, NULL, '1', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

and then:

INSERT INTO `wp_cp_4`.`wp_sw_field_lang` (`idfield_lang`, `field_id`, `lang_id`, `field_name`, `values`, `prefix`, `suffix`, `hint`, `placeholder`) VALUES (NULL, '80', '1', 'Badge', 'b1,b2,b3', NULL, NULL, NULL, NULL);

Then will appear like this:

Screenshot_3

For PHP scripts:

If you accidentally remove red locked option from the database and now you need it… Now can be added via phpMyAdmin only, SQL queries:

To add option:

INSERT INTO `option` (`id` ,`parent_id` ,`order` ,`type` ,`visible` ,`is_locked` ,`is_frontend` ,`is_hardlocked`
) VALUES ('4', '0', NULL , 'DROPDOWN', '1', '1', '1', '1')

To add translations for option:

INSERT INTO `option_lang` (`option_id`, `language_id`, `option`, `values`, `prefix`, `suffix`) VALUES
(4, 1, 'Purpose', 'Sale,Rent,Sale and Rent', NULL, ''),
(4, 2, 'Namjena', 'Prodaja,Najam,Prodaja i najam', NULL, '');

In this example we adding ID #4,  and 1,2 was languages ID.

Another example for translation with just one language:

INSERT INTO `option_lang` (`option_id`, `language_id`, `option`, `values`, `prefix`, `suffix`) VALUES
(8, 1, 'Short description', '', NULL, '');

In this example we adding ID #8,  and 1 was languages ID because now we have only one language.

By ID of course we mean original field ID which you need to restore.

example query for listing category in classified script:

Category have ID field 79, so based on guide add field with id 79 manually, type is TREE
example query:
INSERT INTO `option` (`id` ,`parent_id` ,`order` ,`type` ,`visible` ,`is_locked` ,`is_frontend` ,`is_hardlocked`
) VALUES ('79', '0', NULL , 'TREE', '1', '1', '1', '1')

To add translations for option:

INSERT INTO `option_lang` (`option_id`, `language_id`, `option`, `values`, `prefix`, `suffix`) VALUES
(79, 1, 'Listing Category', '', NULL, '');

 

How to earn / win some money with real estate script:

  1. With selling properties listing submission activation for visitors, Admin->Settings->Change price
  2. With selling property featured listing submission for visitors, Admin->Settings->Change price
  3. With adsense or simmilar network banners, Admin->Settings->change adsense codes
  4. With selling ad banners (I have additional modul for this, not available with standard script license)
  5. With paid packages for listing num limitation and days limitation (I have additional modul for this, not available with standard script license)
  6. With booking, reservation of apartments (I have additional modul for this, not available with standard script license)

You can receive money with PayPal or Cash

How to add Google translator widget to automatically translate your website?

Follow Google instructions here to create widget: https://translate.google.com/manager/website/

Code for head part is available in file, so place code there:

templates\bootstrap2-responsive\widgets\head.php

or in older script version:
templates\bootstrap2-responsive\components\head.php

And code for display best will be to replace current language menu, so in:

templates\bootstrap2-responsive\widgets\header_mainmenu.php

or in older script version:

  • templates\bootstrap2-responsive\components\header.php
  • templates\bootstrap2-responsive\components\header-filter.php
  • templates\bootstrap2-responsive\components\header-slideshow.php

Replace {print_lang_menu} in above files…

If you using other template you can search thru files for {print_lang_menu}, also some additional CSS corrections may be required.

How to add custom field to property preview page?

First you should add new field via your administration:
Admin->Real estate->Fields (You can see # part there, what is field ID)

Then you should add it to your template file property.php

{estate_data_option_#}

Where # represents field id / key of option

You can also use alternative PHP syntax, for example:

<?php if(!empty($estate_data_option_#))echo $estate_data_option_#; ?>

More details are available in documentation:

http://iwinter.com.hr/real-estate/documentation/#!/property_template

To add new category, most simple way is to just copy example code from another category and modify by your needs.

Or use this code example:

<?php

    $category_id = 1;

?>

<?php if(isset(${"category_options_$category_id"}) && ${"category_options_count_$category_id"}>0): ?>
<h3 class="page-header"><?php echo ${"options_name_$category_id"} ?></h3>
<div class="property-amenities clearfix">
    <ul>
        <?php foreach(${"category_options_$category_id"} as $key=>$row): ?>
        <?php if(!empty($row['option_value'])): ?>
            <?php if(count($row['is_text']) > 0): ?>
        
            <div class="panel-row"> 
                <p class="bottom-border"><strong><?php _che($row['option_name']); ?>:</strong> <span><?php echo _che($row['option_prefix']); ?> <?php echo _che($row['option_value']); ?> <?php echo _che($row['option_suffix']); ?></span><br style="clear: both;" /></p>
            </div>
            
            <?php elseif(count($row['is_dropdown']) > 0): ?>
            
            <div class="panel-row"> 
                <p class="bottom-border"><strong><?php _che($row['option_name']); ?>:</strong> <span class="label label-success"><?php echo _che($row['option_prefix']); ?> <?php echo _che($row['option_value']); ?> <?php echo _che($row['option_suffix']); ?></span><br style="clear: both;" /></p>
            </div>
            
            <?php endif; ?>
        <?php endif; ?>
        <?php endforeach; ?>
    </ul>
</div><!-- /.property-amenities -->
<?php endif; ?>

How to add custom field to registration form?

New script version (>= 1.6.0) support custom fields for user registration:
For serious customization’s, Programming skills required, or you can contact me for this customization (cost additionaly)!
*hints:
1. Add field to database table ‘user’
2. Add rules for that field in application\models\user_m.php, line 11, into array variable: $rules_admin
3. Add field to: application\controllers\admin\user.php, line around 162 into:
$data = $this->user_m->array_from_post(array(…
Same thing in: application\controllers\frontend.php, line 642, 1103, 1670 (three times)
4. Add field to: application\views\admin\user\edit.php, oko linije 180
5. Add field to: templates\bootstrap2-responsive\login.php, around line 250
5. Add field to: templates\bootstrap2-responsive\myprofile.php, around line 140

How to delete / remove hard / red locked fields / options?

All fields can be deleted but when it’s “hardlocked” then you should also change your template files manually (this is why it was hardlocked).
My suggestion is if you don’t like it to rename or change it, and not remove this locked fields.

If you really want to unlock those items, you need to know what you are doing, here is instructions:

Run this SQL query on your database via PhpMyadmin for example:
UPDATE `option` SET is_hardlocked=0

How to add dropdown to amenities?

Add field in administration and after that edit templates\bootstrap2-responsive\property.php, lines around 328-340 add red customization for outdoor amenities example:

                <?php if(isset($category_options_52) && $category_options_count_52>0): ?>
                <h2>{options_name_52}</h2>
                <ul class="amenities">
                {category_options_52}
                {is_checkbox}
                <li>
                <img src="assets/img/checkbox_{option_value}.png" alt="{option_value}" class="check" />&nbsp;&nbsp;{option_name}&nbsp;&nbsp;{icon}
                </li>
                {/is_checkbox}
                {is_dropdown}
                <li>
{option_name}: {option_value}
                </li>
                {/is_dropdown}
                {/category_options_52}
                </ul>
                <br style="clear: both;" />
                <?php endif; ?>

How to add custom field in search form?

For Property Listing and Hotel Booking Portal #02, and templates with visual forms support:

Please follow guide from template, like:

http://geniuscript.com/wbooking/user_guide_theme/#!/custom_search_form

For Real Estate Agency Portal script or manually build forms:

Depends on which template file you using, for example: templates\bootstrap2-responsive\components\search-filter.php line around 23, add additional input… (You should not copy paste from this website, but from your file and modify, because of possible “quote” formatting issues or changes in your script version)

Example to find FROM some number:

<input id="search_option_20_from" type="text" class="span2" placeholder="From bedrooms" />

Example to find TO some number:

<input id="search_option_20_to" type="text" class="span2" placeholder="To bedrooms" />

Example to find EQUAL, same number:

<input id="search_option_20" type="text" class="span2" placeholder="To bedrooms" />

For this situation example you also need to change field type to short input  in Administration…

Also very helpfully for customization is example search form, so check out code in this and other search form files: search-filter.php

For new inovative search form on right side:

Also templates\bootstrap2-responsive\components\search-filter.php and additional templates\bootstrap2-responsive\page_homepage-filters.php, lines 153-209, same field on 2 places, one time in above mentioned files.

NOTICE: Don’t removed top primary searchbar, this custom search can’t work without primary top, so you should restore top search. If you want to hide it you can hide via css (style=”display:none;”), but not remove completely from HTML!

For >=v1.5.4 If you want that textfield become numeric searchable you should add in database “property_lang” table, add
field_136_int in type int. Then resave all properties. 136 is example of field ID.

For >=v1.5.6 If you want that textfield become numeric searchable Admin->Real estates->Fields->Edit wanted and click on “Enable numeric filtering”:

Screenshot_1

After that you should resave all properties

For >=v1.5.7 right search form is moved to widget:

templates\bootstrap2-responsive\widgets\right_customfilter.php

 

 

 

How to remove english language?

  •  You can hide english language if this is enought for you (Admin->Settings->languages->Edit wanted)
  • You can rename english language to something else and translate (Admin->Settings->languages->Edit wanted)

You can remove it, but must be sure if you  translate everything on website to your other language before this.

If yes, then:
1. Just for security backup everything

2. Open phpMyAdmin and  run SQL:

UPDATE `language` SET is_locked=0 WHERE 1

3.  Now you can remove language from admin interface Admin->Settings->languages->Remove wanted language