Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This will be very difficult because those values will need to be parsed into timestamps so they can be compared. Why can’t you use a date field?

    Thread Starter alexdex

    (@alexdex)

    Hi, i would like to switch the value from text field to data field but i lost all the old value because i import a access db. I try to make it but all the value change to the day of today. I could i solve it?
    Thank you

    Plugin Author xnau webdesign

    (@xnau)

    It is not easy once the data has been imported. It is best to convert your data before importing: you can use your spreadsheet program to translate values into the correct format for the plugin.

    So, it may be easier to import your records again, but before you do that make your changes to the data so it will be imported correctly. A date can be imported in the format DD/MM/YYYY and the plugin will convert it—but only if the plugin field has been defined as a date field first. So you must also correctly define all your plugin fields before importing. You can also import date fields as a UNIX timestamp.

    If you have new records that you added since importing the old ones, you can export those records, then add them to the old data in the spreadsheet. Then when you import, your new records will be included.

    You will have to delete all the records from the plugin before you import them again.

    I hope this helps…it is tricky, so keep trying, it is possible for it to work the way you want.

    Thread Starter alexdex

    (@alexdex)

    Thank You very much
    It seems work now. Great!

    The only problem is that the new date value disappear if i insert in my template (pdb_list_default.php) at line 165 this code for have the private_id link clicable

    /* <?php if ($this->field->name == ‘private_id’) {
    $record_page = get_permalink($this->options[‘registration_page’]);
    $private_link = $record_page . (strpos($record_page,’?’) ? ‘&’ : ‘?’ ) . http_build_query(array(‘pid’=>$this->field->value));
    $this->field->value = sprintf(‘%s‘,$private_link,’Edit’);*/

    I need this modify, how can i solve it?

    Thanks a lot

    Plugin Author xnau webdesign

    (@xnau)

    OK, I can’t see if you got the sprintf correct…it should be <a href="%s">%s</a>

    Also, you need the close bracket…}

    Thread Starter alexdex

    (@alexdex)

    Yes it is the same

    Thread Starter alexdex

    (@alexdex)

    hi now function. I do not understand how can allowed user to choose the comparison operator ( =,<,>, contains etc…) I cannot use in the shortcode, i need for a user that have possibility for make this search.
    It is very important, now function well only in the backend

    Plugin Author xnau webdesign

    (@xnau)

    This can only be done by coding your own search function, it’s not possible using the plugin user search.

    If you look at the pdb-list-detailed.php template, you will see how the parts of the search from are constructed, you can create your own using it as a starting point.

    Thread Starter alexdex

    (@alexdex)

    Thank you so much for your big support.
    I try to make it and i inform you later. I try also to create more search dropdown filter for across the search (frontend for user) but it is not so simple

    Best

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Search Frontend Between’ is closed to new replies.