Report a bug about “Mark all topics as read” button
-
First of all, this plugin is great and very useful. Thank you for your work!
I would like to report a bug.In the Unread Posts tab, for the 6th option, Opt-in or Opt-out options, I selected the Allow users to opt-in option.
However, I noticed that the “Mark all topics as read” button still appears on the page for users who have not chosen to enable the “Display unread icons” feature or for users who are not logged in.
I believe this is a bug because this button is meaningless for those users.
I also saw that the code for this feature is no longer maintained, but I would really appreciate it if you could fix this bug.
I tried custom the function code but it didn’t work…
function bsp_add_unread_actions () {
global $bsp_style_settings_unread ;
if (!is_user_logged_in()) return;
$user = wp_get_current_user();
$user_id = $user->ID;
$optinout = (!empty(get_user_meta($user_id, 'bsp_unread_optinout', true)) ? get_user_meta($user_id, 'bsp_unread_optinout', true) : '');
$show_unread = false;
if ($bsp_style_settings_unread['optinout'] == 1) {
$show_unread = true;
}
elseif ($bsp_style_settings_unread['optinout'] == 2 && $optinout == 1) {
$show_unread = true;
}
elseif ($bsp_style_settings_unread['optinout'] == 3 && $optinout != 2) {
$show_unread = true;
}
if ($show_unread) {
add_action("bbp_theme_before_topic_title", "bsp_ur_icon_wrapper_begin");
add_action("bbp_template_after_single_topic", "bsp_ur_on_topic_visit");
add_action('bbp_theme_before_forum_title', 'bsp_unread_forum_icons');
add_action('bbp_template_before_single_forum', 'bsp_test_mark_as_read');
}
}
- You must be logged in to reply to this review.