+ Reply to Thread
Results 1 to 6 of 6

Thread: [Contact Owner] - Reply to User, not to Admin

  1. #1

    [Contact Owner] - Reply to User, not to Admin

    Hi,

    I made some changes to rlMail.class.php, so when the Owner receive an email from a User, he can reply to the User email account and not to the Admin email account when he click the reply button in his inbox.

    I want to be sure that this modification is OK.

    In rlMail.class.php, find this:
    PHP Code:
    Only registered members can view the code
    And change it for this:
    PHP Code:
    Only registered members can view the code
    Right now, it is working good. In my site, visitors have to be registered before they can contact the owners.

    Thanks for feedbacks.

  2. #2
    Hi,

    How can I add the visitor phone to the message in rlMessage.class.php?

    I know I have to add the variable to the email template, but in the script how can I add the variable for phone?

    PHP Code:
    Only registered members can view the code
    Thanks!

  3. #3
    Hello Ivan,

    At first you should create text field in form. Then send this field to ajax method and then add new variable in function where . For example:
    function ajaxContactOwner($name = false, $email = false, $phone = false, $message = false, $code = false, $listing_id = false, $box_index = false)

    and add in the end new variable: $VISITOR_PHONE = false
    Viktor,
    Flynax technical department,
    Best wishes.

  4. #4
    Hi Viktor,

    I just created a new text field in form called 'visitor_phone', as you indicated. Then, I added it to this line with the $account_info['visitor_phone'] and it works!

    PHP Code:
    Only registered members can view the code
    I didn't have to add it to: function ajaxContactOwner

    Thanks!

  5. #5
    Hello Ivan,

    yes yes you are right you added it in 1 general array it is true. Good job, man.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Hey you are the master!

    I did some modification, so I can use the phone field that the system have already. The only problem was that it is in the database in this format: a:777|n:7777777|e:7777

    Here is my code in case someone need it:

    Add this:
    PHP Code:
    Only registered members can view the code
    And then add the variable $phone_visitor here:
    PHP Code:
    Only registered members can view the code

+ Reply to Thread