cristch_27
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Add date the form elementGreat, then I’ll try to find a solution.
Forum: Plugins
In reply to: [Participants Database] Print selected records from the list.Thanks for the prompt reply Xnau.
My question was not about CSS / HTML rules, but how to get print the fields with the values of the database, such as printing the name value to function, object, or should I call Varialble.Name: Value of the field
Forum: Plugins
In reply to: [Participants Database] Template control panel for usersAt last. This is the solution I found and it works perfect.
To page the following short code
[pdb_list template=desktop]
And for the template.
<?php /* * * template for participants list shortcode output * * this is the default template which formats the list of records as a table * using shortcut functions to display the componenets * * If you need more control over the display, look at the detailed template * (pdb-list-detailed.php) for an example of how this can be done * * Please note that if you have more than one list on a page, searching, sorting * and pagination will not work correctly. * */ ?> <div class="wrap <?php echo $this->wrap_class ?>"> <?php global $current_user; get_currentuserinfo(); echo do_shortcode('[pdb_list filter="user_login=' . $current_user->user_login . '"]'); echo 'Username: ' . $current_user->user_login . "\n"; ?> </div>
Forum: Plugins
In reply to: [Participants Database] Template control panel for usersI made a copy and paste of code and still not working!!
Attached screenshot for better explanation
https://drive.google.com/open?id=0B2_uvBIKI8JJWTJoa3ZkMnhFTnM&authuser=0Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersThank you very much, but to help the community and publish a post will send it to manual.
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersForum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersForum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersTo summarize what I want to accomplish.
Create a template with the name pdb-desktop-list in which only registered users matching the record to edit the data they have stored.I have the solution you already public and explain but it does not work. Join the short code but does not return me any results, seeing the source code I manage to spot that the function is printed.
What I’m looking for another solution is to make the template.
Before you print the table I placed the code.<?php if($current_user->user_login == $record->value('user_login')){?> <table class=.....
And in the end
......</table> <?php } else { ?> <!-- here is a paragraph that is shown to anyone not logged in --> <p>Is necessary<a href="<?php home_url(); ?>/wp-register.php">registering</a>, to see your records.</p> <?php } ?>
Error screen.
Fatal error: Call to a member function value() on a non-object in…I appreciate your kind help if someone needs it or want to review I leave for future discussions.
Thanks for the help Xnau
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersIt would be good if I use it this way?
<?php if($current_user->user_login == $record->value('user_login')){?>
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersThis is possible?
<tbody> <?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?> <?php $record = new PDb_Template($this); ?> <tr> <?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?> <td class="<?php echo $this->field->name ?>-field"> <?php /* * put the edit link URL into the link property of the field */ if ($this->field->value('user_login') == ' . $current_user->user_login . ') { if ($this->field->name == 'edit_link') { $this->field->link = $record->get_edit_link(); } $this->field->print_value(); } ?> </td> <?php endwhile; // each field ?> </tr> <?php endwhile; // each record ?> </tbody>
Performing tests of these changes does not work because I do not know how to retrieve the value of the database belonging to user_login to make the comparison.
Error Message. Fatal error: Call to undefined method PDb_Field_Item :: value () in……
Forum: Plugins
In reply to: [Participants Database] User manage your recordsThak you
Forum: Plugins
In reply to: [Weekly Class Schedule] TranslationEstimado Rafael, yo también estoy siguiendo la tradución de es_ES y tampoco logro encontrar un repositorio.
Avísame si consigues colgar tu idioma