+ Reply to Thread
Results 1 to 5 of 5

Thread: Telefon Number format

  1. #1
    Member
    Join Date
    Nov 2018
    Posts
    42

    Telefon Number format

    Hello

    How I can change the telefon format?

    This format is for Amerika.
    In switzerland we have anthor format.

    How I can delete this clinch?

  2. #2
    Admin -> Listings -> Listing fields -> Telefon
    for example agent phone: /admin/index.php?controller=listing_fields&action=edit&fi eld=agent_phone

    There you can set phone format.

  3. #3
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Go to ftp > includes > classes > reefless.class.php > parsePhone

    find and change a piece of code from:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code

    XX-XXX-XXXXX format:

    PHP Code:
    Only registered members can view the code
    you can use any other symbol instead of -
    Last edited by Rudi; December 27, 2023 at 05:42 PM.

  4. #4
    I want to merge the phone number field into one whole field, and this code that I offer will work for me for this one, and do I need to make a change in the code of the site elsewhere?


    $phone = '';

    if ($field['Opt1'] && $out['code']) {
    $phone .= '+' . $out['code'] . '-';
    }

    if ($out['area']) {
    $phone .= "{$out['area']}-";
    }

    if ($out['number']) {
    $phone .= $out['number'] . '-';
    }

    if ($field['Opt2'] && $out['ext']) {
    $phone .= ' ' . $lang['phone_ext_out'] . $out['ext'];
    }

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    You need to use this code:
    PHP Code:
    Only registered members can view the code

+ Reply to Thread