In versions >= 1.5.6:
Open file: templates\bootstrap2-responsive\widgets\head.php
In old versions:
Open file: templates\bootstrap2-responsive\components\head.php
Search for: var scrollWheelEnabled = false;
change to true
Open file: templates\bootstrap2-responsive\widgets\head.php
Open file: templates\bootstrap2-responsive\components\head.php
Search for: var scrollWheelEnabled = false;
change to true
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…
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.
'<br />Address: '+placeDetails.formatted_address+
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…
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…
Check out following screen for place where you can customize:
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':''; ?>
I using phpDesigner IDE to develop this application, so you should also use it and add project with root to script root folder.
In application\config\ cms_config.php add:
$config['reactivation_enabled'] = TRUE;
to:
$data[‘is_activated’] = 1;
Or you can search (CTRL+F) for $data[‘is_activated’] in that file…
Not suggested because of possible spamming disaster, but if you really wish:
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.
Only agent/owner can move listing out of expire date, if you want that admin also do that, then:
Buy it exclusive on codecanyon!
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));
After that you can execute your query, something like:
$this->db->where('id', $user->id);
$this->db->update('user', array('type' => 'AGENT'));
More details: http://www.codeigniter.com/
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
to:
$data[‘type’] = ‘AGENT';
You should search for “{homepage_url_lang}” and change it…
DBNAME: “mywebsite”DBUSER: “root”
DBPASSWORD: LEAVE EMPTYEDIT:We noticed XAMPP >=8.1.6 causing blank screen issuequickfix solution:after you extract zipedit application\config\production\database.phpthis change to false:
Juut replace current favicon icons…
templates/bootstrap2-responsive/assets/img/favicon.png
admin-assets/img/favicon/favicon.png
Add new language via admin:
Login to admin->Settings->languages->Add language->enter for example ‘russian’ and code to for example ‘ru’.
Your language code need to be in ISO format: http://www.sitepoint.com/web-foundations/iso-2-letter-language-codes/
Then translate everything, instructions here:
http://iwinter.com.hr/support/?p=156