• Resolved RPO

    (@rponcet)


    Hello,

    First of all, thank you very much for this amazing plugin ! Very usefull, functional and fast !

    I have a simple need, but it seems that it’s not (yet ?) available thanks to TablePress addons :

    I need to show one particular column (example col number #8) to logged out users and to hide it from logged in users and to do the inverse, show another column (example col #9) to logged in users and to hide it from logged out users.

    I have found this plugin “Hide Columns/Rows from logged-out users” available here :https://tablepress.org/extensions/hide-data-logged-out-users/

    and implement this kind of shortcode which works :

    [table id=1 hide_columns_logged_out=”8″ /]

    But in fact what I need would be something like :

    [table id=1 hide_columns_logged_out=”8″ hide_columns_logged_in=”9″ /]

    Could someone provide me help to make evolve the plugin code or some other tips ?

    Thank you very much ! (I’m not able to write code alone…).

    R.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    That Extension can indeed only hide rows/columns from logged-out users. Your best chance is to modify the Extensions’s PHP code.
    You’ll basically have to copy/paste some of the lines of code and adjust them.

    Regards,
    Tobias

    Thread Starter RPO

    (@rponcet)

    Hi Tobias,

    thank you very much for your support ! I understand well that some .php stuff could do the job, but I am far from being able to find how to do that… Could you explain me a bit, or give me some clues or bits of lines that could help me ?

    (I am sure that other people will benefits of this functionality ?? )

    Thanks !

    Cheers,

    R.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I understand, but I’m really busy at the moment, and don’t have the time and resources to make this change. Please take a look at the code of the file tablepress-hide-columns-rows-logged-out-users.php
    It’s not very long and the blocks should be almost self-explaining (ok, you need to know a little bit of how PHP looks like).

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show/Hide columns to logged in and logged out users’ is closed to new replies.