eljailer
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Custom pdb-single template – edit linkOK, thank you for your response.
Forum: Plugins
In reply to: [Participants Database] Custom pdb-single template – edit linkThank you for your response. I followed your instructions and started with the built-in template without any alterations. The unaltered template is not causing issues.
Upon further investigation, it appears that the following code snippet is causing the problem:
<?php // Create a template object so we can get the edit link URL $record = new PDb_Template($this); // Now output the link using the get_edit_link method ?> <button class="btn btn-default uredi"> <a id="uredi" href="<?php echo $record->get_edit_link() ?>">Edit record</a> </button>When this snippet is present in the template, I encounter the error mentioned in my previous post. However, if I remove this snippet, the template works fine without any errors.
I would appreciate any guidance or insights on how to resolve this issue and successfully integrate the edit link functionality into the custom pdb-tabs template.
This code worked perfectly fine in the previous version of WordPress and the previous version of the Participants Database plugin. However, it seems to be causing issues in the latest versions.
Thank you for your attention to this matter.
Forum: Plugins
In reply to: [Participants Database] Single edit link, pdb signupThank you for your response.
I have thoroughly checked and ensured that everything is up-to-date, including WordPress core, plugins, and themes. Unfortunately, it appears that the issue lies within the custom pdb-tabs template itself (or PDB plugin?).Whenever I try to utilize the custom pdb-tabs template with the single edit link, an error is generated with the following message:
Warning: Undefined property: stdClass::$fields in G:\wamp64\www...\wp-content\plugins\participants-database\classes\PDb_Template.php on line 622.For your reference, this is the code snippet responsible for the single edit link at the end of the custom pdb-tabs template:
<?php // create a template object so we can get the edit link URL $record = new PDb_Template( $this ); // now output the link using the get_edit_link method ?> <button class="btn btn-default"> <a id="edit" href="<?php echo $record->get_edit_link() ?>">Edit Record</a> </button>Thank you for your attention to this matter.
Best regards,
ElvisForum: Plugins
In reply to: [Participants Database] Data from the record as a tooltipOK, thank you very much!
Forum: Plugins
In reply to: [Participants Database] Case sensitive filteringOkay,
thank you for your reply.Forum: Plugins
In reply to: [Participants Database] Case sensitive filteringThis is the actual code:
<div class="wrap <?php echo $this->wrap_class ?> "> <input type="checkbox" id="spoiler2" /> <label for="spoiler2" >Raniji posjeti</label> <div class="spoiler"> <?php $recidiv_prezime = $this->participant_values['prezime']; $recidiv_ime = $this->participant_values['ime']; $recidiv_dat_rod = $this->participant_values['datum_rodjenja']; echo do_shortcode( '[pdb_list fields="prezime,ime,datum_zaprimanja,status,datum_otpusta,napomena_otpust" filter="prezime=' . $recidiv_prezime . '&ime=' . $recidiv_ime . '&datum_rodjenja=' . $recidiv_dat_rod . '&u_ustanovi!DA" orderby="datum_zaprimanja" order="asc"]' ); ?>Forum: Plugins
In reply to: [Participants Database] Case sensitive filteringActually, the shortcode works.
This snippet is just an example, maybe I copied it wrong, sorry.
The idea is to show the visitor’s previous visits on the pdb-single page, in form of spoiler.
But the real problem is that this works only if the record’s name and last name are exactly the same – case sensitive.
Is the problem in the database collation?
The collation for those fields is utf8_croatian_ci.
Or am I really just missing the double quotes?
Thank you for your reply.Forum: Plugins
In reply to: [Participants Database] Emoji as a dropdown list optionThank you!
Thank you for your reply.
Forum: Plugins
In reply to: [Participants Database] User historyI was thinking something similar to Dynamic Hidden Fields.
Thank you for your reply.Forum: Plugins
In reply to: [Participants Database] Display PDF filesOK, thank you for answernig swiftly.
I purchased Image Expansion Kit yesterday.Forum: Plugins
In reply to: [Participants Database] How to duplicate record?Well, my php skills are not so good, but I managed to customize your plugin quite a lot, especially by following your tutorials and customization guides on your web site.
I’m still learning, but I think I could do this, but I surely need some help.
Could you please help and point me in right direction?
Thanks in advance!Forum: Plugins
In reply to: [Participants Database] How to duplicate record?Hello!
I’ve been away for a while, sorry.
I’m still trying to figure this out.
Well, the ID should be new, randomly generated, I suppose.
Any idea on that? Solving this would really be a lifesaver.
Thank you anyway!- This reply was modified 8 years ago by eljailer.
Forum: Plugins
In reply to: [Participants Database] How to duplicate record?The values will come from the pdb_single page.
Thank you for your replyThank you for your reply.
I made an error and it messed up pdb_list filtering.
It works now.
Thank you again!