Send Message form

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.

Send Message form

Postby Ashwini » 13 Feb 2016, 15:12

how to include "Send message" form in property details page , without including pop up link of "Send Message"..
Ashwini
Passer
 
Posts: 44
Joined: 03 Aug 2015, 12:41
Reputation point: 0

Re: Send Message form

Postby Koduc » 18 Feb 2016, 14:48

You can place following code to file /themes/<theme>/views/modules/apartments/views/view.php:
Code: Select all
<?php
    
echo '<div id="send-message" data-href="'.$model->getUrlSendEmail().'"></div>';
    
Yii::app()->clientScript->registerScript('ajax-messages''
        $.ajax({
            method: "get",
            url: $("#send-message").data("href"),
            success: function(result){

                $("#send-message").html(result);
            }
        });
    '
CClientScript::POS_READY);
?>
-- Меньше знаешь - крепче спишь --
User avatar
Koduc
Team lead
Team lead
 
Posts: 64
Joined: 28 Dec 2011, 09:11
Reputation point: 0

Re: Send Message form

Postby Ashwini » 27 Feb 2016, 15:27

thanks for reply ,
for using this code , header and footers also included in my div.. but i want include only form of send message.
Attachments
Capture.PNG
Capture.PNG (155.05 KiB) Viewed 7774 times
Ashwini
Passer
 
Posts: 44
Joined: 03 Aug 2015, 12:41
Reputation point: 0

Re: Send Message form

Postby andipas » 29 Feb 2016, 11:58

This is a paid customization. Please kindly leave your message on our contact us form.
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 8 guests

cron