• Resolved genesis999

    (@genesis999)


    Hi

    There is a table of contents (test) below world forex.
    Is there any way to add privilege settings to the data for only X user types. In this case registered only. and a message for non-registered users.

    thanks

    Nice plugin too
    Gen

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not sure that I understand. There’s no TablePress table on this page either, so that I don’t really know what you mean here.

    Regards,
    Tobias

    Thread Starter genesis999

    (@genesis999)

    I am after privacy setting to display a table or not. If the user is registered. do you have privacy settings for registered users only?

    Plugin Author TobiasBg

    (@tobiasbg)

    Thread Starter genesis999

    (@genesis999)

    ok
    How do I bulk paste 2 columns of data in the table. Its pretty slow manually done. It contains 200+ records

    Thread Starter genesis999

    (@genesis999)

    also how to change the colours

    https://metamatrix.club/top-brokers-of-2022/

    Or what and where is the CSS for this table?

    You should have colour editing, font, font colour inside the plugin, and bulk paste into the tables too.
    Otherwise it does the job fine.

    Thread Starter genesis999

    (@genesis999)

    also it does not allow sorting including the first row of data. Prev and next are not required if its fully showing all data. if data=XX but less than <20 $datarows, remove prev and next. some changes required.

    Thread Starter genesis999

    (@genesis999)

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #000000;
    color: #00ff00;
    }

    .tablepress thead .sorting_asc,
    .tablepress thead .sorting_desc,
    .tablepress thead .sorting:hover {
    background-color: #000000;
    color: #EEEEEE;
    }

    .tablepress .odd td {
    background-color: #ff0000;
    color: #00ff00;
    }
    .tablepress .even td {
    background-color: #00ff00;
    color: #0000ff;
    }

    .tablepress .row-hover tr:hover td {
    background-color: #ff0000;
    color: #00ff00;
    }

    OK they are all the settings so far. A few font colours missing.

    It would be nice to have all CSS settings already at the side of custom CSS for the user.

    • This reply was modified 2 years, 5 months ago by genesis999.
    • This reply was modified 2 years, 5 months ago by genesis999.
    Thread Starter genesis999

    (@genesis999)

    I have two columns I am trying to hide. Does not seem to work.

    [table id=2 hide_columns_logged_out=”1,2″ /]

    Have I made a mistake?

    answered. installed the extension. why not include all free extensions by default.

    How do I leave a message or post a message so the user knows there is data to view?

    Thanks

    • This reply was modified 2 years, 5 months ago by genesis999.
    Thread Starter genesis999

    (@genesis999)

    <?php

    /*

    Plugin Name: TablePress Extension: Hide Columns/Rows from logged-out users

    Plugin URI: https://tablepress.org/extensions/hide-data-logged-out-users/

    Description: Custom Extension for TablePress that allows to hide certain columns/rows from logged-out users

    Version: 1.0

    Author: Tobias B?thge

    Author URI: https://tobias.baethge.com/

    */

    add_filter( ‘tablepress_shortcode_table_default_shortcode_atts’, ‘tablepress_add_shortcode_parameter_hide_logged_out’ );

    add_filter( ‘tablepress_table_render_options’, ‘tablepress_hide_columns_from_logged_out_users’, 10, 2 );

    /**

    * Add hide_columns_logged_out and hide_rows_logged_out as valid Shortcode parameters.

    *

    * @since 1.0

    *

    * @param array $default_atts Current set of Shortcode parameters.

    * @return array Extended set of Shortcode parameters.

    */

    function tablepress_add_shortcode_parameter_hide_logged_out( $default_atts ) {

    $default_atts[‘hide_columns_logged_out’] = ”;

    $default_atts[‘hide_rows_logged_out’] = ”;

    return $default_atts;

    }

    /**

    * Add the desired rows/columns to the hidden rows/columns, if the user is logged out.

    *

    * @since 1.0

    *

    * @param array $render_options Render options for the table.

    * @param array $table The table.

    * @return array The modified render options.

    */

    function tablepress_hide_columns_from_logged_out_users( $render_options, $table ) {

    if ( is_user_logged_in() ) {

    return $render_options;

    }

    if ( ! empty( $render_options[‘hide_columns_logged_out’] ) ) {

    if ( empty( $render_options[‘hide_columns’] ) ) {

    $render_options[‘hide_columns’] = $render_options[‘hide_columns_logged_out’];

    } else {

    $render_options[‘hide_columns’] .= ‘,’ . $render_options[‘hide_columns_logged_out’];

    }

    }

    if ( ! empty( $render_options[‘hide_rows_logged_out’] ) ) {

    if ( empty( $render_options[‘hide_rows’] ) ) {

    $render_options[‘hide_rows’] = $render_options[‘hide_rows_logged_out’];

    } else {

    $render_options[‘hide_rows’] .= ‘,’ . $render_options[‘hide_rows_logged_out’];

    }

    }

    return $render_options;

    }

    A short message in html or a link to the standard wordpress registration page. Or maybe add a shortcode for signup to see data.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your feedback here!

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘privacy of data’ is closed to new replies.