+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Sellers phone number

  1. #11
    Quote Originally Posted by Niall Boylan View Post
    I used the following.

    <!-- show hide phone number -->

    <div id="flip" style=" cursor:pointer; background-image: url(http://www.cheapdeals.ie/images/phone-icon.png); background-repeat: no-repeat; margin-top: 15px; height: 48px; background-color: white; font-size: 16px; font-weight: bold; color: #666;">


    <div style="padding-top:12px; background-image:url(http://www.cheapdeals.ie/images/arrow-down.png); background-position:right; background-repeat:no-repeat; text-align:center;">Show Phone Number</div>
    </div>
    <div id="panel" style="height: 50px; background-color: white; font-size: 24px; font-weight: bold; color: #666;"><div style="margin-top:10px;"><a href="tel:{$listing_data.mobile|replace:'a:':''|re place:'n:':''|replace:'|':''}">Ph: {$listing_data.mobile|replace:'a:':'('|replace:'n: ':') '|replace:'|':''}</a></div></div>

    <!-- show hide phone numbere end -->

    I also used the following js.

    $(document).ready(function(){
    $("#flip").click(function(){
    $("#panel").slideToggle("slow");
    });
    });
    The code uses jquery but Flynax already includes jquery so there was no need to add it.
    Hi ....

    How can I hide the phone number ?
    the source code! I can not find the how i mast inserted ?

    Think you
    Last edited by nirvano; May 29, 2016 at 06:35 PM.

  2. #12
    Hi nirvano

    You have to make some changes to code before using it, and don't forget to change images link to your site link
    For Example i m using Text field for Phone number not Number field So i changed this part of Code:

    From
    Code:
    Only registered members can view the code.
    To
    Code:
    Only registered members can view the code.
    Take a look Here
    http://goo.gl/TgDWaV

    >>>Add this Jquery Code to --->templates/YourTemplate/js/libs.js<<<
    Just insert it here ---> libs.js

    Code:
    Only registered members can view the code.
    Just let me know when it work
    Last edited by Ameer Hassan; June 1, 2016 at 09:12 AM.

  3. #13
    Hi Ameer Hassan


    on which file I should change the code ?!
    I can not find the codes on files !

    Mr Victor can help us to realize this confige
    Last edited by nirvano; May 30, 2016 at 07:36 PM.

  4. #14
    You have to add it here:

    /templates/YourTemplate/tpl/blocks

    Go to Blocks ---> listing_details_sidebar.tpl Open it Edit

    *Find {rlHook name='listing_details_sidebar'}
    After it add this Code:-


    Code:
    Only registered members can view the code.

    *Then go to --->templates/YourTemplate/js/libs.js<<<
    Just insert it here ---> libs.js

    Add The code Bellow Anywhere at libs.js and you are Done.

    Code:
    Only registered members can view the code.

    Let me know when you are Done
    Last edited by Ameer Hassan; May 31, 2016 at 02:07 PM.

  5. #15
    think you Hi Ameer Hassan , for all descrption to add this option of nember phone

    I have what I must add
    But the phone number does not appear

    Untitled-2.jpg

  6. #16
    Hi Nirvano,

    you need to go to admin panel ---> Listings ---> listing field
    * Then fine the field for your phone number And get the Key and Replace it with word phone here which is my Key
    Code:
    Only registered members can view the code.
    phone.jpg

  7. #17
    Chkran Mr Ameer Hassan , I would like to thank you for all that you have made clarifications

    I noticed that the code developed by the example shown it's special for ads ( Listings ) But I want to put your code for ( Account Fields >Edit A Field > Phone )

    Sans titre.jpg


    It is unfortunate that I can not convince the team to make an update to change this option

    Thank you, Mr Ameer Hassan for everything you have done for everyone

  8. #18
    Hi nirvano,

    i think it is easy to make it work with account phone too , same idea

  9. #19
    lol.... finally I hid all with one button email and phone number ... it worked well

  10. #20
    Hi nirvano,

    Congratulation i m happy for you..

    You welome,

    Ameer
    Last edited by Ameer Hassan; June 4, 2016 at 09:13 PM.

+ Reply to Thread