*

rooman

  • ****
  • 231 posts
Mobile number display problem
« on: July 14, 2022, 01:23:43 PM »
Hello,
The user does not want to show the mobile number inside the ad
Why does it appear here
What is the use of the option not to show the number inside the ad?
Thanks

*

mwindey

  • *****
  • 478 posts
Re: Mobile number display problem
« Reply #1 on: July 14, 2022, 02:20:30 PM »
@rooman

If you don't want to show users phone just delete this part in item.php
Code: [Select]
              <?php if($user_phone_mobile_data['found']) { ?>
                <a class="phone-mobile phone <?php echo $user_phone_mobile_data['class']; ?>" title="<?php echo osc_esc_html($user_phone_mobile_data['title']); ?>" data-prefix="tel" href="<?php echo $user_phone_mobile_data['url']; ?>" data-part1="<?php echo osc_esc_html($user_phone_mobile_data['part1']); ?>" data-part2="<?php echo osc_esc_html($user_phone_mobile_data['part2']); ?>">
                  <i class="fas fa-phone-alt"></i>
                  <span><?php echo $user_phone_mobile_data['masked']; ?></span>
                </a>
              <?php ?>

              <?php if($user_phone_land_data['found']) { ?>
                <a class="phone-land phone <?php echo $user_phone_land_data['class']; ?>" title="<?php echo osc_esc_html($user_phone_land_data['title']); ?>" data-prefix="tel" href="<?php echo $user_phone_land_data['url']; ?>" data-part1="<?php echo osc_esc_html($user_phone_land_data['part1']); ?>" data-part2="<?php echo osc_esc_html($user_phone_land_data['part2']); ?>">
                  <i class="fas fa-phone-alt"></i>
                  <span><?php echo $user_phone_land_data['masked']; ?></span>
                </a>
              <?php ?>

*

rooman

  • ****
  • 231 posts
Re: Mobile number display problem
« Reply #2 on: July 15, 2022, 03:09:12 PM »
@rooman

If you don't want to show users phone just delete this part in item.php
Code: [Select]
              <?php if($user_phone_mobile_data['found']) { ?>
                <a class="phone-mobile phone <?php echo $user_phone_mobile_data['class']; ?>" title="<?php echo osc_esc_html($user_phone_mobile_data['title']); ?>" data-prefix="tel" href="<?php echo $user_phone_mobile_data['url']; ?>" data-part1="<?php echo osc_esc_html($user_phone_mobile_data['part1']); ?>" data-part2="<?php echo osc_esc_html($user_phone_mobile_data['part2']); ?>">
                  <i class="fas fa-phone-alt"></i>
                  <span><?php echo $user_phone_mobile_data['masked']; ?></span>
                </a>
              <?php ?>

              <?php if($user_phone_land_data['found']) { ?>
                <a class="phone-land phone <?php echo $user_phone_land_data['class']; ?>" title="<?php echo osc_esc_html($user_phone_land_data['title']); ?>" data-prefix="tel" href="<?php echo $user_phone_land_data['url']; ?>" data-part1="<?php echo osc_esc_html($user_phone_land_data['part1']); ?>" data-part2="<?php echo osc_esc_html($user_phone_land_data['part2']); ?>">
                  <i class="fas fa-phone-alt"></i>
                  <span><?php echo $user_phone_land_data['masked']; ?></span>
                </a>
              <?php ?>

Thank you
I am really a big fan of this wonderful forum
As well as the products
The purpose of my question
  It is to improve template errors and come up with an excellent template
thank you :)

*

MB Themes

Re: Mobile number display problem
« Reply #3 on: July 18, 2022, 07:52:42 AM »
 :-*
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots