• Resolved mabong

    (@mabong)


    Hi all, Is there any way that i can do to disable or hide the “ALL TABLE” menu tab?

    tablepress

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    It looks like you are on a table’s “Edit” screen here? Could you maybe elaborate what exactly you are trying to achieve?
    The access capability that’s behind this is required for the menu to be generated, but I could imagine a way to hide it with CSS code (the URL would however still work).

    Regards,
    Tobias

    Thread Starter mabong

    (@mabong)

    Hi TobiasBG,

    Thanks a lot for your reply, im preparing tables for my colleagues which everyone’s table shld only view and update data on his/her own table ONLY, i have set in capability and it works that only allowed user can see the “edit” button and update his/her own table. But the problem now once user are inside that edit screen he/she can just click “ALL TABLE” tab to sneak all other tables which are assigned meant for others inside the screen not just his/her own table. So it’s not meet the purpose of assigning user’s a table privately. thanks again.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m afraid that getting full privacy is not possible, if users are able to edit a table. For example, the editor of table 1 could add the Shortcode [table id=2 /] into a cell of his table and would then see the content of table 2. It’s not possible to prevent this.
    But of course, the user would have to be “smart enough” to do this.

    You could however try to hide that “All tables” link, by adding this CSS to the page:

    #tablepress-nav .nav-tab:nth-child(2) {
      display:none;
    }

    The easiest way for that would be to add it to the TablePress Extension from https://tablepress.org/extensions/input-field-size/
    But as I said above, it’s no complete protection.

    Regards,
    Tobias

    Thread Starter mabong

    (@mabong)

    Thanks a lot TobiasBG for your prompt reply, however im sorry to tell you that im a complete newbie and totally have no idea where should i put that code, is it on Tablepress plugin screen? or go to spesific file in tablepress directory?
    Thanks again

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    you would have to install and activate the TablePress Extension from the link. Then, edit that Extension’s PHP file and insert the CSS code where the other CSS code already is.

    Regards,
    Tobias

    Thread Starter mabong

    (@mabong)

    Bingo!

    tablepress-no-tab

    Thanks again TobiasBg, you are great

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that this worked! But remember: It’s no 100% protection!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter mabong

    (@mabong)

    Done! i gave 5 stars 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it!

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Tablepress “ALL TABLE” Menu Tab’ is closed to new replies.