How to remove "Booking a Property"

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

How to remove "Booking a Property"

Postby geeman » 12 Mar 2014, 21:46

Hello

I want to remove the link for "Booking a Property" i do not wish to use this function

Can i disable this in the admin dashboard or if not can you tell me which page i can alter so the link is not displayed

Many thanks for the great design

Gino
geeman
Stranger
 
Posts: 13
Joined: 12 Mar 2014, 21:43
Reputation point: 0

Re: How to remove "Booking a Property"

Postby fisher » 13 Mar 2014, 11:23

Hello! If I understand it right, you need to do this: in this file protected/modules/apartments/views/_view.php remove or comment the lines
Code: Select all
if(($data->owner_id != Yii::app()->user->getId()) && $data->type == 1){
    echo 
'<div>'.CHtml::link(tt('Booking'), array('/booking/main/bookingform''id' => $data->id), array('class' => 'apt_btn fancy')).'</div>';
fisher
Citizen
Citizen
 
Posts: 63
Joined: 15 Apr 2013, 09:30
Reputation point: 1

Re: How to remove "Booking a Property"

Postby geeman » 13 Mar 2014, 15:34

Hello thanks for the reply.

I did what you said but it does not seemed to have changed the home page link. I can still see the "Booking a property" link at the top.

What i want is when you enter the home page there are links across the top, one being "Booking a property", i want to completely disable this link so nobody can use it.

Hope i'm making sense

Also is there a way to disable the button link "Complain" when your looking at one of the listings, i would rather not use this if possible also.

Regards

Gino
geeman
Stranger
 
Posts: 13
Joined: 12 Mar 2014, 21:43
Reputation point: 0

Re: How to remove "Booking a Property"

Postby Xpycm » 13 Mar 2014, 16:47

Hello.
1) in this file protected\components\Controller.php remove or comment the lines:
Code: Select all
array('label' => '|'),
array(
    
'label' => tt('Reserve apartment''common'),
    
'url' => array('/booking/main/mainform'),
    
'visible' => Yii::app()->user->getState('isAdmin') === null,
    
'linkOptions' => array('class' => 'fancy'),
), 


2) in this file protected\components\Controller.php remove or comment the lines:
Code: Select all
if(issetModule('apartmentsComplain')){
    if(($data->owner_id != Yii::app()->user->getId())){ ?>
        <div>
            <?php echo CHtml::link(tt('do_complain''apartmentsComplain'), $this->createUrl('/apartmentsComplain/main/complain', array('id' => $data->id)), array('class' => 'fancy')); ?>
        </div>
        <?php
    
}
}
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: How to remove "Booking a Property"

Postby geeman » 13 Mar 2014, 18:02

Perfect thanks, i managed to do the first one, changing the "Booking a property" link but the second one, i could not find the details listed in the Controller.php file relating to removing the Complaints link/button, is it in the same Controller.php file?

Thank you very much

Gino
geeman
Stranger
 
Posts: 13
Joined: 12 Mar 2014, 21:43
Reputation point: 0

Re: How to remove "Booking a Property"

Postby fisher » 14 Mar 2014, 13:03

protected\modules\apartments\views\_view.php
fisher
Citizen
Citizen
 
Posts: 63
Joined: 15 Apr 2013, 09:30
Reputation point: 1

Re: How to remove "Booking a Property"

Postby micropub » 28 Jan 2016, 10:39

This worked fine for me but how do I remove the 'Booking a Property' button at the bottom of the page?
micropub
Stranger
 
Posts: 14
Joined: 15 Jan 2016, 11:40
Reputation point: 0

Re: How to remove "Booking a Property"

Postby andipas » 28 Jan 2016, 14:34

micropub wrote:This worked fine for me but how do I remove the 'Booking a Property' button at the bottom of the page?


In file - themes/atlas/views/layouts/main.php

delete
Code: Select all

                        <div class="footer_request_block">
                            <a class="link" rel="nofollow" href="<?php echo Yii::app()->createUrl('booking/main/mainform');?>"><?php echo tc('Reserve apartment');?></a>
                        </div>

andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Re: How to remove "Booking a Property"

Postby micropub » 29 Jan 2016, 09:13

Many thanks
micropub
Stranger
 
Posts: 14
Joined: 15 Jan 2016, 11:40
Reputation point: 0


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 43 guests