• 1) Made it possible to edit information. Brought a shortcode on the page”<?php
    $current_user = wp_get_current_user();
    echo do_shortcode (‘[pdb_list filter=”cargo!,user_login=’ . $current_user – >user_login . ‘”fields =” cargo, wt, volume, citydownload, cityunloading, edit_link ” template=edit-link]”);
    ?> ” . The problem is, that now EVERY USER can edit all records in addition to their
    2) have two groups, the first group can be edited, and the second is empty, there is no information that can be changed

    • This topic was modified 6 years, 1 month ago by vipplayer.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The “edit-link” template does put an active edit link on all records. If you don’t want that, you’ll need to alter the template so that only records belonging to the currently signed in user have the edit link applied.

    Thread Starter vipplayer

    (@vipplayer)

    But before the problems with the update this was not. I stopped adding entries and the database had an error, I deleted the plugin, downloaded again and configured as it was, but Then everything worked OK, and now all users have access to editing and can not edit the second group. I read your documentation and found no difference from what I’ve done now

    Thread Starter vipplayer

    (@vipplayer)

    You see, it’s all about this code. `<?php
    $current_user = wp_get_current_user();
    echo do_shortcode(‘[pdb_list filter=”form_payment!, user_login=’ . $current_user->user_login . ‘” fields = “cargo,wt,volume,citydownload,cityunloading,edit_link” template=edit-link]’);
    ?> `
    I can put any value in [pdb_list filter="form_payment!,
    ! – treats empty fields, but outputs all records for editing from all users. If you remove such a field at all, then everything is fine, except that empty fields are displayed, which is ugly. What do I do please help

    • This reply was modified 6 years, 1 month ago by vipplayer.
    Plugin Author xnau webdesign

    (@xnau)

    I’ve done some testing with using filters such as this and it’s working as expected, so I don’t think there is any bug that is preventing this kind of filter in the list shortcode from working. Of course, it’s important to make sure there is no syntax error in the shortcode. Another thing to check is to turn the plugin debugging on, then look at the debug log after loading the list…this will tell you the database query that was used and that can sometimes help show what is wrong.

    Thread Starter vipplayer

    (@vipplayer)

    There’s nothing in the magazine. It’s just a shame that before I started to redo such a request worked perfectly, and now breaks and errors are not even visible. Okay, I’ll try a couple more things.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Errors’ is closed to new replies.