• Omi

    (@dekzgimutao)


    Hi,

    First of all, This plugin is very great.

    I would like to ask if how could we echo an ID to the TR for each field using the same ID inside the TD, Please see the sample below:

    <tr class="text-line">
    
              <th>First Name</th>
    
              <td id="pdb-first_name">
    
                <input type="text" name="first_name" class="required-field regular-text"   value="" />
    
              </td>
    
            </tr>

    Inside that <td id=”pdb-first_name”> there’s an ID available, how could we also use the same id above the tr <tr class=”text-line”> we would like to make it is we could edit the function and jquery behaviour of each field. SO in result we would like it to result in below code:

    <tr class="text-line" id="pdb-first_name">
    
              <th>First Name</th>
    
              <td id="pdb-first_name">
    
                <input type="text" name="first_name" class="required-field regular-text"   value="" />
    
              </td>
    
            </tr>

    Thanks, Looking forward for your response.

    http://wordpress.org/plugins/participants-database/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter Omi

    (@dekzgimutao)

    Hello,

    Just an update I have find a solution by making this line on default signup file:

    <tr class="<?php $this->field->print_element_class() ?>" id="<?php $this->field->print_element_id() ?>">

    Would this be good?

    Also can I ask how can I hide empty fields on sigle page for example here:

    yoursite.com/participant-information-single-page/?pdb=2

    There are fields for example that are not required. How could I only show the fields with values and been filled up? Also is it possible to add columns for viewing single pages of participants info? right now it only has 2 column. First column was for title and 2nd was the values.

    Thanks

    Plugin Author xnau webdesign

    (@xnau)

    You cannot have two elements with the same ID. It will break your javascript. You must take the id out of the td if you want it in the tr. Anyway, with jQuery, you don’t need to move the ID, you can just reference your tr with $('#id').closest('tr')

    If you want to hide empty fields the best way is to alter the template so that as it’s looping through the values, it skips to the next loop if the value is empty.

    Yes, of course it’s possible to place the data for a single record display into more columns, there are several ways to do it, but perhaps the easiest is to use CSS to float or inline the dl elements. Another approach would be to alter the template to lay the data out into columns instead of a single vertical column.

    Thread Starter Omi

    (@dekzgimutao)

    Thanks for the response xnau,

    I’ll take note of the jquery.

    Which file do I alter and not show empty fields if it has no value? Could I have a sample for it?

    Ok, once we are than with the entire fields I’ll be proceeding, we are building more than fourthy custom fileds, so if it would show all rows in single page of the participant even if it has empty fields, it would long very long.

    Thanks and God Bless

    Thread Starter Omi

    (@dekzgimutao)

    Also I’ve seen the pdb-single-default.php, and it mentioned on the description that the array could exclude name fields, but how would it be possible to exclude only the name fields which has empty fields? This would be really a great help Xnau.

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    In your single template, right after the line that has $this->the_field(), add something like this:

    if (empty($this->field->value)) continue;

    You were on the right track…this is doing the same thing as the line that checks the $exclude array, only it’s looking at the field value.

    Thread Starter Omi

    (@dekzgimutao)

    Wow thanks Xnau, great explanation! I’ve added the code if (empty($this->field->value)) continue; and it did worked perfectly. Thank you very much!

    Would this also be possible on exporting the csv data?

    Also I’ve seen a previous query about search function, could this be available on front end? Link displaying records and have search functionality above it? This would really be so much a great feature or I’m just missing something? how could I build custom function? Could I have a sample? For example only a single search field then it could simple look inside the database with names “social_security_number” and “Last_Name” once records related to search was found it would display the list like the list visible on admins list of participant page.

    Also on alternate option, is it possible to display the admin List participant page to front end? (http://yoursite.com/wp-admin/admin.php?page=participants-database-list_participants). This would also be a great feature, does it have shortcode so it could be displayed?

    Thanks Again, great and very powerful Plugin xnau.

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    You can enable a simple search function in the shortcode: [pdb_list search=true]

    Thread Starter Omi

    (@dekzgimutao)

    Wow, Big Thanks!

    can I ask if there is also a short code where I could put advance search like the advance search in the admin panel?

    Also, is there any changelog available on your next release? could I ask if how to enable the file upload option? Could I upgrade the plugin manually by transferring files that are changed and newly added (if any) could I ask what files are changed? This is really a perfect plugin that could be used entirely flexible with more than I can think of.

    Thanks again Xnau!

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    Yeah, I’m sorry, the search is very simple. For something more than that, custom code will be needed.

    If you want to try out the beta version, you should read the “call for beta testers” post at the top of the forum. Don’t try to upload files, it won’t work, you have to do the whole install.

    Thread Starter Omi

    (@dekzgimutao)

    Thanks Xnau,

    When would be the next version would be release? Would it be available automatically on the admin panel update once it is released? Can I ask which file do handle the fields being generated? Would it be possible if I change the current image upload to any file, just removing any paramaters that only accept image files? Would it be simple?

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    What you’ll find in the new release is a new field type that can accept any type of file as an upload. I’m working on the new release and it is very close. You will be notified in the admin when it is available.

    Thread Starter Omi

    (@dekzgimutao)

    Thanks Xnau,

    Looking forward for it Xnau.

    At moment can I know which file handle the fields? espcially the image upload field. Just want to know if where I could see the core code for the file and what I can do for the moment as were now on a production site.

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    Yes, you won’t be able to do it that way, you have to update the whole plugin all at once because the changes are all over the place, not just in one file.

    I recommend you set up a developments site and test the beta.

    Thread Starter Omi

    (@dekzgimutao)

    Thanks for the advice Xnau,

    I’ve tested the current beta version and received an header error upon signing up with the fields created through participants database, but when I refreshed all seems working well, I don’t know if it was just on my wordpress or it would be on the plugin. I’ll try it on another fresh install.

    Also can I ask Xnau, if all fields being generated was just for fields? On the next update does it have add button instead of just fields? Also it would be great if we could group the fields, just an idea.

    Looking forward for the next version. I’ll be testing the beta version again.

    Thanks and God Bless

    Plugin Author xnau webdesign

    (@xnau)

    The beta version is the next version, so it won’t be any different just some bugs fixed.

    Fields are grouped, go to the Manage Database Fields page and look for the “Field Groups” tab, you’ll see the groups that have been defined, you can define your own if you want. Each field is assigned to a group.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘tr ID set same as td ID’ is closed to new replies.