*

Ivanko

  • ****
  • 321 posts
[Suggestion - Veronika] asterisks for required fields
« on: April 30, 2017, 08:15:12 PM »
It will be great to insert a condition if the field is required during posting an ad, then asterisks will be (true) after the world of required field.
Location * , Name * ...etc


*

MB Themes

Re: [Suggestion - Veronika] asterisks for required fields
« Reply #1 on: April 30, 2017, 09:02:33 PM »
@Ivanko
Thanks for suggestion, we will try to implement it in next release.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ivanko

  • ****
  • 321 posts
Re: [Suggestion - Veronika] asterisks for required fields
« Reply #2 on: April 30, 2017, 09:38:35 PM »
may be in this way, example for Phone in item-post.php

instead of :
Code: [Select]
<label for="phone"><?php _e('Mobile Phone''veronika'); ?></label>
use:
Code: [Select]
<label for="phone"><?php _e('Mobile Phone''veronika'); ?>
            <?php if(strpos($required_fields'phone') !== false) { ?>
            <span class="req">*</span>
            <?php ?>
            </label>

$required_fields has to be declared early and inserted above the form.
Code: [Select]
<?php $required_fields strtolower(osc_get_preference('post_required''veronika_theme')); ?>
« Last Edit: May 01, 2017, 07:40:34 AM by Ivanko »